Skip to content

Commit 90358ac

Browse files
mlamotheclaude
andcommitted
Enhance email signup button with modern gradient design and envelope icon
- Replace plain arrow with SVG envelope icon for better context - Add beautiful blue-to-purple gradient background - Implement enhanced hover effects with scale, lift, and glow - Add proper focus states for improved accessibility - Include smooth animations and shadow effects - Update CSS cache-busting version to v11 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 45691fa commit 90358ac

File tree

2 files changed

+43
-7
lines changed

2 files changed

+43
-7
lines changed

css/style.css

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,21 +214,52 @@ a:hover {
214214
height: 40px;
215215
border-radius: 50%;
216216
border: none;
217-
background: var(--accent-color);
217+
background: linear-gradient(135deg, #226ce0 0%, #3b82f6 50%, #6366f1 100%);
218218
color: white;
219219
font-size: 16px;
220220
font-weight: bold;
221221
cursor: pointer;
222-
transition: all 0.2s ease;
222+
transition: all 0.3s ease;
223223
display: flex;
224224
align-items: center;
225225
justify-content: center;
226+
box-shadow: 0 2px 8px rgba(34, 108, 224, 0.3);
227+
position: relative;
228+
overflow: hidden;
226229
}
227230

228231
.submit-btn:hover {
229-
background: #1a5bb8;
230-
transform: scale(1.05);
231-
box-shadow: 0 4px 12px rgba(34, 108, 224, 0.3);
232+
background: linear-gradient(135deg, #1a5bb8 0%, #2563eb 50%, #4f46e5 100%);
233+
transform: scale(1.08) translateY(-1px);
234+
box-shadow: 0 8px 24px rgba(34, 108, 224, 0.5);
235+
}
236+
237+
.submit-btn:focus {
238+
outline: none;
239+
box-shadow: 0 0 0 3px rgba(34, 108, 224, 0.4), 0 8px 24px rgba(34, 108, 224, 0.5);
240+
}
241+
242+
.submit-btn:active {
243+
transform: scale(1.02) translateY(0px);
244+
transition: all 0.1s ease;
245+
}
246+
247+
.submit-btn::before {
248+
content: '';
249+
position: absolute;
250+
top: -2px;
251+
left: -2px;
252+
right: -2px;
253+
bottom: -2px;
254+
background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
255+
border-radius: 50%;
256+
opacity: 0;
257+
transition: opacity 0.3s ease;
258+
z-index: -1;
259+
}
260+
261+
.submit-btn:hover::before {
262+
opacity: 1;
232263
}
233264

234265
/* Custom Notification Styles */

index.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<link
1212
href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap"
1313
rel="stylesheet">
14-
<link rel="stylesheet" href="css/style.css?v=10" />
14+
<link rel="stylesheet" href="css/style.css?v=11" />
1515
<script src="js/main.js"></script>
1616
</head>
1717

@@ -27,7 +27,12 @@ <h3>Connect & Stay Updated</h3>
2727
<p>I'd love to keep you posted on new books and writing adventures.</p>
2828
<div class="email-signup">
2929
<input type="email" placeholder="Your email address" class="email-input" id="custom-email" />
30-
<button type="submit" class="submit-btn" id="custom-submit"></button>
30+
<button type="submit" class="submit-btn" id="custom-submit">
31+
<svg width="18" height="14" viewBox="0 0 24 20" fill="none" xmlns="http://www.w3.org/2000/svg">
32+
<path d="M2 4L10 12L22 4" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
33+
<path d="M2 4H22V16C22 17.1046 21.1046 18 20 18H4C2.89543 18 2 17.1046 2 16V4Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
34+
</svg>
35+
</button>
3136
</div>
3237

3338
<!-- MailerLite embedded form (properly loaded) -->

0 commit comments

Comments
 (0)