Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
Merge branch 'mhacks13'
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonHoffman committed Aug 2, 2020
2 parents dbf6b78 + 7d0ba8b commit e78e8ce
Show file tree
Hide file tree
Showing 24 changed files with 54 additions and 40 deletions.
2 changes: 1 addition & 1 deletion app/pages/edit_profile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class EditProfile extends React.Component {
another one by clicking{' '}
<Link
onClick={this.onClickRequestEmailVerification}
color={this.props.theme.secondary}
color={this.props.theme.highlightSecondary}
>
here
</Link>
Expand Down
5 changes: 3 additions & 2 deletions app/pages/home/apply.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const StyledNavLinkWrapper = styled.div`
const ApplyBoxText = styled(SectionHeader)`
color: ${theme.secondary};
padding: 0 10px;
text-transform: none;
${devices.tiny`
font-size: 20px;
Expand Down Expand Up @@ -108,9 +109,9 @@ class Apply extends React.Component {
) : (
<StyledNavLink
to={routes.LOGIN}
color={this.props.theme.highlight}
color={this.props.theme.highlightSecondary}
>
Login
{is_application_open ? 'Register' : 'Login'}
</StyledNavLink>
)}
</StyledNavLinkWrapper>
Expand Down
19 changes: 9 additions & 10 deletions app/pages/home/hacking_categories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ import { devices } from '../../styles';
import theme from '../../styles/theme';

const Images = {
'AI/ML': require('../../../static/m12/cortices/ai.svg'),
'Android <br />Development': require('../../../static/m12/cortices/android.svg'),
'AR/VR': require('../../../static/m12/cortices/vr.svg'),
'Game <br />Development': require('../../../static/m12/cortices/game.svg'),
Hardware: require('../../../static/m12/cortices/hardware.svg'),
'iOS <br />Development': require('../../../static/m12/cortices/ios.svg'),
'Web <br />Development': require('../../../static/m12/cortices/web.svg')
'Social Justice': require('../../../static/m13/subtracks/SocialJustice.png'),
Professional: require('../../../static/m13/subtracks/Professional.png'),
Educational: require('../../../static/m13/subtracks/Educational.png'),
Social: require('../../../static/m13/subtracks/Social.png'),
Medical: require('../../../static/m13/subtracks/Medical.png')
};

const Wrapper = styled.div`
Expand All @@ -36,12 +34,13 @@ const Container = styled.div`

const SectionHeader = styled.h2`
display: block;
font-size: 48px;
font-size: 30px;
font-weight: 900;
margin: 0px 20px 20px 20px;
min-width: 100%;
text-align: center;
color: ${theme.highlight};
text-transform: uppercase;
`;

const Flexbox = styled.div`
Expand Down Expand Up @@ -73,7 +72,7 @@ const Caption = styled.p`
display: block;
font-size: 16px;
text-align: center;
color: ${theme.primary};
color: ${theme.highlightSecondary};
`;

class HackingCategories extends React.Component {
Expand All @@ -82,7 +81,7 @@ class HackingCategories extends React.Component {
<Wrapper style={{ backgroundColor: this.props.backgroundColor }}>
<Container>
<Flexbox>
<SectionHeader>Hacking Cortices</SectionHeader>
<SectionHeader>Subtracks</SectionHeader>
{Object.keys(Images).map(function(name, index) {
return (
<Flex1 key={index}>
Expand Down
5 changes: 3 additions & 2 deletions app/pages/home/hero.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,14 @@ const LeftSideContainer = styled.div`
`;

const Text = styled.h2`
font-size: 42px;
font-size: 30px;
font-weight: 900;
margin-bottom: 0;
text-align: center;
color: ${props => props.color};
text-transform: uppercase;
${devices.desktop`
font-size: 42px;
font-size: 30px;
margin: -50px 15px 25px 0;
text-align: left;
`};
Expand Down
53 changes: 36 additions & 17 deletions app/pages/home/landing.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import React from 'react';
import styled from 'styled-components';
import { connect } from 'react-redux';
import { devices } from '../../styles';
// import { devices } from '../../styles';

import Apply from './apply.jsx';

// import Cover from 'react-video-cover';
const BackgroundVideo = require('../../../static/m13/background.mp4');
const LandingBackground = require('../../../static/m13/landing.png');
const LandingLogo = require('../../../static/m12/logo-landing.png');
// const LandingLogo = require('../../../static/m12/logo-landing.png');

const Wrapper = styled.div`
background: ${props => props.theme.primary};
Expand All @@ -34,18 +35,18 @@ const InnerContainer = styled.div`
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
justify-content: space-around;
`;

const Logo = styled.div`
height: auto;
// const Logo = styled.div`
// height: auto;

${devices.tiny`
width: 100vw;
`} ${devices.small`
width: 70vw;
`};
`;
// ${devices.tiny`
// width: 100vw;
// `} ${devices.small`
// width: 70vw;
// `};
// `;

const ApplyBox = styled.div`
width: 100%;
Expand Down Expand Up @@ -80,7 +81,7 @@ class Landing extends React.Component {
// src: BackgroundVideo,
// autoPlay: true,
// muted: true,
// loop: true,
// loop: false,
// playsInline: true
// };

Expand All @@ -95,12 +96,30 @@ class Landing extends React.Component {
alt="Major League Hacking 2020 Hackathon Season"
/>
</MLHBanner>
<Container>
<img src={LandingBackground} style={{ height: '100vh' }} />
<Container style={{ height: '100vh' }}>
<img
src={LandingBackground}
style={{
zIndex: '2',
height: '100%',
width: '100%',
objectFit: 'cover'
}}
/>
<InnerContainer>
<Logo>
<img src={LandingLogo} style={{ width: '100%' }} />
</Logo>
<video
src={BackgroundVideo}
autoPlay
muted
playsInline
style={{
zIndex: '1',
maxHeight: '35vh',
maxWidth: '90vw',
height: 'auto',
width: 'auto'
}}
/>
<ApplyBox>
<Apply />
</ApplyBox>
Expand Down
1 change: 1 addition & 0 deletions app/pages/home/section_components.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const SectionHeader = styled.h2`
text-align: center;
color: ${theme.highlight};
padding-top: 50px;
text-transform: uppercase;
${devices.tiny`
font-size: 32px;
Expand Down
2 changes: 1 addition & 1 deletion app/styles/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function hexToRgbA(hex, opq) {
let theme = {
// Color primitives
primaryFont: 'FFDINWebProRegular',
primary: '#0A192E',
primary: '#081A33',
secondary: '#FFFBF1',
highlight: '#9CB9C7',
highlightSecondary: '#ACDD8F',
Expand Down
Binary file removed static/m13/background-video.mp4
Binary file not shown.
Binary file added static/m13/background.mp4
Binary file not shown.
1 change: 0 additions & 1 deletion static/m13/cortices/ai.svg

This file was deleted.

1 change: 0 additions & 1 deletion static/m13/cortices/android.svg

This file was deleted.

1 change: 0 additions & 1 deletion static/m13/cortices/game.svg

This file was deleted.

1 change: 0 additions & 1 deletion static/m13/cortices/hardware.svg

This file was deleted.

1 change: 0 additions & 1 deletion static/m13/cortices/ios.svg

This file was deleted.

1 change: 0 additions & 1 deletion static/m13/cortices/vr.svg

This file was deleted.

1 change: 0 additions & 1 deletion static/m13/cortices/web.svg

This file was deleted.

Binary file modified static/m13/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/m13/landing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/m13/media.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/m13/subtracks/Educational.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/m13/subtracks/Medical.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/m13/subtracks/Professional.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/m13/subtracks/Social.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/m13/subtracks/SocialJustice.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e78e8ce

Please sign in to comment.