ForumPresenter.js
3.32 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
import React from "react";
import { Link } from "react-router-dom";
import styled from "styled-components";
import Header from "../../Components/Header";
import Footer from "../../Components/Footer";
const ContentWrapper = styled.div`
display: flex;
flex-direction: column;
padding-top: 4.3rem;
padding-bottom: 5rem;
`;
const ContentHeader = styled.header`
background-color: black;
display: flex;
justify-content: center;
align-items: center;
height: 300px;
`;
const HeaderSpan = styled.span`
color: white;
font-size: 3rem;
`;
const ContentMain = styled.main`
width: 80%;
margin: 0 auto;
`;
const MainTabBox = styled.div`
margin: 20px 0px;
width: 100%;
font-size: 1.5rem;
`;
const MainSection = styled.section``;
const PostList = styled.ul`
display: flex;
flex-direction: column;
margin: 20px 0px;
`;
const PostItem = styled.li`
display: flex;
flex-direction: row;
&.post-header {
background-color: #eaeaea;
}
&.post-footer {
background-color: #eaeaea;
height: 30px;
}
`;
const TopicList = styled.ul`
width: 100%;
display: flex;
flex-direction: row;
margin: 10px 0px;
`;
const TopicItem = styled.li`
font-size: 1.5rem;
padding: 10px;
&.topic-title {
text-align: left;
width: 55%;
}
&.topic-view,
&.topic-reply,
&.topic-date {
text-align: center;
width: 15%;
}
`;
const PaginationBox = styled.div`
width: 100%;
margin-bottom: 20px;
`;
const PaginationList = styled.ul`
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
`;
const PaginationItem = styled.li`
font-size: 1.5rem;
a {
margin: 0px 10px;
}
`;
const PaginationSpan = styled.span`
background: #eaeaea;
border-radius: 5px;
margin: 0px 10px;
`;
export default () => {
return (
<>
<Header />
<ContentWrapper>
<ContentHeader>
<HeaderSpan>Forums</HeaderSpan>
</ContentHeader>
<ContentMain>
<MainTabBox>Viewing 20 topics</MainTabBox>
<MainSection>
<PostList>
<PostItem className="post-header">
<TopicList>
<TopicItem className="topic-title">Topic</TopicItem>
<TopicItem className="topic-view">View</TopicItem>
<TopicItem className="topic-reply">Reply</TopicItem>
<TopicItem className="topic-date">Date</TopicItem>
</TopicList>
</PostItem>
<PostItem className="post-content">
<TopicList>
<TopicItem className="topic-title">Title-One</TopicItem>
<TopicItem className="topic-view">One-View</TopicItem>
<TopicItem className="topic-reply">Zero-Reply</TopicItem>
<TopicItem className="topic-date">2020-Date</TopicItem>
</TopicList>
</PostItem>
<PostItem className="post-footer" />
</PostList>
</MainSection>
<PaginationBox>
<PaginationList>
<PaginationItem>
<PaginationSpan>1</PaginationSpan>
<Link to="/">2</Link>
<Link to="/">3</Link>
</PaginationItem>
</PaginationList>
</PaginationBox>
</ContentMain>
</ContentWrapper>
<Footer />
</>
);
};