Skip to content

Commit 50cc629

Browse files
razwanizmibbmoz
authored andcommitted
Feature/#155111428 - Visitor sees Landing Page (Section A) (#172)
1 parent 1a49bcf commit 50cc629

File tree

7 files changed

+150
-0
lines changed

7 files changed

+150
-0
lines changed

client/App.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import LoginForm from './components/LoginForm/LoginForm'
1414
import restricted from './components/Restricted/Restricted'
1515
import SignupForm from './components/SignupForm/SignupForm'
1616
import Version from './components/Version/Version'
17+
import LandingA from './components/LandingA/LandingA'
1718

1819
// set up components for lazy loading
1920
const ProfileRestrictedLoadable = restricted(Loadable({
@@ -38,6 +39,7 @@ class App extends Component {
3839
<Route path='/login' component={LoginForm}/>
3940
<Route path='/profile' component={ProfileRestrictedLoadable}/>
4041
<Route path='/signup' component={SignupForm}/>
42+
<Route path='/landing-a' component={LandingA} />
4143
</Switch>
4244
</div>
4345
)
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import React from 'react'
2+
import { Link } from 'react-router-dom'
3+
import Button from 'material-ui/Button'
4+
import styles from './LandingA.scss'
5+
import logo from '../../images/logo-home.png'
6+
import neonLike from '../../images/neon-like.png'
7+
8+
const LandingA = () => {
9+
return (
10+
<div className={styles.container}>
11+
<div className={styles.nav}>
12+
<Link to="/">
13+
<img src={logo} alt="Call to code logo" />
14+
</Link>
15+
<div>
16+
<Button to="/" component={Link} className={styles.navLink}>
17+
PROJECTS
18+
</Button>
19+
<Button to="/login" component={Link} className={styles.navLink}>
20+
LOG IN
21+
</Button>
22+
<Button to="/signup" component={Link} className={styles.navButton}>
23+
SIGN UP
24+
</Button>
25+
</div>
26+
</div>
27+
<div className={styles.hero}>
28+
<div className={styles.heroLeft}>
29+
<h1 className={styles.heroHeader}>
30+
Change the world with your code.
31+
</h1>
32+
<div>
33+
<Button to="/" component={Link} className={styles.heroButton}>
34+
FIND PROJECTS
35+
</Button>
36+
</div>
37+
</div>
38+
<div className={styles.heroRight}>
39+
<img src={neonLike} alt="Neon like" />
40+
</div>
41+
</div>
42+
</div>
43+
)
44+
}
45+
46+
export default LandingA
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
@import "../../scss/partials/partials";
2+
3+
$black: #000;
4+
$bottom-red: #ff3e3e;
5+
$text-red: #ea4c2d;
6+
$top-red: #e74e2b;
7+
$white: #fff;
8+
9+
.container {
10+
background: linear-gradient($top-red, $bottom-red);
11+
height: 100vh;
12+
left: 0;
13+
padding: 40px 50px;
14+
position: absolute;
15+
right: 0;
16+
}
17+
18+
.nav {
19+
align-items: center;
20+
display: flex;
21+
height: 43px;
22+
justify-content: space-between;
23+
}
24+
25+
.navLink {
26+
margin: 0 10px;
27+
28+
span {
29+
color: $white;
30+
font-size: 14px;
31+
letter-spacing: 2.3px;
32+
}
33+
}
34+
35+
a.navButton {
36+
background: $white;
37+
border-radius: 49.5px;
38+
margin: 0 10px;
39+
padding: 13px 28px;
40+
41+
&:active,
42+
&:focus,
43+
&:hover {
44+
background: $white;
45+
}
46+
47+
span {
48+
color: $text-red;
49+
font-size: 14px;
50+
letter-spacing: 2.3px;
51+
}
52+
}
53+
54+
.hero {
55+
align-items: center;
56+
display: flex;
57+
justify-content: space-between;
58+
margin: 131px 55px 0;
59+
}
60+
61+
.heroLeft {
62+
flex-basis: 553px;
63+
}
64+
65+
.heroRight {
66+
flex-basis: 1;
67+
}
68+
69+
.heroHeader {
70+
color: $white;
71+
font-size: 64px;
72+
font-weight: bold;
73+
line-height: 74px;
74+
margin-bottom: 40px;
75+
}
76+
77+
a.heroButton {
78+
background: $white;
79+
border-radius: 49.5px;
80+
padding: 23px 52px;
81+
82+
&:active,
83+
&:hover,
84+
&:focus {
85+
background: $white;
86+
}
87+
88+
span {
89+
color: $black;
90+
font-size: 12px;
91+
font-weight: bold;
92+
letter-spacing: 2.4px;
93+
}
94+
}

client/images/logo-home.png

6.06 KB
Loading

client/images/neon-like.png

328 KB
Loading

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
"eslint-plugin-promise": "^3.5.0",
9191
"eslint-plugin-react": "^7.4.0",
9292
"eslint-plugin-standard": "^3.0.1",
93+
"file-loader": "^1.1.6",
9394
"geckodriver": "^1.10.0",
9495
"ignore-styles": "^5.0.1",
9596
"mongodb-memory-server": "^1.6.3",

yarn.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3741,6 +3741,13 @@ file-entry-cache@^2.0.0:
37413741
flat-cache "^1.2.1"
37423742
object-assign "^4.0.1"
37433743

3744+
file-loader@^1.1.6:
3745+
version "1.1.6"
3746+
resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-1.1.6.tgz#7b9a8f2c58f00a77fddf49e940f7ac978a3ea0e8"
3747+
dependencies:
3748+
loader-utils "^1.0.2"
3749+
schema-utils "^0.3.0"
3750+
37443751
file-type@^3.8.0:
37453752
version "3.9.0"
37463753
resolved "https://registry.yarnpkg.com/file-type/-/file-type-3.9.0.tgz#257a078384d1db8087bc449d107d52a52672b9e9"

0 commit comments

Comments
 (0)