Skip to content
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

Feat(HomePage): Create Home Page #18

Merged
merged 83 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
4672a5f
Chore: add small commit to be able to turn this into draft pr
Kara-Zor-El Jul 17, 2024
3d27d52
Feat(Section Header): Make section header
Kara-Zor-El Jul 19, 2024
3c7ab6c
Merge branch 'KaraZorEl-HomePage' into KaraZorEl-SectionHeader
Kara-Zor-El Jul 19, 2024
7a37458
Feat(Section Header): Make section header (#20)
Kara-Zor-El Jul 19, 2024
db14c05
Chore(AboutUs): upload image
Kara-Zor-El Jul 19, 2024
03bfb93
Chore(Readme): Fix Readme
Kara-Zor-El Jul 19, 2024
f6afc77
Feat(Config): Add new interface to config for about us
Kara-Zor-El Jul 19, 2024
6e9811b
Feat(AboutUs): add about us page
Kara-Zor-El Jul 19, 2024
fef7668
Feat(Contact Us): Contact us section
Kara-Zor-El Jul 21, 2024
3d5e2ee
Feat(ContactUs): make email unkderline and stylize
Kara-Zor-El Jul 21, 2024
3db2c2b
Feat(ContactUs): Create Contact us component for main page (#21)
Kara-Zor-El Jul 21, 2024
1a6e114
Fix(ContactUs): Formatting
Kara-Zor-El Jul 21, 2024
ef1bce8
Fix(ContactUs): Add new text
Kara-Zor-El Jul 21, 2024
0d0ace4
Fix(HeroBanner): Change text
Kara-Zor-El Jul 21, 2024
f65413f
Fix(ContactUs): Minor adjustments
Kara-Zor-El Jul 22, 2024
fa1ede0
Fix(SectionHeader): use enum for where to align it
Kara-Zor-El Jul 22, 2024
befae66
Fix(TextSection): Change AboutUs to be a TextSection
Kara-Zor-El Jul 22, 2024
8276e85
Fix(SectionHeader): Add enum for styling
Kara-Zor-El Jul 23, 2024
24e2026
Feat(TextSection): allow HomeSection to produce multiple TextSections
Kara-Zor-El Jul 23, 2024
cf2f83b
Feat(Footer): Added footer
Kara-Zor-El Jul 23, 2024
9e8587a
Feat(Footer): Added footer (#22)
Kara-Zor-El Jul 23, 2024
e66b5f1
FIx(TextSection): Fix CSS naming
Kara-Zor-El Jul 24, 2024
83e1cb6
Feat(LatestNews): Add Latest News section to homepage
Kara-Zor-El Jul 26, 2024
faf7082
Feat(LatestNews): Add Latest News section to homepage (#23)
Kara-Zor-El Jul 26, 2024
66a0d63
Merge branch 'main' into KaraZorEl-HomePage
Kara-Zor-El Jul 27, 2024
1b90f43
Fix(SocialButton): Align center and change padding
Kara-Zor-El Jul 27, 2024
6c5083b
Merge branch 'KaraZorEl-HomePage' of https://github.com/Trent-Compute…
Kara-Zor-El Jul 27, 2024
1487255
Fix(Footer): Remove Contact us and moved to footer
Kara-Zor-El Jul 29, 2024
e67cdf5
Fix(Button): Allow button to take in an Icon
Kara-Zor-El Jul 30, 2024
85a3ff8
Fix(Button): Formatting
Kara-Zor-El Jul 30, 2024
ae0a997
Fix(Footer): Use logo component
Kara-Zor-El Jul 30, 2024
12d8310
Fix(heroBanner): Add tagline to config
Kara-Zor-El Jul 30, 2024
38e0ad7
Fix(Formatting)
Kara-Zor-El Jul 30, 2024
a157ee2
Fix(TextSection): spelling mistake
Kara-Zor-El Jul 30, 2024
75282e1
Fix(Link): Don't override global behavior
Kara-Zor-El Jul 30, 2024
c99a44c
Fix(News): Change news to be layout and make it proper
Kara-Zor-El Jul 30, 2024
ad03d54
Fix(Footer): Make buttons clickable
Kara-Zor-El Jul 30, 2024
8507cfd
FIx(SectionHeader): moving logic and changing div to span
Kara-Zor-El Jul 30, 2024
1f9e8ad
Fix(SectionHeader): Formatting
Kara-Zor-El Jul 30, 2024
26bbdd5
Fix(SectionHeader): Move to style logic
Kara-Zor-El Jul 30, 2024
dbb2636
Fix(index): change component to layout
Kara-Zor-El Jul 30, 2024
16bfb82
Fix(TextSection): Change logic to style
Kara-Zor-El Jul 30, 2024
fdb6433
FIx(LayoutNews): Fix some styling
Kara-Zor-El Jul 30, 2024
da2c84e
Fix(TextSection): remove unnecessary commented out area
Kara-Zor-El Jul 30, 2024
df93a29
Fix(Button): remove unnecessary commented out area
Kara-Zor-El Jul 30, 2024
f3e2120
Fix(TextSection): Chnage # of lines in styling
Kara-Zor-El Jul 31, 2024
7ed19f4
FIx(TextSection): reduce classname usage
Kara-Zor-El Jul 31, 2024
d3370b5
Fix(Footer): Outside of main
Kara-Zor-El Jul 31, 2024
73ba571
Fix(Index): Im just a silly girl who makes mistakes
Kara-Zor-El Jul 31, 2024
cfd14aa
Fix(NavBar): Make NavBar button have no hover
Kara-Zor-El Jul 31, 2024
c0ed316
Fix(Color-4): Change to color-3
Kara-Zor-El Jul 31, 2024
ba70510
Fix(Color): in section headers
Kara-Zor-El Jul 31, 2024
860ab59
Update config.yaml
Kara-Zor-El Jul 31, 2024
df5bbd3
Fix(TextSection): Make a Layout
Kara-Zor-El Jul 31, 2024
9281bd6
chore(home): Some quick cleanup
spotandjake Jul 31, 2024
63104c2
Fix(TextSection): Fix theming
Kara-Zor-El Aug 3, 2024
1743133
Fix(SectionHeader): Set Alignment via scss
Kara-Zor-El Aug 3, 2024
4ef9b8d
Fix(SectionHeader): formatting
Kara-Zor-El Aug 3, 2024
cdb83c7
Feat(Section): Add Section Component
Kara-Zor-El Aug 3, 2024
0f4cdc1
Fix(TextSection): Make Image size responsive
Kara-Zor-El Aug 4, 2024
0fa58e4
Fix(Button): Make image button take image
Kara-Zor-El Aug 5, 2024
771f28b
Fix(Button): Remove children props
Kara-Zor-El Aug 5, 2024
5dc6dc9
Fix(HeroBanner): Formatting
Kara-Zor-El Aug 5, 2024
14adf38
Fix(Button): Remove unneccary variable
Kara-Zor-El Aug 5, 2024
cbcb7d1
Feat(LatestNews): Refactor news section
Kara-Zor-El Aug 5, 2024
41a5722
Fix(Section): Update style logic
Kara-Zor-El Aug 5, 2024
df1deba
Chore(Section): Formatting
Kara-Zor-El Aug 5, 2024
d5ab1a9
Fix(Section): Turn turinaries into if's
Kara-Zor-El Aug 5, 2024
c8d5b3a
Chore(TextSection): Document code
Kara-Zor-El Aug 5, 2024
8a19554
Chore(Index): Add comments
Kara-Zor-El Aug 5, 2024
bc535d6
Fix(Button): Change CSS
Kara-Zor-El Aug 5, 2024
0d9baf1
Chore(Button): Move some CSS
Kara-Zor-El Aug 5, 2024
27464d3
Chore: move some CSS
Kara-Zor-El Aug 5, 2024
c448e2a
Fix(Button): Remove redundant code
Kara-Zor-El Aug 6, 2024
9ca925e
Fix(SectionHeader): fix styling
Kara-Zor-El Aug 6, 2024
275e496
Chore(SectionHeader): Add comment for header alignments
Kara-Zor-El Aug 6, 2024
c5652f4
Fix(Styling): Change names to be more dynamic
Kara-Zor-El Aug 6, 2024
c5de6f9
Feat(Section): Take Sections from config
Kara-Zor-El Aug 6, 2024
040a061
Fix(HomePage): Remove commented out bits
Kara-Zor-El Aug 6, 2024
f97119c
Fix(Section): Make colors more generic
Kara-Zor-El Aug 6, 2024
8a8f7fc
Fix(HomePage): Remove unnecessary imports
Kara-Zor-El Aug 6, 2024
9989e8e
Feat(SectionHeader): Make Rounded
Kara-Zor-El Aug 6, 2024
fbc9ca7
Fix(Various Changes): Fix a few things
Kara-Zor-El Aug 7, 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
26 changes: 26 additions & 0 deletions components/AboutUs.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import React from 'react';
Kara-Zor-El marked this conversation as resolved.
Show resolved Hide resolved
import { aboutUs } from '../config.yaml';
import Image from '../components/Image';
import Button, { ButtonType } from '../components/Button';
// css
import styles from '../styles/components/AboutUs.module.scss';

export default function AboutUs() {
return (
<div className={styles.AboutUs}>
<div className={styles.TextAndButton}>
<p className={styles.AboutUsText}>{aboutUs.text}</p>
<Button type={ButtonType.LIGHT} className={styles.AboutUsButton}>
Learn More
</Button>
</div>
<Image
src={aboutUs.image}
alt={aboutUs.altText}
width={100}
height={100}
className={styles.AboutUsImage}
/>
</div>
);
}
28 changes: 28 additions & 0 deletions components/SectionHeader.tsx
Kara-Zor-El marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import React from 'react';
import styles from '../styles/components/SectionHeader.module.scss';

type Location = 'justify-start' | 'justify-end';

interface Props {
title: string;
backgroundColor?: string;
foregroundColor?: string;
Kara-Zor-El marked this conversation as resolved.
Show resolved Hide resolved
textColor?: string;
location?: Location;
}

export default function SectionHeader({
title,
backgroundColor = 'bg-color-1',
foregroundColor = 'bg-dark-gray',
textColor = 'text-color-2',
location = 'justify-start',
Kara-Zor-El marked this conversation as resolved.
Show resolved Hide resolved
}: Props) {
return (
<div className={`${styles.sectionHeader} ${backgroundColor} ${location}`}>
<div className={`${styles.sectionHeaderContainer} ${foregroundColor}`}>
Kara-Zor-El marked this conversation as resolved.
Show resolved Hide resolved
<h2 className={`${styles.sectionHeaderTitle} ${textColor}`}>{title}</h2>
</div>
</div>
);
}
7 changes: 7 additions & 0 deletions config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,17 @@ declare module '*.yaml' {
path: string;
}

interface AboutUs {
text: string;
image: string;
altText: string;
}

Kara-Zor-El marked this conversation as resolved.
Show resolved Hide resolved
interface Config {
pageInfo: PageInfo[];
bannerInfo: BannerInfo;
heroIcons: HeroIcon[];
aboutUs: AboutUs;
Kara-Zor-El marked this conversation as resolved.
Show resolved Hide resolved
}

const value: Config;
Expand Down
4 changes: 4 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ heroIcons:
- altText: Link to TCSCA Discord
link: https://discord.gg/serea2sPAd
path: /Icons/discord.svg
aboutUs:
text: The Trent Computer Science Club Association (TCSCA) is a club that aims to provide a supportive community for computer science students at Trent University. Our mission is to create a welcoming and inclusive environment where students can learn, grow, and have fun while developing their skills and interests. We love Open Source and are always looking for new ways to contribute to the community. CHANGE ME!!!
image: /AboutUsPlaceHolder.jpg
altText: About Us Image
5 changes: 4 additions & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// Style
import styles from '../styles/Home.module.scss';
// Internal Components
import NavBar from '../components/NavBar';
import EventBanner from '../components/EventBanner';
import HeroBanner from '../components/HeroBanner';
import SectionHeader from '../components/SectionHeader';
import AboutUs from '../components/AboutUs';

export default function Home() {
return (
Expand All @@ -13,6 +14,8 @@ export default function Home() {
<section className={styles.container}>
<main className={styles.MainArea}>
<HeroBanner imagePath='logo.svg' altText='TCSCA Logo' />
<SectionHeader title='About Us' location='justify-start' />
<AboutUs />
</main>
</section>
</>
Expand Down
Binary file added public/AboutUsPlaceHolder.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions styles/components/AboutUs.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
.AboutUs {
@apply grid grid-cols-2 gap-4 p-4;
@apply bg-dark-gray;
@apply py-16;
@apply px-10;
}

.TextAndButton {
@apply col-span-1;
}

.AboutUsText {
@apply text-color-2;
@apply leading-relaxed;
@apply text-xl;
@apply pr-4;
}

.AboutUsButton {
@apply mt-4;
@apply object-cover;
@apply px-4;
}

.AboutUsImage {
@apply col-span-1;
@apply rounded-xl;
@apply w-full;
@apply bg-black;
@apply self-center;
}
16 changes: 16 additions & 0 deletions styles/components/SectionHeader.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.sectionHeader {
@apply w-full;
@apply pt-4 px-4;
@apply flex;
}

.sectionHeaderContainer {
@apply rounded-t-lg;
@apply px-4 py-2;
@apply shrink;
@apply flex-grow-0;
}

.sectionHeaderTitle {
@apply text-2xl font-bold text-center;
}
3 changes: 2 additions & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ const config: Config = {
'color-1': '#0f3b26', // Main Green
'color-2': '#f9f7f7', // NavBar Off White
'color-3': '#575555', // Aside Gray
'dark-gray': '#222', // Dark Gray
Kara-Zor-El marked this conversation as resolved.
Show resolved Hide resolved
'active-1': '#4db6ac', // TODO: Decide on a color for this
'hover-1': '#4db6ac', // TODO: Decide on a color for this
'hover-2': '#89B4FA', // TODO: Decide on a color for this
'event-banner': '#5E18EB', // Event Banner Background
socials: '#7BD4CB', // Social
'socials': '#7BD4CB', // Social
},
},
},
Expand Down
Loading