1- import React from " react" ;
2- import { Link , Outlet } from " react-router-dom" ;
1+ import React from ' react' ;
2+ import { Link , Outlet } from ' react-router-dom' ;
33import Lottie from 'react-lottie' ;
44import animationData from '../Assets/checklist.json' ;
55import { ReactComponent as QRStamp } from '../../../Assets/thePerfectestLogo2.svg' ;
66
7-
8- const linkStyle = "flex text-white w-3/4 h-12 md:h-14 lg:h-20 xl:h-24 border-2 border-white justify-center m-auto my-8 md:my-8 items-center md:text-xl hover:bg-green-light xl:text-2xl" ;
9- const promptStyle = "bg-white flex flex-row rounded-sm w-full sm:w-10/12 h-80 lg:h-96 items-center m-auto my-14" ;
10- const checklistStyle = "invisible sm:visible w-0 sm:w-1/2 h-full" ;
11- const buttonStyle = "bg-green flex rounded-sm h-full w-full sm:w-1/2 lg:w-4/12 justify-center items-center flex-col px-8 lg:px-8 xl:px-16 hover:shadow-2xl" ;
12- const welcomeStyle = "flex rounded-sm justify-center flex-col sm:items-start items-center w-0 sm:w-1/2 sm:p-4 m-auto" ;
7+ const promptStyle =
8+ 'flex flex-col justify-around w-full h-full md:h-3/4 md:self-center' ;
9+ const checklistStyle = 'h-auto w-44 md:w-4/6 sm:w-1/2' ;
10+ const welcomeStyle =
11+ 'flex flex-col justify-around items-center sm:w-full md:flex-row' ;
12+ const registerStyle =
13+ 'w-11/12 bg-green text-white text-center mb-6 p-4 sm:m-0 sm:w-5/12' ;
14+ const loginStyle =
15+ 'w-11/12 text-green border-2 border-green text-center p-4 sm:w-5/12' ;
1316
1417const Prompt : React . FC = ( ) => {
18+ const defaultOptions = {
19+ loop : true ,
20+ autoplay : true ,
21+ animationData : animationData ,
22+ rendererSettings : { } ,
23+ } ;
1524
16- const defaultOptions = {
17- loop : true ,
18- autoplay : true ,
19- animationData : animationData ,
20- rendererSettings : { }
21- } ;
22-
23- return (
24- < div className = "w-full" >
25- < Outlet />
26- < div className = "h-1/3 w-1/3 m-auto my-4 visible sm:invisible sm:my-0 sm:h-2 sm:w-2" > < QRStamp /> </ div >
27- < section className = { promptStyle } >
28- < article className = { welcomeStyle } >
29- < div className = { checklistStyle } >
30- < Lottie options = { defaultOptions }
31- height = { 200 }
32- width = { '100%' }
33- />
34- </ div >
35- < p className = "text-black text-md text-xl md:text-2xl lg:text-3xl xl:text-4xl invisible sm:visible" > We help you take attendance quickly, easily, and without hassle.</ p >
36- </ article >
37- < aside className = { buttonStyle } >
38- < h1 className = "text-white text-2xl lg:text-4xl" > Welcome</ h1 >
39- < ul className = "w-full" >
40- < li className = "w-full" >
41- < p > < Link to = { '/register' } className = { linkStyle } > Register</ Link > </ p >
42- </ li >
43- < li >
44- < p > < Link to = { '/login' } className = { linkStyle } > Login</ Link > </ p >
45- </ li >
46- </ ul >
47- </ aside >
48- </ section >
49- </ div >
50- )
51- }
25+ return (
26+ < div className = 'flex w-full h-full 2xl:px-32 2xl:w-3/4' >
27+ < Outlet />
28+ < section className = { promptStyle } >
29+ < h1 className = 'text-green font-bold text-5xl md:text-6xl xl:text-7xl text-center' >
30+ Welcome to QRCheckd!
31+ </ h1 >
32+ < article className = { welcomeStyle } >
33+ < div className = 'flex flex-col justify-around w-full sm:h-4/6' >
34+ < p className = 'text-black text-2xl lg:text-3xl xl:text-4xl text-center p-4' >
35+ Take attendance quickly, easily, and without hassle.
36+ </ p >
37+ < div className = 'flex flex-col justify-around items-center sm:flex-row w-full' >
38+ < Link to = { '/register' } className = { registerStyle } >
39+ Register
40+ </ Link >
41+ < Link to = { '/login' } className = { loginStyle } >
42+ Login
43+ </ Link >
44+ </ div >
45+ </ div >
46+ < div className = { checklistStyle } >
47+ < Lottie options = { defaultOptions } height = { '100%' } width = { '100%' } />
48+ </ div >
49+ </ article >
50+ </ section >
51+ </ div >
52+ ) ;
53+ } ;
5254
53- export default Prompt ;
55+ export default Prompt ;
0 commit comments