Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

CW2-5 Sponsors Page Draft/Template#3

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
andrew-l3 merged 3 commits intomasterfromCW2-5-Create-sponsors-page
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes fromall 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
42 changes: 42 additions & 0 deletionscomponents/Footer.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
import Link from 'next/link';

const Footer = () => {
return (
<section>
<div className="sm:flex justify-between">
<div className="flex items-center">
<img src="assets/csesoc_logo_white.svg" alt="CSESoc Logo" />
<Link href="/flag/ollie_is_hiding.png" target="_blank" className="sm:hidden block">
<img
src="/flag/ollie_is_hiding.png"
alt="Ollie"
draggable="false"
width={60}
height={60}
className="ml-10"
/>
</Link>
<img
src="/flag/ollie_is_hiding.png"
alt="Ollie"
draggable="false"
width={60}
height={60}
className="ml-10 sm:block hidden"
/>
</div>
<div className="flex flex-col max-w-[14rem] sm:mt-0 mt-10 font-light">
<p className="mb-6">B03 CSE Building K17, UNSW csesoc@csesoc.org.au</p>
<p>© 2021 — CSESoc UNSW</p>
</div>
</div>
<img
src="assets/sponsors_backdrop.svg"
alt="Sponsors backdrop"
className="absolute bottom-0 left-0 w-screen -z-10"
/>
</section>
);
};

export default Footer;
20 changes: 14 additions & 6 deletionscomponents/Navbar.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,42 @@
import Image from 'next/image';
import Link from 'next/link';
import { useEffect, useState } from 'react';

const Navbar = () => {
const [path, setPath] = useState<string>('');
useEffect(() => {
const item: string | undefined = window.location.href.split('/').pop();
if (item == '' || item == undefined) setPath('HOME');
else setPath(item.toUpperCase());
}, []);

return (
<nav className="flex justify-between items-center relative z-10">
<Link href="#landing">
<Link href="/">
<Image
src="/assets/csesoc_logo.svg"
alt="CSESoc Logo"
width={200}
height={200}
draggable={false}
/>
<p className="mt-3 text-xs">C:\INTERNAL STRUCTURE\HOME</p>
<p className="mt-3 text-xs">C:\INTERNAL STRUCTURE\{path}</p>
</Link>
<div>
<div className="md:flex xl:gap-36 lg:gap-20 md:gap-10 text-right font-bold hidden">
<Link href="#about">
<Link href="about us">
<p className="text-[0.6rem] text-[#C4C5C8]">01</p>
<div>{'//'} about us</div>
</Link>
<Link href="#events">
<Link href="events">
<p className="text-[0.6rem] text-[#C4C5C8]">02</p>
<div>{'//'} events</div>
</Link>
<Link href="#resources">
<Link href="resources">
<p className="text-[0.6rem] text-[#C4C5C8]">03</p>
<div>{'//'} resources</div>
</Link>
<Link href="#sponsors">
<Link href="sponsors">
<p className="text-[0.6rem] text-[#C4C5C8]">04</p>
<div>{'//'} sponsors</div>
</Link>
Expand Down
9 changes: 5 additions & 4 deletionscomponents/Sponsors/index.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
importImagefrom'next/image';
importLinkfrom'next/link';
importReactfrom'react';

Expand DownExpand Up@@ -26,9 +25,11 @@ const Sponsors = () => {
<divclassName="max-w-[15rem]">
<h2className="text-4xl font-black">Our sponsors</h2>
<pclassName="xl:my-10 my-3 text-lg">Check out our very cool sponsors.</p>
<buttonclassName="bg-white border text-[#3977F8] border-[#A7A6E5] text-lg rounded-xl w-[100%] xl:h-12 h-10">
View our sponsors
</button>
<ahref="sponsors">
<buttonclassName="bg-white border text-[#3977F8] border-[#A7A6E5] text-lg rounded-xl w-[100%] xl:h-12 h-10">
View our sponsors
</button>
</a>
</div>
</div>
<divclassName={`${firstRowBoxesStyling} bg-[rgba(0, 71, 255, 0.33)]`}>
Expand Down
59 changes: 59 additions & 0 deletionscomponents/Sponsors/sponsorlinks.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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 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"
>
<h2 className="text-4xl font-black">Diamond Sponsors</h2>
{diamondLinks.map((item, index) => {
return (
<a key={index} className={`${logodiv}`} href={item.href}>
<img className={`${logostyle}`} src={item.svg} alt={item.alt} />
</a>
);
})}
</div>
<div
style={{ backgroundImage: `${background}` }}
className="flex rounded-[1rem] px-14 py-14"
>
<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>
</div>
<div
style={{ backgroundImage: `${background}` }}
className="grid grid-cols-5 rounded-[1rem] pl-14 py-14 gap-16 items-center"
>
<h2 className="text-4xl font-black">Silver Sponsors</h2>
{silverLinks.map((item, index) => {
return (
<a key={index} className="h-14" href={item.href}>
<img className="h-8" src={item.svg} alt={item.alt} />
</a>
);
})}
</div>
</div>
</div>
);
}

export default SponsorLinks;
13 changes: 13 additions & 0 deletionscomponents/Sponsors/subpage.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
import React from 'react';
//import '/styles/sponsors.module.css';
import SponsorLinks from './sponsorlinks';

const SponsorsPage = () => {
return (
<section className="">
<SponsorLinks />
</section>
);
};

export default SponsorsPage;
2 changes: 1 addition & 1 deletionpages/index.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
import Landing from '@/components/Landing';
import Sponsors from '@/components/Sponsors';
import Sponsors from '@/components/Sponsors/index';
import About from '@/components/About';
import Event from '@/components/Event';
import ResourcesAndContacts from '@/components/ResourcesAndContacts';
Expand Down
13 changes: 13 additions & 0 deletionspages/sponsors.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
import SponsorsPage from '@/components/Sponsors/subpage';
import Navbar from '@/components/Navbar';
import Footer from '@/components/Footer';

export default function Home() {
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 />
<Footer />
</section>
);
}
27 changes: 27 additions & 0 deletionspublic/assets/appian_logo.svg
View file
Open in desktop
Loading
Sorry, something went wrong.Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletionspublic/assets/canva_logo.svg
View file
Open in desktop
Loading
Sorry, something went wrong.Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletionspublic/assets/citadel_logo.svg
View file
Open in desktop
Loading
Sorry, something went wrong.Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletionspublic/assets/flowtraders_logo.svg
View file
Open in desktop
Loading
Sorry, something went wrong.Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletionspublic/assets/imc_logo.svg
View file
Open in desktop
Loading
Sorry, something went wrong.Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletionspublic/assets/janestreet_logo.svg
View file
Open in desktop
Loading
Sorry, something went wrong.Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

[8]ページ先頭

©2009-2025 Movatter.jp