Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion app/(home)/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ const socialLinks = [

const links = [
{ label: 'Home', href: '/' },
{ label: 'SIGs', href: '/sigs' },
// { label: 'SIGs', href: '/sigs' },
{
label: 'Code of Conduct',
href: '/code-of-conduct',
external: false,
},
{ label: 'About', href: 'https://www.meetup.com/durianpy/', external: true },
{
label: 'Speak',
Expand Down
2 changes: 0 additions & 2 deletions app/(home)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { CTASection } from './components/CTASection';
import { StatsAndReviews } from './components/StatsAndReviews';
import { PythonFoundation } from './components//PythonFoundation';
import { Partners } from './components//Partners';
import { Footer } from './components//Footer';

export default function HomePage() {
return (
Expand All @@ -15,7 +14,6 @@ export default function HomePage() {
<StatsAndReviews />
<PythonFoundation />
<Partners />
<Footer />
</main>
);
}
35 changes: 35 additions & 0 deletions app/code-of-conduct/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
export default function CodeOfConductPage() {
return (
<main className="mt-20 bg-dark-green text-white min-h-[70vh] py-8 md:px-36 px-10 flex flex-col justify-center">
<h1 className="text-4xl md:text-6xl font-bold mb-8">
Code of <span className="text-primary">Conduct</span>
</h1>

<h2 className="text-xl md:text-4xl font-medium mb-8">
We value respect and inclusivity in all events.
</h2>

<p className="text-xl max-w-3xl leading-relaxed mb-8">
The Python community is made up of members from around the globe with a
diverse set of skills, personalities, and experiences. It is through
these differences that our community experiences great successes and
continued growth.
</p>

<p className="text-xl max-w-3xl leading-relaxed">
To clarify our expectations, all participants, including attendees,
speakers, exhibitors, organizers, and volunteers at any DurianPy event,
must adhere to the following{' '}
<a
href="https://policies.python.org/python.org/code-of-conduct/"
target="_blank"
rel="noopener noreferrer"
className="text-[#F5B041] hover:underline"
>
Code of Conduct
</a>
.
</p>
</main>
);
}
2 changes: 2 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { Metadata } from 'next';
import '@/styles/globals.css';
import Navbar from '@/components/navs/public/Navbar';
import { ReactLenis } from 'lenis/react';
import { Footer } from './(home)/components/Footer';

const head = {
title: 'DurianPy',
Expand Down Expand Up @@ -43,6 +44,7 @@ export default function RootLayout({
<body className={`antialiased bg-dark-green`}>
<Navbar />
<ReactLenis root>{children}</ReactLenis>
<Footer />
</body>
</html>
);
Expand Down
13 changes: 11 additions & 2 deletions components/navs/public/DesktopView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,25 @@ export default function DesktopView() {
>
Speak
</Button>
<Button
{/* <Button
variant={'navLink'}
onClick={() => router.push('/404')}
className={`${pathname === '/sigs' ? 'text-primary border-primary' : ''}`}
>
SIGs
</Button> */}
<Button
variant={'navLink'}
onClick={() => router.push('/code-of-conduct')}
className={`${pathname === '/code-of-conduct' ? 'text-primary border-primary' : ''}`}
>
Code of Conduct
</Button>
<Button
variant={'navLink'}
onClick={() => router.push('/contact')}
onClick={() =>
redirectTo({ href: 'https://www.facebook.com/durianpy' })
}
className={`${pathname === '/contact' ? 'text-primary border-primary' : ''}`}
>
Contact Us
Expand Down
12 changes: 10 additions & 2 deletions components/navs/public/MobileView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,17 @@ export default function MobileView() {
</AccordionItem>
</Accordion>

<Button
{/* <Button
variant={'navLinkMobile'}
onClick={() => router.push('/404')}
>
SIGs
</Button> */}
<Button
variant={'navLinkMobile'}
onClick={() => router.push('/code-of-conduct')}
>
Code of Conduct
</Button>
<Button
variant={'navLinkMobile'}
Expand All @@ -103,7 +109,9 @@ export default function MobileView() {
</Button>
<Button
variant={'navLinkMobile'}
onClick={() => router.push('/contact')}
onClick={() =>
redirectTo({ href: 'https://www.facebook.com/durianpy' })
}
>
Contact Us
</Button>
Expand Down