Skip to content

Commit

Permalink
Merge pull request #85 from UoaWDCC/yoyo-HomePage-Socials
Browse files Browse the repository at this point in the history
Yoyo home page socials
  • Loading branch information
GBHU753 authored Aug 10, 2024
2 parents 8550ee3 + 9f786ff commit f241c91
Showing 121 changed files with 249 additions and 5 deletions.
Empty file modified .devcontainer/full/devcontainer.json
100755 → 100644
Empty file.
Empty file modified .devcontainer/minimal/devcontainer.json
100755 → 100644
Empty file.
Empty file modified .github/ISSUE_TEMPLATE/issue_template.md
100755 → 100644
Empty file.
Empty file modified .github/pull_request_template.md
100755 → 100644
Empty file.
Empty file modified .github/workflows/deploy.production.yml
100755 → 100644
Empty file.
Empty file modified .github/workflows/deploy.staging.yml
100755 → 100644
Empty file.
6 changes: 6 additions & 0 deletions .github/workflows/generate-api-client.yml
100755 → 100644
Original file line number Diff line number Diff line change
@@ -19,6 +19,12 @@ jobs:
cmd: install
- name: Generate API Client
run: yarn generate:api-client
- name: Prettify API client code
uses: creyD/prettier_action@v4.3
with:
# This part is also where you can pass other options, for example:
commit_message: "Chore: Prettify code"
prettier_options: "--write frontend/src/api-client/**/*.ts"
- name: Commit new API client
uses: stefanzweifel/git-auto-commit-action@v5
with:
Empty file modified .github/workflows/notification.yml
100755 → 100644
Empty file.
Empty file modified .gitignore
100755 → 100644
Empty file.
Empty file modified README.MD
100755 → 100644
Empty file.
Empty file modified backend/.gitignore
100755 → 100644
Empty file.
Empty file modified backend/README.md
100755 → 100644
Empty file.
Empty file modified backend/docs/EventRoutes.md
100755 → 100644
Empty file.
Empty file modified backend/docs/ExecRoutes.md
100755 → 100644
Empty file.
Empty file modified backend/docs/TicketRoutes.md
100755 → 100644
Empty file.
Empty file modified backend/docs/UserRoutes.md
100755 → 100644
Empty file.
Empty file modified backend/fly.production.toml
100755 → 100644
Empty file.
Empty file modified backend/fly.staging.toml
100755 → 100644
Empty file.
Empty file modified backend/package.json
100755 → 100644
Empty file.
Empty file modified backend/yarn.lock
100755 → 100644
Empty file.
Empty file modified docker/docker-compose.microservice.yml
100755 → 100644
Empty file.
Empty file modified docker/docker-compose.workspace.yml
100755 → 100644
Empty file.
Empty file modified docker/dockerfile/Dockerfile
100755 → 100644
Empty file.
Empty file modified frontend/.eslintrc.json
100755 → 100644
Empty file.
Empty file modified frontend/.gitignore
100755 → 100644
Empty file.
Empty file modified frontend/Dockerfile.production
100755 → 100644
Empty file.
Empty file modified frontend/Dockerfile.staging
100755 → 100644
Empty file.
Empty file modified frontend/README.md
100755 → 100644
Empty file.
Empty file modified frontend/fly.production.toml
100755 → 100644
Empty file.
Empty file modified frontend/fly.staging.toml
100755 → 100644
Empty file.
Empty file modified frontend/next.config.mjs
100755 → 100644
Empty file.
5 changes: 3 additions & 2 deletions frontend/package.json
100755 → 100644
Original file line number Diff line number Diff line change
@@ -13,11 +13,12 @@
"react": "^18",
"react-dom": "^18",
"react-icons": "^5.2.1",
"tailwind-scrollbar": "^3.1.0"
"tailwind-scrollbar": "^3.1.0",
"react-social-media-embed": "^2.5.13"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18",
"@types/react": "^18.3.1",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.2.2",
Empty file modified frontend/postcss.config.mjs
100755 → 100644
Empty file.
Empty file modified frontend/public/ASPA Title.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/public/ASPA Title.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/public/ContactsHeroBanner.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/public/Event Photo.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/public/EventsHeroBanner.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/public/discord.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/public/discord.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/public/facebook.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/public/instagram.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/public/linkedin.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/public/next.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/public/vercel.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/src/app/contact/page.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/app/events-admin/events-dashboard/page.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/app/events-admin/page.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/app/events/event-info/event-registration/page.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/app/events/event-info/page.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/app/events/page.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/app/favicon.ico
100755 → 100644
Empty file.
Empty file modified frontend/src/app/globals.css
100755 → 100644
Empty file.
Empty file modified frontend/src/app/home/detail-form/page.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/app/home/login/page.tsx
100755 → 100644
Empty file.
4 changes: 4 additions & 0 deletions frontend/src/app/home/page.tsx
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PastEvents from "@/ui/PastEvents";
import Description from "@/ui/home/Description";
import Socials from "@/ui/home/Socials";
import { Metadata } from "next";

export const metadata: Metadata = {
@@ -16,6 +17,9 @@ export default function Home() {
<section id="past-events">
<PastEvents />
</section>
<section id="socials">
<Socials />
</section>
</div>
);
}
Empty file modified frontend/src/app/icon.ico
100755 → 100644
Empty file.
Empty file modified frontend/src/app/layout.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/app/page.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/app/profile-page/page.tsx
100755 → 100644
Empty file.
48 changes: 48 additions & 0 deletions frontend/src/components/socials.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
.socials{
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin-top: 50px;
margin-bottom: 50px;
}

.socialsBorders1{
display: flex;
justify-content: center;
align-items: center;
border-radius: 45px;
background-color: #87562A;
margin: 7px;
width: 394px;
height: 473px;
}

.socialsBorders2{
display: flex;
justify-content: center;
align-items: center;
border-radius: 45px;
background-color: #DD995B;
margin: 7px;
width: 394px;
height: 473px;
}

.socialsBorders3{
display: flex;
justify-content: center;
align-items: center;
border-radius: 45px;
background-color: #AA6F29;
margin: 7px;
width: 394px;
height: 473px;
}

.previews{
justify-content: center;
align-items: center;
width: 350px;
height: 422px;
}
24 changes: 24 additions & 0 deletions frontend/src/components/socials.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
'use client';
import React from 'react';
import styles from './socials.module.css';
import { InstagramEmbed } from 'react-social-media-embed/dist/components/embeds/InstagramEmbed';
import { LinkedInEmbed } from 'react-social-media-embed/dist/components/embeds/LinkedInEmbed';
import { FacebookEmbed } from 'react-social-media-embed/dist/components/embeds/FacebookEmbed';

function Socials() {
return (
<div className={styles.socials}>
<div className={styles.socialsBorders1}>
<InstagramEmbed className={styles.previews} url="https://www.instagram.com/aspa.uoa/?hl=en"/>
</div>
<div className={styles.socialsBorders2}>
<LinkedInEmbed className={styles.previews} url="https://www.linkedin.com/company/aspa-auckland-student-pool-association"/>
</div>
<div className={styles.socialsBorders3}>
<FacebookEmbed className={styles.previews} url="https://www.facebook.com/login/?next=https%3A%2F%2Fwww.facebook.com%2Faspa.uoa%2F"/>
</div>
</div>
);
}

export default Socials;
Empty file modified frontend/src/ui/EventCard.module.css
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/EventCard.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/Footer.module.css
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/Footer.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/Header.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/Modal.module.css
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/Modal.tsx
100755 → 100644
Empty file.
6 changes: 3 additions & 3 deletions frontend/src/ui/NavBar.tsx
100755 → 100644
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
import Link from 'next/link';
import { usePathname } from 'next/navigation';
import { useState } from 'react';
import { FaBars, FaTimes } from 'react-icons/fa';
// import { FaBars, FaTimes } from 'react-icons/fa';
import styles from './Navbar.module.css';
import billairdBall from '../../public/billiard.png';
import Image from 'next/image';
@@ -56,15 +56,15 @@ export default function NavBar() {
{/* Hamburger Button */}
<div className={styles.hamburgerButton}>
<button type='button' onClick={handleMenu}>
<FaBars size={30} color='black' />
{/* <FaBars size={30} color='black' /> */}
</button>
</div>

{/* Mobile Menu */}
{open && (
<div className={styles.mobileMenu}>
<button type='button' onClick={handleMenu}>
<FaTimes size={30} color='black' />
{/* <FaTimes size={30} color='black' /> */}
</button>

<div className={styles.image}>
Empty file modified frontend/src/ui/Navbar.module.css
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/PastEvents.module.css
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/PastEvents.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/TestButton.module.css
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/TestButton.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/contact/ContactForm.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/contact/ExecCard.module.css
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/contact/ExecCard.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/contact/TeamList.module.css
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/contact/TeamList.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/contact/contacts.module.css
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/events/EventInfo.module.css
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/events/EventInfo.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/events/RegisterEventForm.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/events/Registereventform.module.css
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/events/UpcomingEventCard.module.css
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/events/UpcomingEventCard.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/events/UpcomingEvents.module.css
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/events/UpcomingEvents.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/events/admin/EditRows.module.css
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/events/admin/EditRows.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/events/admin/EventPage.module.css
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/events/admin/EventPage.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/events/admin/Pagination.module.css
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/events/admin/Pagination.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/events/admin/ReadOnlyRow.module.css
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/events/admin/ReadOnlyRow.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/events/admin/mock-data.json
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/events/admin/usePagination.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/fonts.ts
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/home/Description.module.css
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/home/Description.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/home/RegisterAccountForm.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/home/Registeraccountform.module.css
100755 → 100644
Empty file.
60 changes: 60 additions & 0 deletions frontend/src/ui/home/Socials.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
.container {
padding: 0px 10px 20px 10px;
margin: 20px 0px;
display: flex;
flex-direction: column;
align-items: center;
}

.content {
display: flex;
flex-direction: row;
justify-content: space-between;
max-width: 90%;
margin-bottom: 10px;
gap: 2rem;
}

.title {
font-weight: bold;
text-decoration: underline 5px;
font-size: 6em;
color: #F4E5D7;
text-shadow: 8px 8px #5E4127;
text-underline-offset: 9px;
margin-bottom: 10px;
}

.button {
display: block;
margin: auto;
font-weight: bold;
font-size: 30px;
text-align: center;
color: #FBF5F0;
background-color: #DD995B;
border-radius: 45px;
padding: 0px 20px 0px 20px;
margin-top: 15px;
}

.button:hover {
background-color: #87562A;
color: #B7B2B8;
}
/* Media queries for responsiveness */
@media screen and (max-width: 1200px) {

.title {
font-size: 4em;
text-align: center;
}

.content{
flex-direction: column;
align-items: center;
box-sizing: border-box;
-moz-box-sizing: border-box;
}

}
23 changes: 23 additions & 0 deletions frontend/src/ui/home/Socials.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import styles from "./Socials.module.css";
import SocialsCard from "./SocialsCard"

export default function Socials() {
const socials = [
{exec: "Name Surname", execTestimonial: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eia pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", execTitle: "Title"},
{exec: "Name Surname", execTestimonial: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eia pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", execTitle: "Title"},
{exec: "Name Surname", execTestimonial: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eia pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", execTitle: "Title"}
]
return (
<div className={styles.container}>
<h1 className={styles.title}>
Check Out Our Socials!
</h1>
<div className={styles.content}>
{socials.map((social) => (
<SocialsCard key={social.exec} social={social} />
))}
</div>
</div>

);
}
55 changes: 55 additions & 0 deletions frontend/src/ui/home/SocialsCard.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
.cardbg {
display: flex;
text-align: left;
flex-direction: column;
justify-content: center;
width: 100%;
max-width: 24.75rem;
min-height: 29.5rem;
margin: 0px 15px;
transition: transform 0.3s ease;
background-color: #87562A;
border-radius: 3rem;
align-items: center;
}
.card:hover {
transform: scale(0.95);
}

.description h1 {
font-weight: medium;
font-size:1em;
color: #222629;
margin-top: 5px;
margin-bottom: 5px;
}

.description h2 {
font-weight: medium;
font-size:1em;
color: #222629;
margin-top: 5px;
margin-bottom: 5px;
}

.card p {
font-weight: 400px;
font-size: 2rem;
color: #222629;
line-height: 1.1;
overflow: hidden;
}

.cardbg .description {
display: flex;
text-align: left;
flex-direction: column;
justify-content: center;
width: 90%;
min-height: 26.25rem;
padding: 0px 20px;
background-color: #FBF5F0;
border-radius: 3rem;
justify-content: space-between;
padding: 2rem;
}
23 changes: 23 additions & 0 deletions frontend/src/ui/home/SocialsCard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import styles from "./SocialsCard.module.css";

interface Social {
exec: string;
execTestimonial: string;
execTitle: string;
}

export default function SocialsCard({ social }: { social: Social }) {
return (
<div className={styles.cardbg}>
<div className={styles.description}>
<div>
<p>{social.execTestimonial}</p>
</div>
<div>
<h1>{social.exec}</h1>
<h2>{social.execTitle}</h2>
</div>
</div>
</div>
);
}
Empty file modified frontend/src/ui/profile-page/NavLinks.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/profile-page/ParticipatedEvents.module.css
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/profile-page/ParticipatedEvents.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/profile-page/ProfileCard.module.css
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/profile-page/ProfileCard.tsx
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/profile-page/UpcomingEvents.module.css
100755 → 100644
Empty file.
Empty file modified frontend/src/ui/profile-page/UpcomingEvents.tsx
100755 → 100644
Empty file.
Empty file modified frontend/tailwind.config.ts
100755 → 100644
Empty file.
Empty file modified frontend/tsconfig.json
100755 → 100644
Empty file.
Empty file modified frontend/yarn.lock
100755 → 100644
Empty file.
Empty file modified openapitools.json
100755 → 100644
Empty file.
Empty file modified package.json
100755 → 100644
Empty file.
Empty file modified yarn.lock
100755 → 100644
Empty file.

0 comments on commit f241c91

Please sign in to comment.