Skip to content

Commit 140aa8a

Browse files
Arnel Jan SarmientoSamshh
authored andcommitted
feat: integrate add code of conduct page
1 parent cc98a5e commit 140aa8a

6 files changed

Lines changed: 64 additions & 7 deletions

File tree

app/(home)/components/Footer.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ const socialLinks = [
4242

4343
const links = [
4444
{ label: 'Home', href: '/' },
45-
{ label: 'SIGs', href: '/sigs' },
45+
// { label: 'SIGs', href: '/sigs' },
46+
{
47+
label: 'Code of Conduct',
48+
href: '/code-of-conduct',
49+
external: false,
50+
},
4651
{ label: 'About', href: 'https://www.meetup.com/durianpy/', external: true },
4752
{
4853
label: 'Speak',

app/(home)/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { CTASection } from './components/CTASection';
44
import { StatsAndReviews } from './components/StatsAndReviews';
55
import { PythonFoundation } from './components//PythonFoundation';
66
import { Partners } from './components//Partners';
7-
import { Footer } from './components//Footer';
87

98
export default function HomePage() {
109
return (
@@ -15,7 +14,6 @@ export default function HomePage() {
1514
<StatsAndReviews />
1615
<PythonFoundation />
1716
<Partners />
18-
<Footer />
1917
</main>
2018
);
2119
}

app/code-of-conduct/page.tsx

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
export default function CodeOfConductPage() {
2+
return (
3+
<main className="mt-20 bg-dark-green text-white min-h-[70vh] py-8 md:px-36 px-10 flex flex-col justify-center">
4+
<h1 className="text-4xl md:text-6xl font-bold mb-8">
5+
Code of <span className="text-primary">Conduct</span>
6+
</h1>
7+
8+
<h2 className="text-xl md:text-4xl font-medium mb-8">
9+
We value respect and inclusivity in all events.
10+
</h2>
11+
12+
<p className="text-xl max-w-3xl leading-relaxed mb-8">
13+
The Python community is made up of members from around the globe with a
14+
diverse set of skills, personalities, and experiences. It is through
15+
these differences that our community experiences great successes and
16+
continued growth.
17+
</p>
18+
19+
<p className="text-xl max-w-3xl leading-relaxed">
20+
To clarify our expectations, all participants, including attendees,
21+
speakers, exhibitors, organizers, and volunteers at any DurianPy event,
22+
must adhere to the following{' '}
23+
<a
24+
href="https://policies.python.org/python.org/code-of-conduct/"
25+
target="_blank"
26+
rel="noopener noreferrer"
27+
className="text-[#F5B041] hover:underline"
28+
>
29+
Code of Conduct
30+
</a>
31+
.
32+
</p>
33+
</main>
34+
);
35+
}

app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { Metadata } from 'next';
22
import '@/styles/globals.css';
33
import Navbar from '@/components/navs/public/Navbar';
44
import { ReactLenis } from 'lenis/react';
5+
import { Footer } from './(home)/components/Footer';
56

67
const head = {
78
title: 'DurianPy',
@@ -43,6 +44,7 @@ export default function RootLayout({
4344
<body className={`antialiased bg-dark-green`}>
4445
<Navbar />
4546
<ReactLenis root>{children}</ReactLenis>
47+
<Footer />
4648
</body>
4749
</html>
4850
);

components/navs/public/DesktopView.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,25 @@ export default function DesktopView() {
7373
>
7474
Speak
7575
</Button>
76-
<Button
76+
{/* <Button
7777
variant={'navLink'}
7878
onClick={() => router.push('/404')}
7979
className={`${pathname === '/sigs' ? 'text-primary border-primary' : ''}`}
8080
>
8181
SIGs
82+
</Button> */}
83+
<Button
84+
variant={'navLink'}
85+
onClick={() => router.push('/code-of-conduct')}
86+
className={`${pathname === '/code-of-conduct' ? 'text-primary border-primary' : ''}`}
87+
>
88+
Code of Conduct
8289
</Button>
8390
<Button
8491
variant={'navLink'}
85-
onClick={() => router.push('/contact')}
92+
onClick={() =>
93+
redirectTo({ href: 'https://www.facebook.com/durianpy' })
94+
}
8695
className={`${pathname === '/contact' ? 'text-primary border-primary' : ''}`}
8796
>
8897
Contact Us

components/navs/public/MobileView.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,17 @@ export default function MobileView() {
8787
</AccordionItem>
8888
</Accordion>
8989

90-
<Button
90+
{/* <Button
9191
variant={'navLinkMobile'}
9292
onClick={() => router.push('/404')}
9393
>
9494
SIGs
95+
</Button> */}
96+
<Button
97+
variant={'navLinkMobile'}
98+
onClick={() => router.push('/code-of-conduct')}
99+
>
100+
Code of Conduct
95101
</Button>
96102
<Button
97103
variant={'navLinkMobile'}
@@ -103,7 +109,9 @@ export default function MobileView() {
103109
</Button>
104110
<Button
105111
variant={'navLinkMobile'}
106-
onClick={() => router.push('/contact')}
112+
onClick={() =>
113+
redirectTo({ href: 'https://www.facebook.com/durianpy' })
114+
}
107115
>
108116
Contact Us
109117
</Button>

0 commit comments

Comments
 (0)