Skip to content

CW2-37 404 Page #20

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 27 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ee9a017
removed stats card
QuadAces Jun 26, 2024
5a03a62
added description
QuadAces Jun 26, 2024
ba2d84a
changed events to upcomming events
QuadAces Jun 26, 2024
3467cb3
removed resources and contacts completely to remove redunancy (it is …
QuadAces Jun 26, 2024
b642d03
removed imports
QuadAces Jun 26, 2024
cd5f274
changed 04 to 03 to compensate for removed resources
QuadAces Jun 26, 2024
60de018
removed numbers from navbar
QuadAces Jun 27, 2024
cdc995b
halved space between navbar components
QuadAces Jun 27, 2024
b913aa6
shortened about section
QuadAces Jun 27, 2024
6ef6abe
added button for events component
QuadAces Jun 27, 2024
3cd3231
removing numbers
QuadAces Jun 27, 2024
194affa
removing numbers
QuadAces Jun 27, 2024
e8e91bd
removing numbers
QuadAces Jun 27, 2024
c9601a0
removing numbers
QuadAces Jun 27, 2024
4c57d1c
Merge master
derekxu04 Jun 29, 2024
b70b4f5
removed number for resources (sorry trolling)
QuadAces Jul 3, 2024
37891ed
removed numbers for contact us
QuadAces Jul 3, 2024
7ea1a2e
made button smaller and allign to center
QuadAces Jul 3, 2024
b4b60de
added AboutHomepage and removed pinned. Replaced About with AboutHome…
QuadAces Jul 3, 2024
01cf7a9
balanced left side to match right side
QuadAces Jul 3, 2024
36db75e
added Navbar + Footer + 404 page component
QuadAces Jul 3, 2024
11653b5
added details to 404 page
QuadAces Jul 3, 2024
dccb2dc
added more 404 page details
QuadAces Jul 3, 2024
344f27c
added animation
QuadAces Jul 3, 2024
db24e69
removed typo
QuadAces Jul 4, 2024
19aabbe
changed message
QuadAces Jul 25, 2024
e5073a0
changed error message and implemented tailwind transitions
QuadAces Jul 25, 2024
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
Prev Previous commit
Next Next commit
added AboutHomepage and removed pinned. Replaced About with AboutHome…
…page in index.tsx
  • Loading branch information
QuadAces committed Jul 3, 2024
commit b4b60de32ee9140190d6d06c82810f5199ce4a0c
59 changes: 59 additions & 0 deletions frontend/src/components/About/AboutHomepage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import Link from "next/link";
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">ABOUT</h2>
</div>
<div className="flex justify-center items-center">
<div className="lg:grid grid-cols-6 flex-1 max-w-[90rem]">
{/* LEFT SIDE */}
<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-10 text-3xl font-extrabold">CSESoc</h2>
<p className="text-[#727B8C] font-medium">unsw-computer-science-engineering-society</p>
<button className="bg-[#444F6F] w-full my-5 py-2 rounded">Follow</button>
<p>
CSESoc is the principal representative body for UNSW computing students.
</p>
<div className="my-4 flex gap-5">
<Image src="/assets/people_icon.svg" alt="People" width={20} height={20} />
<div>
432 <span className="text-[#727B8C]">members</span> · 342{' '}
<span className="text-[#727B8C]">subcom</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} />
info@csesoc.org.au
</div>
</div>
{/* RIGHT SIDE */}
<div className="col-span-4 lg:mt-0 mt-10">
<div className="rounded border border-[#595F6D] p-5 h-auto">
<p className="text-xs">
csesoc/README<span className="text-[#7A8192]">.md</span>
</p>
<p className="mt-5">
CSESoc is one of the biggest and most active societies at UNSW, catering to over 3500 CSE
students spanning across degrees in 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>

</div>
</div>
</div>
</section>
);
}
31 changes: 24 additions & 7 deletions frontend/src/components/Resources/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@ const Resources = () => {
<div className="2xl:w-[90rem] xl:w-[75rem] w-[90%]">
<div className="relative">
<Image src="assets/resources_bg.svg" alt="Background" className="-z-50 absolute" fill />

<div className="text-center my-10">
<h2 className="font-bold text-6xl">RESOURCES</h2>
</div>

<div className="py-8 bg-no-repeat bg-center">
<div className="grid grid-cols-4 1 gap-x-9 gap-y-5">

{stage1.map((item: resourceCards) => {
return (
<a
Expand All @@ -29,7 +27,13 @@ const Resources = () => {
className={`col-span-4 p-5 ${boxStyling} flex`}
>
<div className="flex justify-center align-middle items-center pl-2 pr-10">
<Image src={item.svg} alt={item.alt} draggable="false" width={item.width} height={item.height}/>
<Image
src={item.svg}
alt={item.alt}
draggable="false"
width={item.width}
height={item.height}
/>
</div>
<div>
<h2 className="mt-5 text-3xl font-extrabold">{item.title}</h2>
Expand All @@ -47,8 +51,14 @@ const Resources = () => {
target="_blank"
className={`xl:col-span-1 col-span-4 p-5 ${boxStyling}`}
>
<div className='flex align-middle items-center pt-2 pb-4'>
<Image src={item.svg} alt={item.alt} draggable="false" width={item.width} height={item.height}/>
<div className="flex align-middle items-center pt-2 pb-4">
<Image
src={item.svg}
alt={item.alt}
draggable="false"
width={item.width}
height={item.height}
/>
</div>
<div>
<h2 className="mt-5 text-3xl font-extrabold">{item.title}</h2>
Expand All @@ -66,8 +76,15 @@ const Resources = () => {
target="_blank"
className={`md:col-span-2 col-span-4 p-5 ${boxStyling} flex`}
>
<div className='flex align-middle items-center pt-2 pb-4 pr-10'>
<Image src={item.svg} alt={item.alt} draggable="false" width={item.width} height={item.height} className='rounded-md'/>
<div className="flex align-middle items-center pt-2 pb-4 pr-10">
<Image
src={item.svg}
alt={item.alt}
draggable="false"
width={item.width}
height={item.height}
className="rounded-md"
/>
</div>
<div>
<h2 className="mt-5 text-3xl font-extrabold">{item.title}</h2>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import Landing from '@/components/Landing';
import Sponsors from '@/components/Sponsors/index';
import About from '@/components/About';
import Event from '@/components/Event';
import AboutHomePage from '@/components/About/AboutHomepage';

export default function Home() {
return (
<section>
<Landing />
<About />
<AboutHomePage />
<Event />
<Sponsors />
</section>
Expand Down