Skip to content

Commit 21a26cb

Browse files
committed
Update general graphics
1 parent 4b86da6 commit 21a26cb

File tree

4 files changed

+74
-2
lines changed

4 files changed

+74
-2
lines changed

app/assets/stylesheets/application.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,29 @@ h1, h2, h3, h4, h5, h6 {
354354
padding: 14px 24px;
355355
}
356356

357+
/* Button size/shape utilities */
358+
.btn--xl {
359+
font-size: 20px;
360+
padding: 14px 22px;
361+
}
362+
.btn--pill {
363+
border-radius: 999px;
364+
}
365+
366+
/* Subtle animated glow for call-to-action buttons */
367+
@keyframes btn-glow-pulse {
368+
0%, 100% {
369+
box-shadow: 0 6px 14px var(--shadow), 0 0 0 0 rgba(210, 127, 70, 0.0);
370+
transform: translateY(0);
371+
}
372+
50% {
373+
box-shadow: 0 10px 22px var(--shadow), 0 0 18px 2px rgba(210, 127, 70, 0.35);
374+
}
375+
}
376+
.btn--glow {
377+
animation: btn-glow-pulse 2.4s ease-in-out infinite;
378+
}
379+
357380
/* Flash messages */
358381
.flash {
359382
padding: 12px 16px;

app/views/layouts/application.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<meta name="csrf-token" content="<%= form_authenticity_token %>">
99
<link rel="icon" type="image/png" href="https://files.slack.com/files-pri/T09V59WQY1E-F0A6UD211JS/animal.png?pub_secret=3e17f8e9df">
1010
<link rel="shortcut icon" type="image/png" href="https://files.slack.com/files-pri/T09V59WQY1E-F0A6UD211JS/animal.png?pub_secret=3e17f8e9df">
11-
<link rel="stylesheet" href="/stylesheets/application.css?v=6">
11+
<link rel="stylesheet" href="/stylesheets/application.css?v=8">
1212
<script defer src="/javascripts/application.js?v=2"></script>
1313
</head>
1414
<body data-page="<%= content_for?(:page) ? yield(:page) : '' %>">

app/views/pages/shop.html.erb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
<main class="container">
77
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem;">
88
<h1 class="page-title" style="margin: 0;">Shop</h1>
9-
<a href="/purchases" class="btn btn--secondary">Recent Purchases</a>
9+
<a href="/purchases" class="btn btn--accent btn--accent-gradient btn--xl btn--pill btn--glow" style="display:inline-flex;align-items:center;gap:10px;">
10+
<span>Recent Purchases</span>
11+
</a>
1012
</div>
1113

1214
<div class="shop-layout">

public/stylesheets/application.css

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,47 @@ a.project-row:hover {
395395
font-size: 18px;
396396
padding: 14px 24px;
397397
}
398+
/* Button size/shape utilities */
399+
.btn--xl {
400+
font-size: 18px;
401+
padding: 12px 20px;
402+
}
403+
.btn--pill {
404+
border-radius: 999px;
405+
}
406+
407+
/* Subtle animated glow for call-to-action buttons */
408+
@keyframes btn-glow-pulse {
409+
0%, 100% {
410+
box-shadow: 0 6px 14px var(--shadow), 0 0 0 0 rgba(210, 127, 70, 0.0);
411+
transform: translateY(0);
412+
}
413+
50% {
414+
box-shadow: 0 10px 22px var(--shadow), 0 0 18px 2px rgba(210, 127, 70, 0.35);
415+
}
416+
}
417+
.btn--glow {
418+
animation: btn-glow-pulse 2.4s ease-in-out infinite;
419+
}
420+
421+
/* Animated accent gradient for CTA button */
422+
@keyframes accent-gradient-shift {
423+
0% { background-position: 0% 50%; }
424+
50% { background-position: 100% 50%; }
425+
100% { background-position: 0% 50%; }
426+
}
427+
.btn--accent-gradient {
428+
background: linear-gradient(90deg, #d27f46, #e05a2a, #d27f46);
429+
background-size: 200% 200%;
430+
color: var(--white);
431+
border: 0;
432+
animation: accent-gradient-shift 6s ease infinite;
433+
}
434+
.btn--accent-gradient:hover:not(:disabled) {
435+
filter: brightness(1.02);
436+
transform: translateY(-1px) scale(1.02);
437+
box-shadow: 0 10px 22px var(--shadow);
438+
}
398439

399440
/* Flash messages */
400441
.flash {
@@ -911,6 +952,12 @@ a.project-row:hover {
911952
overflow: hidden;
912953
}
913954

955+
/* FAQ Page - custom background */
956+
[data-page="faq"] {
957+
background: var(--bg) url('https://files.slack.com/files-pri/T09V59WQY1E-F0A71GFN7N2/untitled_artwork.png?pub_secret=e6e1934613') no-repeat center center fixed;
958+
background-size: cover;
959+
}
960+
914961
.signin-page {
915962
position: relative;
916963
width: 100%;

0 commit comments

Comments
 (0)