File tree 6 files changed +43
-14
lines changed
6 files changed +43
-14
lines changed Original file line number Diff line number Diff line change 1
1
import { Link } from '@remix-run/react' ;
2
- import { Github , X } from 'iconoir-react' ;
3
2
4
- import { Logo } from '@/components/icons' ;
3
+ import X , { Github , Logo } from '@/components/icons' ;
5
4
import { buttonVariants } from '@/ui/button' ;
6
5
import { cn } from '@/utils/index' ;
7
6
import { ModeToggle } from './theme-toggle' ;
Original file line number Diff line number Diff line change 1
1
import { cn } from '@/utils' ;
2
- import type { ComponentProps , FC } from 'react' ;
2
+ import type { ComponentProps , FC , SVGProps } from 'react' ;
3
3
4
4
export type Position =
5
5
| 'top-left'
@@ -43,4 +43,35 @@ export const SparkleSvg = ({ position }: { position: Position }) => {
43
43
) ;
44
44
} ;
45
45
46
- export { Logo } ;
46
+ const Github = ( props : SVGProps < SVGSVGElement > ) => (
47
+ < svg
48
+ viewBox = "0 0 256 250"
49
+ width = "1em"
50
+ height = "1em"
51
+ fill = "currentColor"
52
+ xmlns = "http://www.w3.org/2000/svg"
53
+ preserveAspectRatio = "xMidYMid"
54
+ { ...props }
55
+ >
56
+ < path d = "M128.001 0C57.317 0 0 57.307 0 128.001c0 56.554 36.676 104.535 87.535 121.46 6.397 1.185 8.746-2.777 8.746-6.158 0-3.052-.12-13.135-.174-23.83-35.61 7.742-43.124-15.103-43.124-15.103-5.823-14.795-14.213-18.73-14.213-18.73-11.613-7.944.876-7.78.876-7.78 12.853.902 19.621 13.19 19.621 13.19 11.417 19.568 29.945 13.911 37.249 10.64 1.149-8.272 4.466-13.92 8.127-17.116-28.431-3.236-58.318-14.212-58.318-63.258 0-13.975 5-25.394 13.188-34.358-1.329-3.224-5.71-16.242 1.24-33.874 0 0 10.749-3.44 35.21 13.121 10.21-2.836 21.16-4.258 32.038-4.307 10.878.049 21.837 1.47 32.066 4.307 24.431-16.56 35.165-13.12 35.165-13.12 6.967 17.63 2.584 30.65 1.255 33.873 8.207 8.964 13.173 20.383 13.173 34.358 0 49.163-29.944 59.988-58.447 63.157 4.591 3.972 8.682 11.762 8.682 23.704 0 17.126-.148 30.91-.148 35.126 0 3.407 2.304 7.398 8.792 6.14C219.37 232.5 256 184.537 256 128.002 256 57.307 198.691 0 128.001 0Zm-80.06 182.34c-.282.636-1.283.827-2.194.39-.929-.417-1.45-1.284-1.15-1.922.276-.655 1.279-.838 2.205-.399.93.418 1.46 1.293 1.139 1.931Zm6.296 5.618c-.61.566-1.804.303-2.614-.591-.837-.892-.994-2.086-.375-2.66.63-.566 1.787-.301 2.626.591.838.903 1 2.088.363 2.66Zm4.32 7.188c-.785.545-2.067.034-2.86-1.104-.784-1.138-.784-2.503.017-3.05.795-.547 2.058-.055 2.861 1.075.782 1.157.782 2.522-.019 3.08Zm7.304 8.325c-.701.774-2.196.566-3.29-.49-1.119-1.032-1.43-2.496-.726-3.27.71-.776 2.213-.558 3.315.49 1.11 1.03 1.45 2.505.701 3.27Zm9.442 2.81c-.31 1.003-1.75 1.459-3.199 1.033-1.448-.439-2.395-1.613-2.103-2.626.301-1.01 1.747-1.484 3.207-1.028 1.446.436 2.396 1.602 2.095 2.622Zm10.744 1.193c.036 1.055-1.193 1.93-2.715 1.95-1.53.034-2.769-.82-2.786-1.86 0-1.065 1.202-1.932 2.733-1.958 1.522-.03 2.768.818 2.768 1.868Zm10.555-.405c.182 1.03-.875 2.088-2.387 2.37-1.485.271-2.861-.365-3.05-1.386-.184-1.056.893-2.114 2.376-2.387 1.514-.263 2.868.356 3.061 1.403Z" />
57
+ </ svg >
58
+ ) ;
59
+
60
+ const X = ( props : SVGProps < SVGSVGElement > ) => (
61
+ < svg
62
+ xmlns = "http://www.w3.org/2000/svg"
63
+ width = "1em"
64
+ height = "1em"
65
+ fill = "none"
66
+ viewBox = "0 0 1200 1227"
67
+ { ...props }
68
+ >
69
+ < path
70
+ fill = "currentColor"
71
+ d = "M714.163 519.284 1160.89 0h-105.86L667.137 450.887 357.328 0H0l468.492 681.821L0 1226.37h105.866l409.625-476.152 327.181 476.152H1200L714.137 519.284h.026ZM569.165 687.828l-47.468-67.894-377.686-540.24h162.604l304.797 435.991 47.468 67.894 396.2 566.721H892.476L569.165 687.854v-.026Z"
72
+ />
73
+ </ svg >
74
+ ) ;
75
+ export default X ;
76
+
77
+ export { Logo , Github } ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { Link, useLocation } from '@remix-run/react';
2
2
3
3
import { DocsRoutes } from '@/docs.routes' ;
4
4
import { cn } from '@/utils/index' ;
5
- import { ArrowUpRight } from 'iconoir- react' ;
5
+ import { ArrowUpRight } from '@phosphor-icons/ react' ;
6
6
7
7
const SidebarContent = ( ) => {
8
8
const location = useLocation ( ) ;
Original file line number Diff line number Diff line change 1
- import { HalfMoon , SunLight } from 'iconoir- react' ;
1
+ import { Moon , Sun } from '@phosphor-icons/ react' ;
2
2
import { Theme , useTheme } from 'remix-themes' ;
3
3
4
4
import {
@@ -10,14 +10,13 @@ import {
10
10
import { Button } from '@/ui/button' ;
11
11
12
12
export function ModeToggle ( ) {
13
- const [ , setTheme ] = useTheme ( ) ;
13
+ const [ theme , setTheme ] = useTheme ( ) ;
14
14
15
15
return (
16
16
< DropdownMenu >
17
17
< DropdownMenuTrigger asChild >
18
18
< Button variant = "ghost" size = "icon" >
19
- < SunLight className = "h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" />
20
- < HalfMoon className = "absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" />
19
+ { theme === Theme . LIGHT ? < Moon size = { 20 } /> : < Sun size = { 20 } /> }
21
20
< span className = "sr-only" > Toggle theme</ span >
22
21
</ Button >
23
22
</ DropdownMenuTrigger >
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import type { MetaFunction } from '@vercel/remix';
2
2
import { useToast } from '@pheralb/toast' ;
3
3
import { SparkleCard } from '@/ui/sparkle-card' ;
4
4
import { Button } from '@/ui/button' ;
5
- import { Sparks } from 'iconoir- react' ;
5
+ import { Sparkle } from '@phosphor-icons/ react' ;
6
6
7
7
export const meta : MetaFunction = ( ) => {
8
8
return [
@@ -35,7 +35,7 @@ export default function Index() {
35
35
} )
36
36
}
37
37
>
38
- < Sparks height = { 14 } width = { 14 } />
38
+ < Sparkle height = { 14 } width = { 14 } />
39
39
< span > Render a toast</ span >
40
40
</ Button >
41
41
< Button
Original file line number Diff line number Diff line change 2
2
3
3
import * as React from 'react' ;
4
4
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu' ;
5
- import { Check , ArrowRightCircleSolid , CheckCircleSolid } from 'iconoir- react' ;
5
+ import { Check , ArrowRight , CheckCircle } from '@phosphor-icons/ react' ;
6
6
7
7
import { cn } from '@/utils' ;
8
8
@@ -30,7 +30,7 @@ const DropdownMenuSubTrigger = React.forwardRef<
30
30
{ ...props }
31
31
>
32
32
{ children }
33
- < ArrowRightCircleSolid className = "ml-auto h-4 w-4" />
33
+ < ArrowRight className = "ml-auto h-4 w-4" />
34
34
</ DropdownMenuPrimitive . SubTrigger >
35
35
) ) ;
36
36
DropdownMenuSubTrigger . displayName =
@@ -130,7 +130,7 @@ const DropdownMenuRadioItem = React.forwardRef<
130
130
>
131
131
< span className = "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" >
132
132
< DropdownMenuPrimitive . ItemIndicator >
133
- < CheckCircleSolid className = "h-4 w-4 fill-current" />
133
+ < CheckCircle className = "h-4 w-4 fill-current" />
134
134
</ DropdownMenuPrimitive . ItemIndicator >
135
135
</ span >
136
136
{ children }
You can’t perform that action at this time.
0 commit comments