Skip to content

[CW2-23] Setup pages for about, events, resources #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 20, 2024
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
4 changes: 2 additions & 2 deletions components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<section>
<div className="sm:flex justify-between">
<div className="flex items-center">
<Image src="assets/csesoc_logo_white.svg" alt="CSESoc Logo" />
<img src="assets/csesoc_logo_white.svg" alt="CSESoc Logo" />

Check warning on line 9 in components/Footer.tsx

View workflow job for this annotation

GitHub Actions / build

Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element
<Link href="/flag/ollie_is_hiding.png" target="_blank" className="sm:hidden block">
<Image
src="/flag/ollie_is_hiding.png"
Expand All @@ -31,7 +31,7 @@
<p>© 2021 — CSESoc UNSW</p>
</div>
</div>
<Image
<img

Check warning on line 34 in components/Footer.tsx

View workflow job for this annotation

GitHub Actions / build

Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element
src="assets/sponsors_backdrop.svg"
alt="Sponsors backdrop"
className="absolute bottom-0 left-0 w-screen -z-10"
Expand Down
2 changes: 1 addition & 1 deletion components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Navbar = () => {
</Link>
<div>
<div className="md:flex xl:gap-36 lg:gap-20 md:gap-10 text-right font-bold hidden">
<Link href="about us">
<Link href="about">
<p className="text-[0.6rem] text-[#C4C5C8]">01</p>
<div>{'//'} about us</div>
</Link>
Expand Down
33 changes: 15 additions & 18 deletions components/Sponsors/sponsorlinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@ import { diamondLinks, goldLinks, silverLinks } from '../../public/data/data';
//import '/styles/sponsorLinks.module.css';
const logostyle = 'h-14';
const logodiv = 'block gap-y-8 h-14';
const background =
'radial-gradient(50% 50% at 50% 50%, rgba(235, 1, 255, 0.6) 0%, rgba(121, 73, 255, 0.6) 48.96%, rgba(57, 119, 248, 0.6) 100%)';
const background = 'rgba(57, 119, 248, 0.6)';
// const outer = 'rounded-[4rem] w-[90rem] flex flex-col pl-14 py-14 gap-16';

function SponsorLinks() {
return (
<div className="flex justify-center items-center my-20">
<div className="w-100 flex flex-col gap-16">
<div
style={{ backgroundImage: `${background}` }}
className="flex rounded-[1rem] pl-14 py-14 gap-16 items-center"
style={{ backgroundColor: `${background}` }}
className="flex flex-wrap rounded-[1rem] pl-14 py-14 gap-16 items-center"
>
<h2 className="text-4xl font-black">Diamond Sponsors</h2>
{diamondLinks.map((item, index) => {
Expand All @@ -24,23 +23,21 @@ function SponsorLinks() {
})}
</div>
<div
style={{ backgroundImage: `${background}` }}
className="flex rounded-[1rem] px-14 py-14"
style={{ backgroundColor: `${background}` }}
className="flex flex-wrap rounded-[1rem] px-14 py-14 gap-16 items-center"
>
<h2 className="text-4xl font-black pr-16">Gold Sponsors</h2>
<div className="grid grid-cols-5 gap-16 items-center">
{goldLinks.map((item, index) => {
return (
<a key={index} className="" href={item.href}>
<img className="h-6" src={item.svg} alt={item.alt} />
</a>
);
})}
</div>
<h2 className="text-4xl font-black">Gold Sponsors</h2>
{goldLinks.map((item, index) => {
return (
<a key={index} className="" href={item.href}>
<img className="h-6" src={item.svg} alt={item.alt} />
</a>
);
})}
</div>
<div
style={{ backgroundImage: `${background}` }}
className="grid grid-cols-5 rounded-[1rem] pl-14 py-14 gap-16 items-center"
style={{ backgroundColor: `${background}` }}
className="flex flex-wrap rounded-[1rem] px-14 py-14 gap-16 items-center"
>
<h2 className="text-4xl font-black">Silver Sponsors</h2>
{silverLinks.map((item, index) => {
Expand Down
13 changes: 0 additions & 13 deletions components/Sponsors/subpage.tsx

This file was deleted.

13 changes: 13 additions & 0 deletions pages/about.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import Navbar from '@/components/Navbar';
import Footer from '@/components/Footer';
import About from '@/components/About';

export default function AboutPage() {
return (
<section className="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative overflow-hidden">
<Navbar />
<About />
<Footer />
</section>
);
}
12 changes: 12 additions & 0 deletions pages/events.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import Navbar from '@/components/Navbar';
import Footer from '@/components/Footer';

export default function EventsPage() {
return (
<section className="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative overflow-hidden">
<Navbar />
<div>Events</div>
<Footer />
</section>
);
}
13 changes: 13 additions & 0 deletions pages/resources.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import Navbar from '@/components/Navbar';
import Footer from '@/components/Footer';
import ResourcesAndContacts from '@/components/ResourcesAndContacts';

export default function ResourcesPage() {
return (
<section className="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative overflow-hidden">
<Navbar />
<ResourcesAndContacts />
<Footer />
</section>
);
}
6 changes: 3 additions & 3 deletions pages/sponsors.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import SponsorsPage from '@/components/Sponsors/subpage';
import SponsorLinks from '@/components/Sponsors/sponsorlinks';
import Navbar from '@/components/Navbar';
import Footer from '@/components/Footer';

export default function Home() {
export default function SponsorsPage() {
return (
<section className="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative overflow-hidden">
<Navbar />
<SponsorsPage />
<SponsorLinks />
<Footer />
</section>
);
Expand Down
Loading