-
Notifications
You must be signed in to change notification settings - Fork 0
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
Frontend starter #19
Merged
Merged
Frontend starter #19
Changes from 14 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
ffb571c
Created Page Hero section
ItsLaro 26cfa77
Added starter footer section and adjusted svg background curves
ItsLaro 7e7bac7
Added social media icons, contact us link and adjusted font weight st…
ItsLaro 1a696cc
Added @media styling rules to Page Hero style for narrow screens
ItsLaro e7b4cdb
changed layout of subcontainers in the page hero and margin adjustmen…
ItsLaro 3416af6
Made the page-hero fill 100% of the viewport's height.
ItsLaro d1db108
Added @media rule for the footer
ItsLaro 84323ce
Added minimun height to page-hero
ItsLaro 67c9d0f
Added relative font sizes based off root and adjusted spacing for mobile
ItsLaro b6d175b
Adjustments to font size
ItsLaro 9785430
CSS >> SCSS; Added new custom TextButton component
ItsLaro 21cb74a
Encapsulated SVGs into icon components + small adjustements
ItsLaro 0f82631
Corrected name of PageHero section component; deleted unused wave.svg
ItsLaro 2dfcebd
Created custom types file to support SVG and PNG imports
ItsLaro 3bd7ffc
Subfolders for sections and adjustments for SocialMediaButton and Bac…
ItsLaro e9a953e
Fixed imports
ItsLaro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import React from "react"; | ||
|
||
interface Props { | ||
downwards: boolean; | ||
} | ||
const BackgroundWave: React.FC<Props> = (props) => { | ||
return props.downwards ? ( | ||
<svg | ||
className={"wave"} | ||
style={{ marginTop: "-4px" }} | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 1440 320" | ||
> | ||
<defs> | ||
<linearGradient id="gradient" x1="0%" y1="0%" x2="100%" y2="0%"> | ||
<stop offset="0%" stop-color="#f89b21" /> | ||
<stop offset="100%" stop-color="#fdcf0c" /> | ||
</linearGradient> | ||
</defs> | ||
<path | ||
fill="url(#gradient)" | ||
fill-opacity="1" | ||
transform="scale(-1, 1)" | ||
transform-origin="center" | ||
d="M0,224L60,186.7C120,149,240,75,360,64C480,53,600,107,720,144C840,181,960,203,1080,197.3C1200,192,1320,160,1380,144L1440,128L1440,0L1380,0C1320,0,1200,0,1080,0C960,0,840,0,720,0C600,0,480,0,360,0C240,0,120,0,60,0L0,0Z" | ||
></path> | ||
</svg> | ||
) : ( | ||
<svg | ||
className={"wave"} | ||
style={{ marginBottom: "-4px" }} | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 1440 320" | ||
> | ||
<defs> | ||
<linearGradient id="gradient" x1="0%" y1="0%" x2="100%" y2="0%"> | ||
<stop offset="0%" stop-color="#f89b21" /> | ||
<stop offset="100%" stop-color="#fdcf0c" /> | ||
</linearGradient> | ||
</defs> | ||
<path | ||
fill="url(#gradient)" | ||
fill-opacity="1" | ||
transform="scale(-1, 1)" | ||
transform-origin="center" | ||
d="M0,224L60,186.7C120,149,240,75,360,64C480,53,600,107,720,144C840,181,960,203,1080,197.3C1200,192,1320,160,1380,144L1440,128L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z" | ||
></path> | ||
</svg> | ||
); | ||
}; | ||
|
||
export default BackgroundWave; |
16 changes: 16 additions & 0 deletions
16
src/components/SocialMediaButtons/DiscordButton/DiscordButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from "react"; | ||
import DiscordIcon from "./discord.svg"; | ||
|
||
ItsLaro marked this conversation as resolved.
Show resolved
Hide resolved
|
||
const DiscordButton: React.FC = () => { | ||
return ( | ||
<a href="https://discordapp.com/invite/upefiu"> | ||
<img | ||
className={"socialMediaIcon"} | ||
src={DiscordIcon} | ||
alt="Community on Discord" | ||
/> | ||
</a> | ||
); | ||
}; | ||
|
||
export default DiscordButton; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions
16
src/components/SocialMediaButtons/FacebookButton/FacebookButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from "react"; | ||
import FacebookIcon from "./facebook.svg"; | ||
|
||
const FacebookButton: React.FC = () => { | ||
return ( | ||
<a href="https://www.facebook.com/upefiu"> | ||
<img | ||
className={"socialMediaIcon"} | ||
src={FacebookIcon} | ||
alt="Community on Discord" | ||
/> | ||
</a> | ||
); | ||
}; | ||
|
||
export default FacebookButton; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions
16
src/components/SocialMediaButtons/InstagramButton/InstagramButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from "react"; | ||
import InstagramIcon from "./instagram.svg"; | ||
|
||
const InstagramButton: React.FC = () => { | ||
return ( | ||
<a href="https://www.instagram.com/upefiu"> | ||
<img | ||
className={"socialMediaIcon"} | ||
src={InstagramIcon} | ||
alt="Community on Discord" | ||
/> | ||
</a> | ||
); | ||
}; | ||
|
||
export default InstagramButton; |
1 change: 1 addition & 0 deletions
1
src/components/SocialMediaButtons/InstagramButton/instagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions
16
src/components/SocialMediaButtons/LinkedInButton/LinkedInButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from "react"; | ||
import LinkedInIcon from "./linkedin.svg"; | ||
|
||
const LinkedInButton: React.FC = () => { | ||
return ( | ||
<a href="https://www.linkedin.com/company/upe-fiu"> | ||
<img | ||
className={"socialMediaIcon"} | ||
src={LinkedInIcon} | ||
alt="Community on Discord" | ||
/> | ||
</a> | ||
); | ||
}; | ||
|
||
export default LinkedInButton; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions
16
src/components/SocialMediaButtons/TwitterButton/TwitterButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from "react"; | ||
import TwitterIcon from "./twitter.svg"; | ||
|
||
const TwitterButton: React.FC = () => { | ||
return ( | ||
<a href="https://twitter.com/upefiu"> | ||
<img | ||
className={"socialMediaIcon"} | ||
src={TwitterIcon} | ||
alt="Community on Discord" | ||
/> | ||
</a> | ||
); | ||
}; | ||
|
||
export default TwitterButton; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export const mainHeaderText = | ||
"Join the Leading Student Tech Community in Miami!"; | ||
|
||
export const mainSubHeaderText = | ||
"A large tech-based community that aims to provide every student with the opportunity to develop professionally and technically.\n All majors and skill levels are welcomed!"; | ||
|
||
export const discordText = "Discord"; | ||
export const eventsText = "Events"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
declare module "*.svg" { | ||
const content: any; | ||
export default content; | ||
} | ||
|
||
declare module "*.png" { | ||
const content: any; | ||
export default content; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
h1, | ||
h2 { | ||
font-weight: 900; | ||
font-size: 3.2rem; | ||
text-align: center; | ||
width: 100%; | ||
color: white; | ||
} | ||
|
||
footer { | ||
background-image: linear-gradient(90deg, #fdcf0c, #f89b21); | ||
} | ||
|
||
.socialMediaIconTitle { | ||
font-size: 3.2rem; | ||
} | ||
|
||
.copyright { | ||
ItsLaro marked this conversation as resolved.
Show resolved
Hide resolved
|
||
text-align: right; | ||
bottom: 0; | ||
font-weight: 100; | ||
font-size: 1.6rem; | ||
max-width: 100vw; | ||
} | ||
|
||
footer p { | ||
font-size: 12px; | ||
color: rgba(255, 255, 255, 0.75); | ||
padding: 32px; | ||
} | ||
|
||
.contactUsTitle { | ||
color: white; | ||
} | ||
|
||
.socialMediaTitle { | ||
margin-top: 0; | ||
} | ||
|
||
.socialMediaIconContainer { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.socialMediaIcon { | ||
width: 5vw; | ||
max-width: 75px; | ||
min-width: 40px; | ||
margin: 12px; | ||
} | ||
|
||
@media (max-width: 1080px) { | ||
.copyright { | ||
text-align: center; | ||
} | ||
} | ||
|
||
@media (max-width: 500px) { | ||
h1, | ||
h2 { | ||
font-size: 2.4rem; | ||
} | ||
|
||
.copyright { | ||
font-size: 1rem; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import BackgroundWave from "../components/BackgroundWave/BackgroundWave"; | ||
import DiscordButton from "../components/SocialMediaButtons/DiscordButton/DiscordButton"; | ||
import FacebookButton from "../components/SocialMediaButtons/FacebookButton/FacebookButton"; | ||
import InstagramButton from "../components/SocialMediaButtons/InstagramButton/InstagramButton"; | ||
import LinkedInButton from "../components/SocialMediaButtons/LinkedInButton/LinkedInButton"; | ||
import TwitterButton from "../components/SocialMediaButtons/TwitterButton/TwitterButton"; | ||
import React from "react"; | ||
import "./Footer.scss"; | ||
|
||
function Footer() { | ||
const year = new Date().getFullYear(); | ||
return ( | ||
<div> | ||
<BackgroundWave downwards={false} /> | ||
<footer> | ||
<h1 className={"socialMediaTitle"}>Join the Community!</h1> | ||
<div className={"socialMediaIconContainer"}> | ||
<DiscordButton /> | ||
<LinkedInButton /> | ||
<InstagramButton /> | ||
<FacebookButton /> | ||
<TwitterButton /> | ||
</div> | ||
<h1> | ||
Questions?{" "} | ||
<a | ||
className={"contactUsTitle"} | ||
href="mailto:[email protected]?Subject=...Question%20regarding%20UPE!" | ||
> | ||
Contact Us | ||
</a> | ||
! | ||
</h1> | ||
<p className={"copyright"}> | ||
ⓒ Copyright {year} - Upsilon Pi Epsilon at Florida International | ||
University | ||
</p> | ||
</footer> | ||
</div> | ||
); | ||
} | ||
|
||
export default Footer; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file can be shortened by returning the SVG and replacing the d inside of path with the appropriate one depending on if you want a downwards wave or not. Same with style.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!