Skip to content

Commit cbe0938

Browse files
committed
Update Footer
1 parent 2ebfba4 commit cbe0938

File tree

1 file changed

+95
-14
lines changed

1 file changed

+95
-14
lines changed

src/components/home/Footer.js

Lines changed: 95 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,32 @@ import clsx from 'clsx'
66
import Link from 'next/link'
77
import styles from './Footer.module.css'
88

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+
935
const footerNav = {
1036
'Getting started': {
1137
className: 'row-span-2',
@@ -22,16 +48,16 @@ const footerNav = {
2248
{ title: 'Java Docs', href: '/docs' },
2349
{ title: 'Java Programs', href: '/programs' },
2450
{ title: 'About', href: '/' },
25-
{ title: 'Status', href: 'https://javaistic.betteruptime.com/' },
51+
{ title: 'Contact', href: 'mailto:javaistic@gmail.com' },
2652
],
2753
},
2854
Others: {
2955
className: 'row-span-2',
3056
items: [
3157
{ title: 'Brand', href: '/brand' },
58+
{ title: 'Sponsors', href: '/sponsors' },
3259
{ title: 'Changelog', href: 'https://javaistic-changelog.vercel.app/' },
3360
{ title: 'Open Source', href: '/' },
34-
{ title: 'Contact', href: 'mailto:javaistic@gmail.com' },
3561
],
3662
},
3763
Community: {
@@ -46,14 +72,14 @@ const footerNav = {
4672

4773
export function Footer() {
4874
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">
5076
<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">
5177
<ul
5278
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`}
5379
>
5480
{Object.keys(footerNav).map((section, i) => (
5581
<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">
5783
{section}
5884
</h2>
5985
<ul className="space-y-4">
@@ -70,17 +96,72 @@ export function Footer() {
7096
</li>
7197
))}
7298
</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&nbsp;<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 />
82143
</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+
&copy; {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 &amp; 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>
84165
</div>
85166
</div>
86167
</footer>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy