sdy

create news route

1 +import React from "react";
2 +import styled from "styled-components";
3 +import Header from "../Components/Header";
4 +import Footer from "../Components/Footer";
5 +
6 +const Main = styled.main`
7 + display: flex;
8 + flex-direction: column;
9 +`;
10 +
11 +const Section = styled.section`
12 + padding-top: 8rem;
13 + padding-bottom: 5rem;
14 + max-width: none;
15 + &.title-section {
16 + background-color: black;
17 + }
18 +`;
19 +
20 +const SectionBox = styled.div`
21 + max-width: 80%;
22 + margin: 0 auto;
23 + &.title-section-box {
24 + max-width: 100%;
25 + }
26 +`;
27 +
28 +const DescriptionBox = styled.div`
29 + display: flex;
30 + flex-direction: column;
31 +`;
32 +
33 +const TitleBox = styled.div`
34 + text-align: center;
35 + font-size: 2rem;
36 + font-weight: 600;
37 + margin-bottom: 20px;
38 + &.top-title-box {
39 + color: white;
40 + }
41 +`;
42 +
43 +export default () => {
44 + return (
45 + <>
46 + <Header />
47 + <Main>
48 + <Section className="title-section">
49 + <SectionBox className="title-section-box">
50 + <DescriptionBox>
51 + <TitleBox className="top-title-box">What's New?</TitleBox>
52 + </DescriptionBox>
53 + </SectionBox>
54 + </Section>
55 + </Main>
56 + <Footer />
57 + </>
58 + );
59 +};