Skip to content

Commit

Permalink
Created Landing Page (#3)
Browse files Browse the repository at this point in the history
Merge commit for Landing Page.
  • Loading branch information
jainsujay02 authored Feb 23, 2023
2 parents 0ba54e2 + c700f71 commit 5e7529d
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 1 deletion.
1 change: 1 addition & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
<title>React App</title>
</head>
<body>
Expand Down
4 changes: 3 additions & 1 deletion src/components/Home.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import Landing_Image from "./Landing_Image";

export default function Home() {
return (
<div className="App">
<header className="App-header">
<p>Hi</p>
<Landing_Image/>
</header>
</div>
);
Expand Down
90 changes: 90 additions & 0 deletions src/components/Landing_Image.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
import styled from 'styled-components'
import landing_graphic from '../images/graphic-landing.png'

const Landing = styled.div`
background-color: #EEEEEE;
height: 100vh;
width: 100vw;
p {
font-family: 'Poppins', sans-serif;
margin-left: 187px;
margin-right: 766px;
}
`

const TitleStyle = {
fontSize: '72px',
fontStyle: 'normal',
fontWeight: '600',
display: 'flex',
alignItems: 'center',
letterSpacing: '-0.25px',
lineHeight: '100px',
color: '#333333',
width: '559px',
height: '128px',
marginTop: '280px',
marginBottom: '0px',
};

const BlurbStyle = {
width: '559px',
marginTop: '0px',
height: '72px',
fontSize: '24px',
color: '#5F6C7B',
lineHeight: '36px',
fontStyle: 'normal',
marginBottom: '0px',
textAlign: 'left',
};

const ImgStyle = {
width: '500px',
height: '500px',
left: '818px',
top: '222px',
position: 'absolute',
};

const ButtonStyle = {
boxSizing: 'border-box',
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
padding: '16px 20px',
gap: '6px',
width: '233px',
height: '56px',
left: '185px',
marginTop: '19px',
border: '1.5px solid #2B59C3',
borderRadius: '16px',
fontWeight: '600',
fontSize: '16px',
lineHeight: '24px',
letterSpacing: '0.2px',
color: '#2B59C3',
marginBottom: '0px',
};

const Landing_Image = () => {
return (
<Landing>
<div style={{float:'left'}}>
<p style={TitleStyle}>ClassBuddi</p>
<p style={BlurbStyle}>
Reach out to fellow classmates. Build a support system. Find a classbuddi.
<button style={ButtonStyle} type="button">Join Us</button>
</p>
</div>
<div>
<img style={ImgStyle} src={landing_graphic} alt="Graphic Landing"></img>
</div>
</Landing>
);
}

export default Landing_Image;
Binary file added src/images/graphic-landing.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 5e7529d

Please sign in to comment.