@@ -6,6 +6,32 @@ import clsx from 'clsx'
6
6
import Link from 'next/link'
7
7
import styles from './Footer.module.css'
8
8
9
+ const GitHub = ( ) => (
10
+ < svg
11
+ fill = "currentColor"
12
+ stroke-linecap = "round"
13
+ stroke-linejoin = "round"
14
+ stroke-width = "2"
15
+ className = "w-8 h-8 p-1 lg:p-0 sm:p-1"
16
+ viewBox = "0 0 35 35"
17
+ >
18
+ < path d = "M16.3 0C7.3 0 0 7.3 0 16.3c0 7.2 4.7 13.3 11.1 15.5.8.1 1.1-.4 1.1-.8v-2.8c-4.5 1-5.5-2.2-5.5-2.2-.7-1.9-1.8-2.4-1.8-2.4-1.5-1 .1-1 .1-1 1.6.1 2.5 1.7 2.5 1.7 1.5 2.5 3.8 1.8 4.7 1.4.1-1.1.6-1.8 1-2.2-3.6-.4-7.4-1.8-7.4-8.1 0-1.8.6-3.2 1.7-4.4-.1-.3-.7-2 .2-4.2 0 0 1.4-.4 4.5 1.7 1.3-.4 2.7-.5 4.1-.5 1.4 0 2.8.2 4.1.5 3.1-2.1 4.5-1.7 4.5-1.7.9 2.2.3 3.9.2 4.3 1 1.1 1.7 2.6 1.7 4.4 0 6.3-3.8 7.6-7.4 8 .6.5 1.1 1.5 1.1 3V31c0 .4.3.9 1.1.8 6.5-2.2 11.1-8.3 11.1-15.5C32.6 7.3 25.3 0 16.3 0z" />
19
+ </ svg >
20
+ )
21
+
22
+ const Twitter = ( ) => (
23
+ < svg
24
+ fill = "currentColor"
25
+ stroke-linecap = "round"
26
+ stroke-linejoin = "round"
27
+ stroke-width = "2"
28
+ className = "w-8 h-8 p-1 lg:p-0 sm:p-1"
29
+ viewBox = "0 0 24 24"
30
+ >
31
+ < path d = "M23 3a10.9 10.9 0 01-3.14 1.53 4.48 4.48 0 00-7.86 3v1A10.66 10.66 0 013 4s-4 9 5 13a11.64 11.64 0 01-7 2c9 5 20 0 20-11.5a4.5 4.5 0 00-.08-.83A7.72 7.72 0 0023 3z" > </ path >
32
+ </ svg >
33
+ )
34
+
9
35
const footerNav = {
10
36
'Getting started' : {
11
37
className : 'row-span-2' ,
@@ -22,16 +48,16 @@ const footerNav = {
22
48
{ title : 'Java Docs' , href : '/docs' } ,
23
49
{ title : 'Java Programs' , href : '/programs' } ,
24
50
{ title : 'About' , href : '/' } ,
25
- { title : 'Status ' , href : 'https:// javaistic.betteruptime. com/ ' } ,
51
+ { title : 'Contact ' , href : 'mailto: javaistic@gmail. com' } ,
26
52
] ,
27
53
} ,
28
54
Others : {
29
55
className : 'row-span-2' ,
30
56
items : [
31
57
{ title : 'Brand' , href : '/brand' } ,
58
+ { title : 'Sponsors' , href : '/sponsors' } ,
32
59
{ title : 'Changelog' , href : 'https://javaistic-changelog.vercel.app/' } ,
33
60
{ title : 'Open Source' , href : '/' } ,
34
- { title : 'Contact' , href : 'mailto:javaistic@gmail.com' } ,
35
61
] ,
36
62
} ,
37
63
Community : {
@@ -46,14 +72,14 @@ const footerNav = {
46
72
47
73
export function Footer ( ) {
48
74
return (
49
- < footer className = "bg-gray-50 pt-16 pb-12 sm:pt-20 md:pt-24 xl:pt-32 sm:pb-20 " >
75
+ < footer className = "bg-gray-100 pt-16 pb-10 sm:pt-20 md:pt-24 xl:pt-28 sm:pb-10 " >
50
76
< div className = "max-w-screen-lg xl:max-w-screen-xl mx-auto divide-y divide-gray-200 px-4 sm:px-6 md:px-8" >
51
77
< ul
52
78
className = { `${ styles . nav } text-sm font-medium pb-14 sm:pb-20 grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-y-10` }
53
79
>
54
80
{ Object . keys ( footerNav ) . map ( ( section , i ) => (
55
81
< li key = { section } className = { clsx ( 'space-y-5' , footerNav [ section ] . className ) } >
56
- < h2 className = "text-xs font-semibold tracking-wide text-gray-900 uppercase" >
82
+ < h2 className = "text-base font-bold tracking-wide text-gray-900 uppercase" >
57
83
{ section }
58
84
</ h2 >
59
85
< ul className = "space-y-4" >
@@ -70,17 +96,72 @@ export function Footer() {
70
96
</ li >
71
97
) ) }
72
98
</ ul >
73
- < div className = "pt-10 sm:pt-12" >
74
- < Logo className = "w-auto h-10" />
75
- < br className = "mb-2" />
76
- < div className = "flex" >
77
- < a href = "https://vercel.com/?utm_source=javaistic& utm_campaign = oss " target = "_blank" rel = "noopener noreferrer" >
78
- < p className = "text text-sm text-gray-500 flex" >
79
- Powered by
80
- < Vercel className = "w-auto h-5 ml-1 flex" />
81
- </ p >
99
+ < div className = "container px-5 py-8 pb-8 mx-auto flex items-center sm:flex-row flex-col" >
100
+ < a className = "flex title-font font-medium items-center md:justify-start justify-center text-gray-900" >
101
+ < Logo className = "w-auto h-10" />
102
+ </ a >
103
+ < p className = "text-sm text-gray-500 sm:ml-4 sm:pl-4 sm:border-l-2 sm:border-gray-200 sm:py-2 sm:mt-0 mt-4" >
104
+ < div className = "flex" >
105
+ < a
106
+ href = "https://github.com/uiuxarghya"
107
+ target = "_blank"
108
+ rel = "noopener noreferrer"
109
+ >
110
+ < p className = "text text-base text-gray-500 flex" >
111
+ by < span className = "text-base text-gray-800 font-bold " > @uiuxarghya</ span >
112
+ </ p >
113
+ </ a >
114
+ </ div >
115
+ </ p >
116
+ < p className = "text-sm text-gray-500 sm:ml-4 sm:pl-4 sm:border-l-2 sm:border-gray-200 sm:py-2 sm:mt-0 mt-4" >
117
+ < div className = "flex" >
118
+ < a
119
+ href = "https://vercel.com/?utm_source=javaistic& utm_campaign = oss "
120
+ target = "_blank"
121
+ rel = "noopener noreferrer"
122
+ >
123
+ < p className = "text text-sm text-gray-500 flex" >
124
+ Powered by
125
+ < Vercel className = "w-auto h-5 ml-1 flex" />
126
+ </ p >
127
+ </ a >
128
+ </ div >
129
+ </ p >
130
+
131
+ < span className = "inline-flex sm:ml-auto sm:mt-0 mt-4 justify-center sm:justify-start" >
132
+ < a
133
+ href = "https://github.com/javaistic/javaistic"
134
+ className = "ml-3 text-gray-500 hover:text-black"
135
+ >
136
+ < GitHub />
137
+ </ a >
138
+ < a
139
+ href = "https://twitter.com/javaistic"
140
+ className = "ml-3 text-gray-500 hover:text-blue-500"
141
+ >
142
+ < Twitter />
82
143
</ a >
83
- </ div >
144
+ </ span >
145
+ </ div >
146
+ < div className = "container px-5 py-2 mb-0 mx-auto flex items-center sm:flex-row flex-col" >
147
+ < a className = "flex title-font font-medium items-center md:justify-start justify-center text-gray-900" >
148
+ < p className = "mt-2 text-sm text-gray-500" >
149
+ © { new Date ( ) . getFullYear ( ) } Javaistic. All rights reserved.
150
+ </ p >
151
+ </ a >
152
+ < a className = "flex pl-6 title-font font-medium items-center md:justify-start justify-center text-gray-900" >
153
+ < p className = "mt-2 text-sm text-gray-500" > Privacy Policy</ p >
154
+ </ a >
155
+ < a className = "flex pl-6 title-font font-medium items-center md:justify-start justify-center text-gray-900" >
156
+ < p className = "mt-2 text-sm text-gray-500" > Terms & Conditions</ p >
157
+ </ a >
158
+ < a
159
+ href = "https://javaistic.betteruptime.com"
160
+ className = "flex pl-6 title-font font-medium items-center md:justify-start justify-center text-gray-900"
161
+ >
162
+ < p className = "mt-2 text-sm text-gray-500 hover:text-black" > Status</ p >
163
+ </ a >
164
+ < span className = "inline-flex sm:ml-auto sm:mt-0 mt-4 justify-center sm:justify-start" > </ span >
84
165
</ div >
85
166
</ div >
86
167
</ footer >
0 commit comments