Skip to content

Commit a937047

Browse files
Implement mobile responsiveness, performance, accessibility, SEO improvements (#261)
Signed-off-by: Prashantkumar Khatri <96608160+ShantKhatri@users.noreply.github.com> Co-authored-by: Prashantkumar Khatri <96608160+ShantKhatri@users.noreply.github.com>
1 parent 7a6655f commit a937047

3 files changed

Lines changed: 35 additions & 14 deletions

File tree

apps/web/src/app.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,14 @@ html {
183183
background: var(--bg-secondary);
184184
}
185185

186+
@media (prefers-reduced-motion: reduce) {
187+
* {
188+
animation-duration: 0.01ms !important;
189+
animation-iteration-count: 1 !important;
190+
transition-duration: 0.01ms !important;
191+
scroll-behavior: auto !important;
192+
}
193+
}
186194

187195
.premium-card {
188196
background: #ffffff;
@@ -226,4 +234,4 @@ button {
226234

227235
button:hover {
228236
background: #4338ca;
229-
}
237+
}

apps/web/src/app.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff" />
7+
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0f0f1a" />
8+
<meta property="og:type" content="website" />
9+
<meta property="og:site_name" content="DevCard" />
10+
<meta name="twitter:card" content="summary_large_image" />
611
%sveltekit.head%
712
</head>
813
<body data-sveltekit-preload-data="hover">

apps/web/src/routes/+page.svelte

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626
name="description"
2727
content="Open source developer profile exchange platform. Share all your developer profiles with one QR code."
2828
/>
29+
<meta property="og:title" content="DevCard — One Tap. Every Profile. Every Platform." />
30+
<meta property="og:description" content="Open source developer profile exchange platform. Share all your developer profiles with one QR code." />
31+
<meta property="og:url" content="https://devcard.example.com/" />
32+
<meta property="og:image" content="https://devcard.example.com/og-image.jpg" />
33+
<meta name="twitter:title" content="DevCard" />
34+
<meta name="twitter:description" content="Open source developer profile exchange platform." />
35+
<meta name="twitter:image" content="https://devcard.example.com/og-image.jpg" />
2936
</svelte:head>
3037

3138
<div class="bg-glow"></div>
@@ -98,6 +105,8 @@
98105
radial-gradient(circle at 0% 100%, var(--accent-glow), transparent 30%);
99106
pointer-events: none;
100107
z-index: -1;
108+
will-change: transform, opacity;
109+
transform: translateZ(0);
101110
}
102111
103112
nav {
@@ -218,17 +227,9 @@
218227
padding: 4rem 0 5rem;
219228
}
220229
221-
@media (max-width: 640px) {
222-
.features {
223-
display: grid;
224-
grid-template-columns: 1fr; /* single column */
225-
gap: 16px;
226-
padding: 0 12px;
227-
}
228-
}
229-
230230
.feature-card {
231231
padding: 2.4rem;
232+
min-height: 140px;
232233
border-radius: var(--radius-xl);
233234
box-shadow: var(--shadow-lg);
234235
background: linear-gradient(180deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.5));
@@ -339,16 +340,23 @@
339340
align-items: stretch;
340341
}
341342
342-
.feature-card {
343-
padding: 1.8rem;
343+
.features {
344+
grid-template-columns: 1fr;
345+
gap: 1rem;
346+
padding: 2rem 1rem;
344347
}
345348
346-
.features {
347-
gap: 1.2rem;
349+
.feature-card {
350+
padding: 1.8rem;
351+
margin-bottom: 0;
348352
}
349353
350354
.footer {
351355
padding: 2rem 0 1.25rem;
352356
}
357+
358+
.bg-glow {
359+
opacity: 0.6;
360+
}
353361
}
354362
</style>

0 commit comments

Comments
 (0)