File tree 4 files changed +81
-91
lines changed
4 files changed +81
-91
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
import { cn } from " @/lib/utils" ;
3
+ import SocialMedia from " ./social-media.astro" ;
3
4
4
5
type Props = {
5
6
className? : string ;
@@ -13,58 +14,22 @@ const { className } = Astro.props;
13
14
class =" container flex flex-col items-center justify-between gap-4 py-10 md:h-24 md:flex-row md:py-0"
14
15
>
15
16
<div
16
- class =" flex flex-col items-center gap-4 px-8 md:flex-row md:gap-2 md:px-0 z-50"
17
+ class =" flex flex-col items-center gap-8 px-0 md:px-8 md:justify-around md:w-full z-50"
17
18
>
18
- Copyright <a href =" /" aria-label =" Otjs homepage" > © </a >
19
-
20
19
<p class =" text-center text-sm leading-loose md:text-left balance-text" >
21
- All rights reserved by{ " " }
20
+ <a href =" /" aria-label =" Otjs homepage" >Copyright © </a >
21
+ All rights reserved by
22
22
<a
23
23
href =" https://twitter.com/ProDevOfficial"
24
24
target =" _blank"
25
25
rel =" noreferrer"
26
26
class =" font-medium underline underline-offset-4"
27
27
>
28
28
0xTheProDev
29
- </a >
30
- . Template Built by{ " " }
31
- <a
32
- href =" https://twitter.com/miickasmt"
33
- target =" _blank"
34
- rel =" noreferrer"
35
- class =" font-medium underline underline-offset-4"
36
- >
37
- mickasmt
38
- </a >
39
- . Based on{ " " }
40
- <a
41
- href =" https://github.com/shadcn-ui/taxonomy"
42
- target =" _blank"
43
- rel =" noreferrer"
44
- class =" font-medium underline underline-offset-4"
45
- >
46
- shadcn-ui/taxonomy
47
- </a >
48
- . Hosted on{ " " }
49
- <a
50
- href =" https://pages.github.com"
51
- target =" _blank"
52
- rel =" noreferrer"
53
- class =" font-medium underline underline-offset-4"
54
- >
55
- GitHub Pages
56
- </a >
57
- . The source code is available on{ " " }
58
- <a
59
- href =" https://github.com/0xTheProDev/otjs"
60
- target =" _blank"
61
- rel =" noreferrer"
62
- class =" font-medium underline underline-offset-4"
63
- >
64
- GitHub
65
- </a >
66
- .
29
+ </a >.
67
30
</p >
31
+
32
+ <SocialMedia className =" md:hidden" />
68
33
</div >
69
34
</div >
70
35
</footer >
Original file line number Diff line number Diff line change 1
1
---
2
2
import { ThemeToggle } from " @/components/theme-toggle" ;
3
- import { siteConfig } from " @/config/site" ;
4
-
5
- import Icon from " astro-icon" ;
3
+ import SocialMedia from " ./social-media.astro" ;
6
4
---
7
5
8
6
<nav class =" flex flex-row items-center gap-4" >
9
- <a
10
- href ={ siteConfig .links .github }
11
- target =" _blank"
12
- rel =" noreferrer"
13
- class =" hidden md:inline"
14
- >
15
- <span class =" sr-only" >GitHub</span >
16
- <Icon name =" simple-icons:github" class =" size-6" />
17
- </a >
18
- <a
19
- href ={ siteConfig .links .twitter }
20
- target =" _blank"
21
- rel =" noreferrer"
22
- class =" hidden md:inline"
23
- >
24
- <span class =" sr-only" >Twitter</span >
25
- <Icon name =" simple-icons:twitter" class =" size-6" />
26
- </a >
27
- <a
28
- href ={ siteConfig .links .linkedin }
29
- target =" _blank"
30
- rel =" noreferrer"
31
- class =" hidden md:inline"
32
- >
33
- <span class =" sr-only" >LinkedIn</span >
34
- <Icon name =" simple-icons:linkedin" class =" size-6" />
35
- </a >
36
- <a
37
- href ={ siteConfig .links .discord }
38
- target =" _blank"
39
- rel =" noreferrer"
40
- class =" hidden md:inline"
41
- >
42
- <span class =" sr-only" >Discord</span >
43
- <Icon name =" simple-icons:discord" class =" size-6" />
44
- </a >
7
+ <SocialMedia className =" hidden md:flex" />
45
8
<ThemeToggle client:idle />
46
9
</nav >
Original file line number Diff line number Diff line change
1
+ ---
2
+ import { siteConfig } from " @/config/site" ;
3
+ import { cn } from " @/lib/utils" ;
4
+
5
+ import Icon from " astro-icon" ;
6
+
7
+ const { className } = Astro .props ;
8
+ ---
9
+
10
+ <div class ={ cn (" flex flex-row items-center gap-4" , className )} >
11
+ <a
12
+ href ={ siteConfig .links .github }
13
+ target =" _blank"
14
+ rel =" noreferrer"
15
+ class =" inline"
16
+ >
17
+ <span class =" sr-only" >GitHub</span >
18
+ <Icon name =" simple-icons:github" class =" size-6" />
19
+ </a >
20
+ <a
21
+ href ={ siteConfig .links .twitter }
22
+ target =" _blank"
23
+ rel =" noreferrer"
24
+ class =" inline"
25
+ >
26
+ <span class =" sr-only" >Twitter</span >
27
+ <Icon name =" simple-icons:twitter" class =" size-6" />
28
+ </a >
29
+ <a
30
+ href ={ siteConfig .links .linkedin }
31
+ target =" _blank"
32
+ rel =" noreferrer"
33
+ class =" inline"
34
+ >
35
+ <span class =" sr-only" >LinkedIn</span >
36
+ <Icon name =" simple-icons:linkedin" class =" size-6" />
37
+ </a >
38
+ <a
39
+ href ={ siteConfig .links .discord }
40
+ target =" _blank"
41
+ rel =" noreferrer"
42
+ class =" inline"
43
+ >
44
+ <span class =" sr-only" >Discord</span >
45
+ <Icon name =" simple-icons:discord" class =" size-6" />
46
+ </a >
47
+ </div >
Original file line number Diff line number Diff line change @@ -172,17 +172,32 @@ import Icon from "astro-icon";
172
172
class =" underline underline-offset-4"
173
173
>
174
174
GitHub
175
- </a >
176
- .
175
+ </a > under MIT License.
177
176
</p >
178
- <a
179
- href =" https://github.com/sponsors/0xTheProDev"
180
- target =" _blank"
181
- rel =" noreferrer"
182
- class =" underline underline-offset-4 z-50"
183
- >
184
- <Icon name =" sponsor" class =" size-36 rounded -mt-8" />
185
- </a >
177
+
178
+ <div class =" flex justify-center space-x-2 md:space-x-4" >
179
+ <a
180
+ href =" https://github.com/sponsors/0xTheProDev"
181
+ target =" _blank"
182
+ rel =" noreferrer"
183
+ class ={ cn (buttonVariants ({ size: " lg" }), " z-50" )}
184
+ >
185
+ <Icon name =" mdi:hand-heart" class =" mr-2 size-5" />
186
+ Sponsor
187
+ </a >
188
+ <a
189
+ href =" https://opensource.org/osd"
190
+ target =" _blank"
191
+ rel =" noreferrer"
192
+ class ={ cn (
193
+ buttonVariants ({ variant: " outline" , size: " lg" }),
194
+ " px-4 z-50" ,
195
+ )}
196
+ >
197
+ <Icon name =" simple-icons:opensourceinitiative" class =" mr-2 size-5" />
198
+ Read more about Open Source
199
+ </a >
200
+ </div >
186
201
</div >
187
202
</section >
188
203
</MainLayout >
You can’t perform that action at this time.
0 commit comments