-
Notifications
You must be signed in to change notification settings - Fork 0
/
Heros.tsx
90 lines (86 loc) · 4.53 KB
/
Heros.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import { useOktaAuth } from "@okta/okta-react";
import { Link } from "react-router-dom";
export const Heros = () => {
const { authState } = useOktaAuth();
return (
<div>
<div className='d-none d-lg-block'>
<div className='row g-0 mt-5'>
<div className='col-sm-6 col-md-6'>
<div className='col-image-left'></div>
</div>
<div className='col-4 col-md-4 container d-flex justify-content-center align-items-center'>
<div className='ml-2'>
<h1>What have you been reading?</h1>
<p className='lead'>
The library team would love to know what you have been reading.
Whether it is to learn a new skill or grow within one,
we will be able to provide the top content for you!
</p>
{ authState?.isAuthenticated ?
<Link type='button' className='btn main-color btn-lg text-white'
to='search'>Explore top books</Link>
:
<Link className='btn main-color btn-lg text white' to="/login">Sign up</Link>
}
</div>
</div>
</div>
<div className='row g-0'>
<div className='col-4 col-md-4 container d-flex
justify-content-center align-items-center'>
<div className='ml-2'>
<h1>Our collection is always changing!</h1>
<p className='lead'>
Try to check in daily as our collection is always changing!
We work nonstop to provide the most accurate book selection possible
for our Luv 2 Read students! We are diligent about our book selection
and our books are always going to be our
top priority.
</p>
</div>
</div>
<div className='col-sm-6 col-md-6'>
<div className='col-image-right'>
</div>
</div>
</div>
</div>
{/*Mobile Heros */}
<div className='d-lg-none'>
<div className='container'>
<div className='m-2'>
<div className='col-image-left'></div>
<div className='mt-2'>
<h1>What have you been reading?</h1>
<p className='lead'>
The library team would love to know what you have been reading.
Whether it is to learn a new skill or grow within one,
we will be able to provide the top content for you!
</p>
{ authState?.isAuthenticated ?
<Link type='button' className='btn main-color btn-lg text-white'
to='search'>Explore top books</Link>
:
<Link className='btn main-color btn-lg text white' to="/login">Sign up</Link>
}
</div>
</div>
<div className='m-2'>
<div className='col-image-right'></div>
<div className='mt-2'>
<h1>Our collection is always changing!</h1>
<p className='lead'>
Try to check in daily as our collection is always changing!
We work nonstop to provide the most accurate book selection possible
for our Luv 2 Read students! We are diligent about our book selection
and our books are always going to be our
top priority.
</p>
</div>
</div>
</div>
</div>
</div>
);
}