Showing
1 changed file
with
108 additions
and
0 deletions
front/src/Routes/About.js
0 → 100644
1 | +import React from "react"; | ||
2 | +import styled from "styled-components"; | ||
3 | +import Header from "../Components/Header"; | ||
4 | +import Footer from "../Components/Footer"; | ||
5 | +import Laptop from "../Imgs/laptop2.jpg"; | ||
6 | + | ||
7 | +const AboutMain = styled.main``; | ||
8 | + | ||
9 | +const Section = styled.section` | ||
10 | + padding-top: 8rem; | ||
11 | + padding-bottom: 5rem; | ||
12 | + background-image: url(${Laptop}); | ||
13 | + background-size: cover; | ||
14 | + &.none-image-section { | ||
15 | + background: none; | ||
16 | + } | ||
17 | +`; | ||
18 | + | ||
19 | +const SectionBox = styled.div` | ||
20 | + max-width: 80%; | ||
21 | + margin: 0 auto; | ||
22 | +`; | ||
23 | + | ||
24 | +const TitleBox = styled.div` | ||
25 | + display: flex; | ||
26 | + flex-direction: column; | ||
27 | + justify-content: center; | ||
28 | + align-items: center; | ||
29 | + line-height: 2; | ||
30 | + &.none-image-box { | ||
31 | + display: grid; | ||
32 | + grid-template-columns: 40% 50%; | ||
33 | + grid-column-gap: 5%; | ||
34 | + } | ||
35 | +`; | ||
36 | + | ||
37 | +const Title = styled.span` | ||
38 | + color: blanchedalmond; | ||
39 | + font-size: 2rem; | ||
40 | + &.none-image-title { | ||
41 | + color: black; | ||
42 | + text-align: center; | ||
43 | + } | ||
44 | +`; | ||
45 | + | ||
46 | +const Paragraph = styled.p` | ||
47 | + color: blanchedalmond; | ||
48 | + font-size: 1.3rem; | ||
49 | + &.none-image-paragraph { | ||
50 | + color: black; | ||
51 | + font-size: 1rem; | ||
52 | + } | ||
53 | +`; | ||
54 | + | ||
55 | +export default () => { | ||
56 | + return ( | ||
57 | + <> | ||
58 | + <Header /> | ||
59 | + <AboutMain> | ||
60 | + <Section> | ||
61 | + <SectionBox> | ||
62 | + <TitleBox> | ||
63 | + <Title>WelCome</Title> | ||
64 | + <Paragraph> | ||
65 | + There are many variations of passages of Lorem Ipsum available, | ||
66 | + but the majority have suffered alteration in some form, by | ||
67 | + injected humour, or randomised words which don't look even | ||
68 | + slightly believable. If you are going to use a passage of Lorem | ||
69 | + Ipsum, you need to be sure there isn't anything embarrassing | ||
70 | + hidden in the middle of text. All the Lorem Ipsum generators on | ||
71 | + the Internet tend to repeat predefined chunks as necessary, | ||
72 | + making this the first true generator on the Internet. It uses a | ||
73 | + dictionary of over 200 Latin words, combined with a handful of | ||
74 | + model sentence structures, to generate Lorem Ipsum which looks | ||
75 | + reasonable. The generated Lorem Ipsum is therefore always free | ||
76 | + from repetition, injected humour, or non-characteristic words | ||
77 | + etc. | ||
78 | + </Paragraph> | ||
79 | + </TitleBox> | ||
80 | + </SectionBox> | ||
81 | + </Section> | ||
82 | + <Section className="none-image-section"> | ||
83 | + <SectionBox> | ||
84 | + <TitleBox className="none-image-box"> | ||
85 | + <Title className="none-image-title">Lorem Ipsum</Title> | ||
86 | + <Paragraph className="none-image-paragraph"> | ||
87 | + Contrary to popular belief, Lorem Ipsum is not simply random | ||
88 | + text. It has roots in a piece of classical Latin literature from | ||
89 | + 45 BC, making it over 2000 years old. Richard McClintock, a | ||
90 | + Latin professor at Hampden-Sydney College in Virginia, looked up | ||
91 | + one of the more obscure Latin words, consectetur, from a Lorem | ||
92 | + Ipsum passage, and going through the cites of the word in | ||
93 | + classical literature, discovered the undoubtable source. Lorem | ||
94 | + Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus | ||
95 | + Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, | ||
96 | + written in 45 BC. This book is a treatise on the theory of | ||
97 | + ethics, very popular during the Renaissance. The first line of | ||
98 | + Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line | ||
99 | + in section 1.10.32. | ||
100 | + </Paragraph> | ||
101 | + </TitleBox> | ||
102 | + </SectionBox> | ||
103 | + </Section> | ||
104 | + </AboutMain> | ||
105 | + <Footer /> | ||
106 | + </> | ||
107 | + ); | ||
108 | +}; |
-
Please register or login to post a comment