File tree Expand file tree Collapse file tree 7 files changed +150
-0
lines changed Expand file tree Collapse file tree 7 files changed +150
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import LoginForm from './components/LoginForm/LoginForm'
14
14
import restricted from './components/Restricted/Restricted'
15
15
import SignupForm from './components/SignupForm/SignupForm'
16
16
import Version from './components/Version/Version'
17
+ import LandingA from './components/LandingA/LandingA'
17
18
18
19
// set up components for lazy loading
19
20
const ProfileRestrictedLoadable = restricted ( Loadable ( {
@@ -38,6 +39,7 @@ class App extends Component {
38
39
< Route path = '/login' component = { LoginForm } />
39
40
< Route path = '/profile' component = { ProfileRestrictedLoadable } />
40
41
< Route path = '/signup' component = { SignupForm } />
42
+ < Route path = '/landing-a' component = { LandingA } />
41
43
</ Switch >
42
44
</ div >
43
45
)
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change 90
90
"eslint-plugin-promise" : " ^3.5.0" ,
91
91
"eslint-plugin-react" : " ^7.4.0" ,
92
92
"eslint-plugin-standard" : " ^3.0.1" ,
93
+ "file-loader" : " ^1.1.6" ,
93
94
"geckodriver" : " ^1.10.0" ,
94
95
"ignore-styles" : " ^5.0.1" ,
95
96
"mongodb-memory-server" : " ^1.6.3" ,
Original file line number Diff line number Diff line change @@ -3741,6 +3741,13 @@ file-entry-cache@^2.0.0:
3741
3741
flat-cache "^1.2.1"
3742
3742
object-assign "^4.0.1"
3743
3743
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
+
3744
3751
file-type@^3.8.0 :
3745
3752
version "3.9.0"
3746
3753
resolved "https://registry.yarnpkg.com/file-type/-/file-type-3.9.0.tgz#257a078384d1db8087bc449d107d52a52672b9e9"
You can’t perform that action at this time.
0 commit comments