@@ -11,13 +11,14 @@ import {
1111 AppBar
1212} from '@material-ui/core' ;
1313import TopBar from 'src/layouts/MainLayout/TopBar' ;
14+ import HomeView from '.' ;
15+ import { HashLink } from 'react-router-hash-link' ;
1416
1517const useStyles = makeStyles ( theme => ( {
1618 root : {
1719 backgroundColor : '#FFF' ,
18- height : '90vh ' ,
20+ height : '100vh ' ,
1921 color : '#000' ,
20-
2122 overflow : 'hidden' ,
2223 [ theme . breakpoints . down ( 'md' ) ] : {
2324 paddingTop : 0 ,
@@ -38,10 +39,7 @@ const useStyles = makeStyles(theme => ({
3839 display : 'flex' ,
3940 '& > img' : {
4041 maxWidth : '100%' ,
41-
4242 backfaceVisibility : 'hidden'
43- // boxShadow: theme.shadows[16]
44- // transform: 'rotateY(-35deg) rotateX(15deg)'
4543 } ,
4644 [ theme . breakpoints . down ( 'sm' ) ] : {
4745 maxWidth : '40vh'
@@ -52,11 +50,13 @@ const useStyles = makeStyles(theme => ({
5250 } ,
5351 Button : {
5452 textTransform : 'capitalize'
55- // padding :
5653 } ,
5754 container : {
5855 paddingTop : '10vh' ,
5956 margin : '0 5px' ,
57+ [ theme . breakpoints . down ( 'md' ) ] : {
58+ minHeight : '87%'
59+ } ,
6060 [ theme . breakpoints . down ( 'sm' ) ] : {
6161 margin : '0' ,
6262 paddingTop : '2vh' ,
@@ -67,8 +67,6 @@ const useStyles = makeStyles(theme => ({
6767 } ,
6868 footer : {
6969 padding : 0 ,
70- objectFit : 'cover' ,
71- position : 'fixed' ,
7270 left : 0 ,
7371 bottom : 0 ,
7472 height : '30vh' ,
@@ -81,100 +79,105 @@ const useStyles = makeStyles(theme => ({
8179function LandingPage ( { className, ...rest } ) {
8280 const classes = useStyles ( ) ;
8381 return (
84- < div >
85- < AppBar >
86- < TopBar variant = "black" />
87- </ AppBar >
88- < div className = { clsx ( classes . root , className ) } { ...rest } >
89- < Grid
90- container
91- spacing = { 2 }
92- className = { classes . container }
93- direction = "row"
94- justify = "center"
95- alignItems = "center"
96- >
82+ < >
83+ < div >
84+ < AppBar >
85+ < TopBar variant = "black" />
86+ </ AppBar >
87+ < div className = { clsx ( classes . root , className ) } { ...rest } >
9788 < Grid
98- item
99- xs = { 12 }
100- sm = { 6 }
101- style = { { height : '80%' } }
89+ container
90+ spacing = { 2 }
91+ className = { classes . container }
10292 direction = "row"
10393 justify = "center"
10494 alignItems = "center"
10595 >
106- < Box
107- style = { {
108- display : 'flex' ,
109- justifyContent : 'center'
110- } }
96+ < Grid
97+ item
98+ xs = { 12 }
99+ sm = { 6 }
100+ style = { { height : '80%' } }
101+ direction = "row"
102+ justify = "center"
103+ alignItems = "center"
111104 >
112105 < Box
113- display = "flex"
114- style = { { justifyContent : 'center' , flexDirection : 'column' } }
106+ style = { {
107+ display : 'flex' ,
108+ justifyContent : 'center'
109+ } }
115110 >
116- < Box mt = { 10 } display = "flex" >
117- < Typography variant = "h1" style = { { fontWeight : '700' } } >
118- A Heading for the
119- < br /> Landing Page
120- </ Typography >
121- </ Box >
122- < Box mt = { 3 } display = "flex" >
123- < Typography variant = "h6" >
124- A brief introduction about platform , what is the purpose of
125- thisand what our
126- < br /> platform representstwo to three lines will work
127- </ Typography >
128- </ Box >
129- < Box mt = { 3 } display = "flex" >
130- < Button
131- style = { {
132- backgroundColor : '#ffffff' ,
133- color : '#B20000' ,
134- textTransform : 'capitalize' ,
135- fontWeight : 700 ,
136- borderRadius : '20px'
137- } }
138- component = "a"
139- href = "/register"
140- size = "large"
141- variant = "contained"
142- >
143- Get Started < ArrowForwardOutlinedIcon />
144- </ Button >
111+ < Box
112+ display = "flex"
113+ style = { { justifyContent : 'center' , flexDirection : 'column' } }
114+ >
115+ < Box mt = { 10 } display = "flex" >
116+ < Typography variant = "h1" style = { { fontWeight : '700' } } >
117+ CauseFolio
118+ < br /> Where Leaders Live
119+ </ Typography >
120+ </ Box >
121+ < Box mt = { 3 } display = "flex" >
122+ < Typography variant = "h6" >
123+ A community driven event management platform where
124+ < br /> community leaders showcase their real portfolio
125+ </ Typography >
126+ </ Box >
127+ < Box mt = { 3 } display = "flex" >
128+ < HashLink smooth to = "#cfc" >
129+ < Button
130+ style = { {
131+ backgroundColor : '#ffffff' ,
132+ color : '#B20000' ,
133+ textTransform : 'capitalize' ,
134+ fontWeight : 700 ,
135+ borderRadius : '20px'
136+ } }
137+ size = "large"
138+ variant = "contained"
139+ >
140+ Know More < ArrowForwardOutlinedIcon />
141+ </ Button >
142+ </ HashLink >
143+ </ Box >
145144 </ Box >
146145 </ Box >
147- </ Box >
146+ </ Grid >
147+ < Grid
148+ item
149+ xs = { 12 }
150+ sm = { 6 }
151+ style = { { display : 'flex' , justifyContent : 'center' } }
152+ >
153+ < div className = { classes . image } >
154+ < img
155+ alt = "codeforcauseimg"
156+ src = "/static/home/serviceGirl.png"
157+ style = { { width : '55vh' } }
158+ />
159+ </ div >
160+ </ Grid >
148161 </ Grid >
149- < Grid
150- item
151- xs = { 12 }
152- sm = { 6 }
153- style = { { display : 'flex' , justifyContent : 'center' } }
154- >
155- < div className = { classes . image } >
162+
163+ < Grid container xs = { 12 } sm = { 12 } >
164+ < Grid item className = { classes . footer } >
156165 < img
157166 alt = "codeforcauseimg"
158- src = "/static/home/serviceGirl.png"
159- style = { { width : '55vh' } }
167+ src = "/static/home/Footer.svg"
168+ style = { {
169+ width : '100vw'
170+ } }
160171 />
161- </ div >
162- </ Grid >
163- </ Grid >
164-
165- < Grid container xs = { 12 } sm = { 12 } >
166- < Grid item className = { classes . footer } >
167- < img
168- alt = "codeforcauseimg"
169- src = "/static/home/Footer.svg"
170- style = { {
171- width : '100vw'
172- } }
173- />
172+ </ Grid >
174173 </ Grid >
175- </ Grid >
174+ </ div >
176175 </ div >
177- </ div >
176+ < div
177+ style = { { height : '20vh' , width : '100%' , backgroundColor : '#291755' } }
178+ > </ div >
179+ < HomeView />
180+ </ >
178181 ) ;
179182}
180183
0 commit comments