File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change 4
4
5
5
<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" >
6
6
<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 >
9
25
based on <a href =" https://github.com/joshnuss/react-hooks-in-svelte" target =" _blank" rel =" noreferrer"
10
26
>React hooks in Svelte</a
11
27
>
12
28
by <a href =" https://twitter.com/joshnuss" target =" _blank" rel =" noreferrer" >Josh Nuss</a >
13
- </h2 >
29
+ </h3 >
14
30
<p >
15
31
Side-by-side code examples of React hooks implemented in Svelte. A reference for developers who need to work
16
32
across Svelte and React.
19
35
20
36
<div class =" flex flex-wrap gap-4 sm:gap-8" >
21
37
{#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" >
23
39
{hook .label }
24
40
</a >
25
41
{/each }
You can’t perform that action at this time.
0 commit comments