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

[UI] fix home cards bug, sass dependency issue #88

Open
wants to merge 32 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
5977017
Rebuild main navigation bar
taesungh Aug 11, 2021
77f35f7
Rebuild site header
taesungh Sep 6, 2021
9d2492e
added discord
nathan-tang Sep 20, 2021
5aeabaa
Merge pull request #73 from hackuci/adjust_newsletter
nathan-tang Sep 20, 2021
7ce31d0
Update club logo with optimized SVG
taesungh Sep 26, 2021
5974c79
Adjust footer icon layout and alt text
taesungh Oct 3, 2021
f69ca3a
Consolidate blue gradient background
taesungh Oct 3, 2021
d573655
Merge pull request #74 from hackuci/fix/header-footer
nathan-tang Oct 11, 2021
64758a6
added calendar icon
Nauxie Oct 17, 2021
28ee557
added discord
nathan-tang Oct 19, 2021
41080b7
Merge pull request #75 from hackuci/add-mentor
nathan-tang Oct 19, 2021
439b1fb
adjusted path
nathan-tang Oct 19, 2021
a39e236
Merge pull request #76 from hackuci/add-mentor
nathan-tang Oct 19, 2021
dbfcec2
added no events calendar icon, drop shadow + calendar icon for event …
Nauxie Oct 19, 2021
4706e3a
added hovering title + descriptions to home cards
Nauxie Oct 19, 2021
d2d8e01
fixed mobile overflow issues
Nauxie Oct 19, 2021
33d0d46
fixed modal scrolling/spacing, moved close button, changed color and …
Nauxie Oct 19, 2021
813211f
adjusted path v2
nathan-tang Oct 20, 2021
27e9a2a
Merge pull request #78 from hackuci/add-mentor
nathan-tang Oct 20, 2021
c34747c
Merge branch 'develop' into develop-events-fixes
nathan-tang Oct 24, 2021
c4807ac
Merge pull request #77 from hackuci/develop-events-fixes
nathan-tang Oct 24, 2021
0f809a7
hotfix
nathan-tang Oct 24, 2021
cea8b1c
hotfix 2
nathan-tang Oct 24, 2021
25bc588
fixed font/weight issues on Event page, added grey background, better…
Nauxie Nov 8, 2021
7e13549
made title headers smaller on mobile
Nauxie Nov 9, 2021
0e0006d
Merge pull request #79 from hackuci/develop-more-fixes
nathan-tang Jan 4, 2022
b9900c2
Hotfix: disable home card overlay
taesungh Jan 23, 2022
7078317
Rebuild home cards with hover text
taesungh Aug 28, 2021
c3dd31c
Bump node-sass from 4.14.1 to 7.0.0
dependabot[bot] Feb 10, 2022
0c1ea77
Merge pull request #81 from hackuci/dependabot/npm_and_yarn/node-sass…
Nauxie Apr 16, 2022
324ec67
fix sass dependency
Nauxie Jul 4, 2022
a71e8ab
Merge pull request #86 from hackuci/fix/home-cards
Nauxie Jul 4, 2022
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
19,781 changes: 19,653 additions & 128 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"jquery": "^3.5.1",
"moment": "^2.27.0",
"mongoose": "^5.10.6",
"node-sass": "^4.14.1",
"popper.js": "^1.16.1",
"react": "^16.13.1",
"react-bootstrap": "^1.0.1",
Expand Down Expand Up @@ -51,5 +50,8 @@
"engines": {
"node": "11.15.0"
},
"proxy": "http://localhost:8080"
"proxy": "http://localhost:8080",
"devDependencies": {
"sass": "^1.53.0"
}
}
3 changes: 3 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ function App() {
<Route exact path="/events" component={Events} />
<Route exact path="/sponsors" component={Sponsorship} />
<Route exact path="/contact" component={Contact} />
<Route exact path="/mentor" component={() => {
window.location.href = "https://hack.ics.uci.edu/contact/#mentors"
}}/>
<Route exact path="/recruit" component={() => {
window.location.href = 'https://www.hackuci.com/recruit';
return null;
Expand Down
5 changes: 5 additions & 0 deletions src/App.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
@import "globals/hack-variables.scss";
@import 'src/globals/hack-styles.scss';

body {
background: $blue-gradient;
background-repeat: repeat-y;
}

.App {
text-align: center;
min-height: 100vh;
Expand Down
216 changes: 112 additions & 104 deletions src/app/components/newsletter/Newsletter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useState } from "react";
import axios from "axios";
import Alert from "react-bootstrap/Alert";
import DiscordIcon from "../../../assets/icons/discord_icon.svg";

import "./Newsletter.scss";

Expand Down Expand Up @@ -36,116 +37,123 @@ function Newsletter(props) {
className="jumbotron jumbotron-fluid newsletter"
style={props.style}
>
<div id="discord" className="text-left newsletter-container">
<div className="newsletter-left">
<h2>Join our Discord and newsletter!</h2>
<p className="newsletter-info">
Get Involved! Just fill in your information and click "Sign Up".
Hack at UCI will email you an invite link to our discord server and
subscribe you to our newsletter for the club's updates and events.
</p>
<div id="discord" className="container newsletter-container">
<h3> Get Involved! </h3>
<a href="https://discord.gg/2gZjQMjKeF">
<div className="card discord-card">
<h2>Join our Discord</h2>
<img className="discord-icon" src={DiscordIcon} alt="Join Discord"/>
</div>
</a>
<div className="card">
<h2>Join our newsletter!</h2>
<form
className="newsletter-form"
action={
"https://uci.us13.list-manage.com/subscribe/post?u=5976872928cd5681fbaca89f6&amp;id=93333e11eb"
}
method={"post"}
name={"mc-embedded-subscribe-form"}
target={"_blank"}
onSubmit={submitDiscordSignUp}
>
<label>
Graduating Year <span className="asterisk">*</span>
</label>
<input
id="userYear"
type="text"
maxLength="4"
className="form-control"
name="MMERGE4"
required
value={graduationYear}
onChange={(event) => setGraduationYear(event.target.value)}
/>
<br />
<label>
First Name <span className="asterisk">*</span>
</label>
<input
id="userFName"
type="text"
className="form-control"
name="FNAME"
required
value={firstName}
onChange={(event) => setFirstName(event.target.value)}
/>
<br />
<label>
Last Name <span className="asterisk">*</span>
</label>
<input
id="userLName"
type="text"
className="form-control"
name="LNAME"
required
value={lastName}
onChange={(event) => setLastName(event.target.value)}
/>
<br />
<label>
Email Address <span className="asterisk">*</span>
</label>
<input
id="userEmail"
type="email"
className="form-control"
name="EMAIL"
required
value={email}
onChange={(event) => setEmail(event.target.value)}
/>
<br />
<div className="d-flex text-center flex-center">
<button className="newsletter-button" name="subscribe">
Sign Up
</button>
</div>
<br />
<div className="d-flex text-left">
<Alert
show={showAlert}
variant={alertSuccess ? "success" : "danger"}
>
{alertSuccess && (
<React.Fragment>
<Alert.Heading>Successfully Submitted!</Alert.Heading>
</React.Fragment>
)}
{!alertSuccess && (
<React.Fragment>
<Alert.Heading>Submission Error!</Alert.Heading>
<p>
Your request to subscribe has not been queued! You may have
already submitted a request under this email. If you do not
receive an invite email in 20 minutes, please contact us at{" "}
<a href="mailto:[email protected]">[email protected]</a>.
</p>
</React.Fragment>
)}
</Alert>
</div>
</form>
<p className="newsletter-mailchimp-info">
Mailchimp collects the following information for our sponsors and to
ensure all newsletters are sent to the appropriate person.
</p>
</div>
<form
className="newsletter-form"
action={
"https://uci.us13.list-manage.com/subscribe/post?u=5976872928cd5681fbaca89f6&amp;id=93333e11eb"
}
method={"post"}
name={"mc-embedded-subscribe-form"}
target={"_blank"}
onSubmit={submitDiscordSignUp}
>
<label>
Email Address <span className="asterisk">*</span>
</label>
<input
id="userEmail"
type="email"
className="form-control"
name="EMAIL"
required
value={email}
onChange={(event) => setEmail(event.target.value)}
/>
<br />
<label>
First Name <span className="asterisk">*</span>
</label>
<input
id="userFName"
type="text"
className="form-control"
name="FNAME"
required
value={firstName}
onChange={(event) => setFirstName(event.target.value)}
/>
<br />
<label>
Last Name <span className="asterisk">*</span>
</label>
<input
id="userLName"
type="text"
className="form-control"
name="LNAME"
required
value={lastName}
onChange={(event) => setLastName(event.target.value)}
/>
<br />
<label>
Graduating Year <span className="asterisk">*</span>
</label>
<input
id="userYear"
type="text"
maxLength="4"
className="form-control"
name="MMERGE4"
required
value={graduationYear}
onChange={(event) => setGraduationYear(event.target.value)}
/>
<br />
<div className="d-flex text-left">
<button className="newsletter-button" name="subscribe">
Sign Up
</button>
<div id="mentors" className="card">
<h2 style={{paddingBottom: '1em'}}>Become a mentor!</h2>
<p>Apply to be a part of a large group of mentors who will be able to provide support to hackers at Hack events including ZotHacks, Hack workshops, HackUCI, and HackNights!</p>
<div className="justify-content-center">
<a href="https://airtable.com/shrbPw3zLgnVZkMkA">
<button className="mentorship-button">Mentorship Application</button>
</a>
</div>
<br />
<div className="d-flex text-left">
<Alert
show={showAlert}
variant={alertSuccess ? "success" : "danger"}
>
{alertSuccess && (
<React.Fragment>
<Alert.Heading>Successfully Submitted!</Alert.Heading>
<p>
You'll receive an invite link for our Discord server at the
email provided above within 5 minutes.
</p>
</React.Fragment>
)}
{!alertSuccess && (
<React.Fragment>
<Alert.Heading>Submission Error!</Alert.Heading>
<p>
Your request to subscribe has not been queued! You may have
already submitted a request under this email. If you do not
receive an invite email in 20 minutes, please contact us at{" "}
<a href="mailto:[email protected]">[email protected]</a>.
</p>
</React.Fragment>
)}
</Alert>
</div>
</form>
</div>
</div>
</div>
);
Expand Down
76 changes: 57 additions & 19 deletions src/app/components/newsletter/Newsletter.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,46 @@
}

.newsletter-container {
display: grid;
grid-template-columns: 50% 5% 45%;
font-size: 23px;
width: 80%;
margin: auto;
display: flex;
flex-direction: column;
& a {
color: black;
text-decoration: none;
}
& a:hover {
color: white;
text-decoration: none;
}
& h2 {
font-size: 36px !important;
font-weight: normal !important;
}
& .card {
padding: 48px;
margin: 48px 200px !important;
}
}

.jumbotron {
margin-bottom: 0 !important;
}

.newsletter-left {
grid-column: 1;
}

.newsletter-container form {
grid-column: 3;
}

.newsletter-container h1 {
margin: 0;
}

.newsletter-mailchimp-info {
font-size: 22px;
font-size: 16px;
font-weight: 400;
color: #a9a9a9;
max-width: 460px;
}

.newsletter-info {
font-size: 25px;
}

.newsletter-form label {
margin: 0;
.newsletter-form {
text-align: left;
}

.newsletter-form .form-control {
Expand All @@ -62,6 +67,25 @@
margin-left: 10px;
}

.discord-card {
justify-content: center;
align-content: center;
align-items: center;
text-align: center;
transition: background-color 0.5s ease;
color: black;
&:hover {
background-color: #5865F0;
color: white;
cursor: pointer;
}
}

.discord-icon {
width: 98px;
height: 98px;
}

.discord-button {
border-color: transparent;
border-radius: 30px;
Expand All @@ -82,10 +106,24 @@
color: white;
}

@media screen and (max-width: 760px) {
.mentorship-button {
border-color: transparent;
border-radius: 30px;
font-size: 20px;
font-weight: 600;
padding: 10px 25px;
background-color: $red;
color: white;
position: relative;
z-index: 10;
}

@media screen and (max-width: 780px) {
.newsletter-container {
display: block;
font-size: 23px;
& .card {
margin: 48px 0 !important;
}
}
.discord-button {
font-size: 25px;
Expand Down
Loading