Skip to content

Commit e8c4e99

Browse files
committed
Homepage styling
1 parent 93119ae commit e8c4e99

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

src/routes/+page.svelte

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,29 @@
44

55
<div class="container h-full mx-auto p-4 sm:p-8 flex flex-col gap-8 sm:gap-16 sm:justify-center items-center">
66
<div class="space-y-4 text-center">
7-
<h1 class="font-bold">React hooks vs Svelte</h1>
8-
<h2>
7+
<h1>
8+
<span
9+
class="text-react"
10+
>
11+
React
12+
</span>
13+
<span
14+
class="bg-gradient-to-r from-react via-primary-100 to-svelte bg-clip-text text-transparent box-decoration-clone"
15+
>
16+
hooks in
17+
</span>
18+
<span
19+
class="text-svelte"
20+
>
21+
Svelte
22+
</span>
23+
</h1>
24+
<h3>
925
based on <a href="https://github.com/joshnuss/react-hooks-in-svelte" target="_blank" rel="noreferrer"
1026
>React hooks in Svelte</a
1127
>
1228
by <a href="https://twitter.com/joshnuss" target="_blank" rel="noreferrer">Josh Nuss</a>
13-
</h2>
29+
</h3>
1430
<p>
1531
Side-by-side code examples of React hooks implemented in Svelte. A reference for developers who need to work
1632
across Svelte and React.
@@ -19,7 +35,7 @@
1935

2036
<div class="flex flex-wrap gap-4 sm:gap-8">
2137
{#each $hooks as hook (hook.id)}
22-
<a href={hook.url} title={hook.title} class="card w-full sm:w-1/5 p-4">
38+
<a href={hook.url} title={hook.title} class="card card-hover variant-filled-primary w-full sm:w-1/5 p-4">
2339
{hook.label}
2440
</a>
2541
{/each}

0 commit comments

Comments
 (0)