Skip to content

[I2-12] update buttons #42

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 2 commits into from
May 22, 2025
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
10 changes: 10 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"axios": "^1.7.2",
"eslint-config-next": "13.4.19",
"framer-motion": "^11.2.13",
"lucide-react": "^0.511.0",
"next": "13.4.12",
"next-emoji-rain": "^1.0.2",
"postcss": "8.4.29",
Expand Down
108 changes: 55 additions & 53 deletions frontend/src/components/About/AboutHomepage.tsx
Original file line number Diff line number Diff line change
@@ -1,59 +1,61 @@
import Image from "next/image";

export default function AboutHomePage() {
return (
<section className="py-8 xl:px-24 sm:px-10 px-5" id="about">
<div className="text-center my-10">
<h2 className="font-bold text-6xl mb-16">ABOUT</h2>
</div>
<div className="flex justify-center items-center">
<div className="lg:grid grid-cols-6 flex-1 max-w-[90rem]">
{/* LEFT SIDE */}
{/* NOTE: there is slightly altered from about/index.tsx */}
<div className="col-span-2 md:mx-5">
<div className="flex items-center justify-center">
<Image src="/assets/csesoc_icon.svg" alt="CSESoc Icon" width={150} height={150} />
</div>
<h2 className="mt-4 text-3xl font-extrabold">CSESoc</h2>
<p className="text-[#727B8C] font-medium">unsw-computer-science-engineering-society</p>
<div className="my-4 flex gap-5">
<Image src="/assets/people_icon.svg" alt="People" width={20} height={20} />
<div>
16k <span className="text-[#727B8C]">members</span> · 146{' '}
<span className="text-[#727B8C]">internal members</span>
</div>
</div>
<div className="my-4 flex gap-5">
<Image src="/assets/location_icon.svg" alt="Location" width={20} height={20} />
Sydney, Australia
</div>
<div className="flex gap-5">
<Image src="/assets/mail_icon.svg" alt="Mail" width={20} height={20} />
<a href="mailto:[email protected]" className="hover:underline">[email protected]</a>
</div>
</div>
{/* RIGHT SIDE */}
<div className="col-span-4 lg:mt-0 mt-10">
<p className="text-2xl">
We are one of the largest and most active societies at UNSW, and {" "}
<span className="font-bold text-[#3977F8]">the largest computing society in the southern hemisphere</span>.
<br/><br/>
CSESoc comprises {" "}
<span className="font-bold text-[#3977F8]">over 16k members</span>
{" "}spanning across various degrees including Computer Science,
Software Engineering, Bioinformatics and Computer Engineering.
<br/><br/>
We are here to fulfil the social, personal and professional needs of CSE students,
and promote computing through a variety of forms.
</p>
<a href="about">
<button className="mt-16 bg-white border text-[#3977F8] border-[#A7A6E5] text-lg rounded-xl w-[60%] xl:h-12 h-10 hover-animate mx-auto block">
Find out more
</button>
</a>
return (
<section className="py-8 pb-16 xl:px-24 sm:px-10 px-5" id="about">
<div className="text-center my-10">
<h2 className="font-bold text-6xl mb-16">ABOUT</h2>
</div>
<div className="flex justify-center items-center">
<div className="lg:grid grid-cols-6 flex-1 max-w-[90rem]">
{/* LEFT SIDE */}
{/* NOTE: there is slightly altered from about/index.tsx */}
<div className="col-span-2 md:mx-5">
<div className="flex items-center justify-center">
<Image src="/assets/csesoc_icon.svg" alt="CSESoc Icon" width={150} height={150} />
</div>
<h2 className="mt-4 text-3xl font-extrabold">CSESoc</h2>
<p className="text-[#727B8C] font-medium">unsw-computer-science-engineering-society</p>
<div className="my-4 flex gap-5">
<Image src="/assets/people_icon.svg" alt="People" width={20} height={20} />
<div>
16k <span className="text-[#727B8C]">members</span> · 146{' '}
<span className="text-[#727B8C]">internal members</span>
</div>
</div>
<div className="my-4 flex gap-5">
<Image src="/assets/location_icon.svg" alt="Location" width={20} height={20} />
Sydney, Australia
</div>
<div className="flex gap-5">
<Image src="/assets/mail_icon.svg" alt="Mail" width={20} height={20} />
<a href="mailto:[email protected]" className="hover:underline">[email protected]</a>
</div>
</div>
{/* RIGHT SIDE */}
<div className="col-span-4 lg:mt-0 mt-10">
<p className="text-2xl">
We are one of the largest and most active societies at UNSW, and {" "}
<span className="font-bold text-[#3977F8]">the largest computing society in the southern hemisphere</span>.
<br/><br/>
CSESoc comprises {" "}
<span className="font-bold text-[#3977F8]">over 16k members</span>
{" "}spanning across various degrees including Computer Science,
Software Engineering, Bioinformatics and Computer Engineering.
<br/><br/>
We are here to fulfil the social, personal and professional needs of CSE students,
and promote computing through a variety of forms.
</p>
<div className="flex pt-8 justify-center items-center">
<a href="about">
<button className="group flex justify-center items-center gap-2 pl-2 bg-white border text-blue-900 font-semibold border-[#A7A6E5] text-lg rounded-3xl w-[14rem] hover:opacity-60 xl:h-12 h-10 duration-300">
Find out more...
</button>
</a>
</div>
</div>
</section>
);
}
</div>
</div>
</section>
);
}
8 changes: 5 additions & 3 deletions frontend/src/components/Event/EventsBrief.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import { events } from '../../../public/data/events';
import EventsCarousel from './EventsCarousel';
import { ChevronRight } from 'lucide-react';

const EventBrief = () => {
return (
Expand All @@ -16,9 +17,10 @@ const EventBrief = () => {
}
<div className="flex justify-center items-center">
<a href="events">
<button className="mt-10 bg-white border text-[#3977F8] border-[#A7A6E5] text-lg rounded-xl w-[20rem] xl:h-12 h-10 hover-animate">
See all events
</button>
<button className="group flex justify-center items-center gap-2 pl-2 bg-white border text-blue-900 font-semibold border-[#A7A6E5] text-lg rounded-3xl w-[14rem] hover:opacity-60 xl:h-12 h-10 duration-300">
See all events
<ChevronRight className="group-hover:animate-bounce-right" />
</button>
</a>
</div>
</section>
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/components/Sponsors/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import Footer from '@/components/Footer';
import SponsorCarousel from './SponsorCarousel';
import { ChevronRight } from 'lucide-react';

const Sponsors = () => {
return (
Expand All @@ -18,8 +19,9 @@ const Sponsors = () => {
<SponsorCarousel />
<div className="flex justify-center items-center">
<a href="sponsors">
<button className="bg-white border text-[#3977F8] border-[#A7A6E5] text-lg rounded-xl w-[20rem] xl:h-12 h-10 hover-animate">
<button className="group flex justify-center items-center gap-2 pl-2 bg-white border text-blue-900 font-semibold border-[#A7A6E5] text-lg rounded-3xl w-[14rem] hover:opacity-60 xl:h-12 h-10 duration-300">
See all sponsors
<ChevronRight className="group-hover:animate-bounce-right" />
</button>
</a>
</div>
Expand Down
9 changes: 9 additions & 0 deletions frontend/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ const config: Config = {
],
theme: {
extend: {
keyframes: {
'bounce-right': {
'0%, 100%': { transform: 'translateX(0)' },
'50%': { transform: 'translateX(6px)' },
},
},
animation: {
'bounce-right': 'bounce-right 1.0s ease-in-out infinite',
},
fontFamily: {
game: "'Press Start 2P', cursive"
},
Expand Down
Loading