Skip to content

Commit d2fc2d6

Browse files
authored
Setup template pages (#9)
1 parent 229c00e commit d2fc2d6

File tree

8 files changed

+59
-37
lines changed

8 files changed

+59
-37
lines changed

components/Footer.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const Footer = () => {
66
<section>
77
<div className="sm:flex justify-between">
88
<div className="flex items-center">
9-
<Image src="assets/csesoc_logo_white.svg" alt="CSESoc Logo" />
9+
<img src="assets/csesoc_logo_white.svg" alt="CSESoc Logo" />
1010
<Link href="/flag/ollie_is_hiding.png" target="_blank" className="sm:hidden block">
1111
<Image
1212
src="/flag/ollie_is_hiding.png"
@@ -31,7 +31,7 @@ const Footer = () => {
3131
<p>© 2021 — CSESoc UNSW</p>
3232
</div>
3333
</div>
34-
<Image
34+
<img
3535
src="assets/sponsors_backdrop.svg"
3636
alt="Sponsors backdrop"
3737
className="absolute bottom-0 left-0 w-screen -z-10"

components/Navbar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const Navbar = () => {
2424
</Link>
2525
<div>
2626
<div className="md:flex xl:gap-36 lg:gap-20 md:gap-10 text-right font-bold hidden">
27-
<Link href="about us">
27+
<Link href="about">
2828
<p className="text-[0.6rem] text-[#C4C5C8]">01</p>
2929
<div>{'//'} about us</div>
3030
</Link>

components/Sponsors/sponsorlinks.tsx

+15-18
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@ import { diamondLinks, goldLinks, silverLinks } from '../../public/data/data';
22
//import '/styles/sponsorLinks.module.css';
33
const logostyle = 'h-14';
44
const logodiv = 'block gap-y-8 h-14';
5-
const background =
6-
'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%)';
5+
const background = 'rgba(57, 119, 248, 0.6)';
76
// const outer = 'rounded-[4rem] w-[90rem] flex flex-col pl-14 py-14 gap-16';
87

98
function SponsorLinks() {
109
return (
1110
<div className="flex justify-center items-center my-20">
1211
<div className="w-100 flex flex-col gap-16">
1312
<div
14-
style={{ backgroundImage: `${background}` }}
15-
className="flex rounded-[1rem] pl-14 py-14 gap-16 items-center"
13+
style={{ backgroundColor: `${background}` }}
14+
className="flex flex-wrap rounded-[1rem] pl-14 py-14 gap-16 items-center"
1615
>
1716
<h2 className="text-4xl font-black">Diamond Sponsors</h2>
1817
{diamondLinks.map((item, index) => {
@@ -24,23 +23,21 @@ function SponsorLinks() {
2423
})}
2524
</div>
2625
<div
27-
style={{ backgroundImage: `${background}` }}
28-
className="flex rounded-[1rem] px-14 py-14"
26+
style={{ backgroundColor: `${background}` }}
27+
className="flex flex-wrap rounded-[1rem] px-14 py-14 gap-16 items-center"
2928
>
30-
<h2 className="text-4xl font-black pr-16">Gold Sponsors</h2>
31-
<div className="grid grid-cols-5 gap-16 items-center">
32-
{goldLinks.map((item, index) => {
33-
return (
34-
<a key={index} className="" href={item.href}>
35-
<img className="h-6" src={item.svg} alt={item.alt} />
36-
</a>
37-
);
38-
})}
39-
</div>
29+
<h2 className="text-4xl font-black">Gold Sponsors</h2>
30+
{goldLinks.map((item, index) => {
31+
return (
32+
<a key={index} className="" href={item.href}>
33+
<img className="h-6" src={item.svg} alt={item.alt} />
34+
</a>
35+
);
36+
})}
4037
</div>
4138
<div
42-
style={{ backgroundImage: `${background}` }}
43-
className="grid grid-cols-5 rounded-[1rem] pl-14 py-14 gap-16 items-center"
39+
style={{ backgroundColor: `${background}` }}
40+
className="flex flex-wrap rounded-[1rem] px-14 py-14 gap-16 items-center"
4441
>
4542
<h2 className="text-4xl font-black">Silver Sponsors</h2>
4643
{silverLinks.map((item, index) => {

components/Sponsors/subpage.tsx

-13
This file was deleted.

pages/about.tsx

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import Navbar from '@/components/Navbar';
2+
import Footer from '@/components/Footer';
3+
import About from '@/components/About';
4+
5+
export default function AboutPage() {
6+
return (
7+
<section className="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative overflow-hidden">
8+
<Navbar />
9+
<About />
10+
<Footer />
11+
</section>
12+
);
13+
}

pages/events.tsx

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import Navbar from '@/components/Navbar';
2+
import Footer from '@/components/Footer';
3+
4+
export default function EventsPage() {
5+
return (
6+
<section className="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative overflow-hidden">
7+
<Navbar />
8+
<div>Events</div>
9+
<Footer />
10+
</section>
11+
);
12+
}

pages/resources.tsx

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import Navbar from '@/components/Navbar';
2+
import Footer from '@/components/Footer';
3+
import ResourcesAndContacts from '@/components/ResourcesAndContacts';
4+
5+
export default function ResourcesPage() {
6+
return (
7+
<section className="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative overflow-hidden">
8+
<Navbar />
9+
<ResourcesAndContacts />
10+
<Footer />
11+
</section>
12+
);
13+
}

pages/sponsors.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import SponsorsPage from '@/components/Sponsors/subpage';
1+
import SponsorLinks from '@/components/Sponsors/sponsorlinks';
22
import Navbar from '@/components/Navbar';
33
import Footer from '@/components/Footer';
44

5-
export default function Home() {
5+
export default function SponsorsPage() {
66
return (
77
<section className="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative overflow-hidden">
88
<Navbar />
9-
<SponsorsPage />
9+
<SponsorLinks />
1010
<Footer />
1111
</section>
1212
);

0 commit comments

Comments
 (0)