Skip to content

Commit b56a9fb

Browse files
committed
refactor: separate styles into About.styles
1 parent 69d271e commit b56a9fb

File tree

1 file changed

+227
-0
lines changed

1 file changed

+227
-0
lines changed
Lines changed: 227 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,227 @@
1+
import styled from 'styled-components';
2+
import { remSize, prop } from '../../theme';
3+
4+
export const AboutContent = styled.div`
5+
margin: ${remSize(42)} ${remSize(295)};
6+
7+
@media (max-width: 1279px) {
8+
margin: ${remSize(20)};
9+
width: 95%;
10+
overflow-y: auto;
11+
overflow-x: hidden;
12+
flex-direction: column;
13+
}
14+
`;
15+
16+
export const IntroSection = styled.div`
17+
& h1 {
18+
font-size: ${remSize(32)};
19+
font-weight: 700;
20+
}
21+
22+
& a {
23+
padding: ${remSize(12)};
24+
border: ${remSize(1)} solid ${prop('primaryTextColor')};
25+
border-radius: ${remSize(24)};
26+
display: flex;
27+
align-items: center;
28+
width: ${remSize(110)};
29+
justify-content: space-evenly;
30+
&:hover {
31+
color: ${prop('Button.primary.default.background')};
32+
background-color: ${prop('Button.primary.hover.background')};
33+
border-color: ${prop('Button.primary.hover.border')};
34+
text-decoration: none;
35+
36+
& svg {
37+
& path {
38+
fill: ${prop('Button.primary.default.background')};
39+
}
40+
}
41+
}
42+
}
43+
`;
44+
45+
export const IntroSectionContent = styled.div`
46+
display: flex;
47+
align-items: center;
48+
49+
& div {
50+
height: 100%;
51+
align-items: center;
52+
font-weight: 550;
53+
font-size: ${remSize(24)};
54+
margin: ${remSize(24)};
55+
}
56+
57+
& svg {
58+
& path {
59+
fill: ${prop('logoColor')};
60+
}
61+
}
62+
63+
@media (max-width: 769px) {
64+
flex-direction: column;
65+
align-items: start;
66+
67+
& div {
68+
margin: ${remSize(24)} 0;
69+
}
70+
}
71+
`;
72+
73+
export const IntroSectionDescription = styled.div`
74+
line-height: ${remSize(27)};
75+
font-size: ${remSize(16)};
76+
margin: ${remSize(24)} 0;
77+
78+
p {
79+
margin-bottom: ${remSize(24)};
80+
}
81+
`;
82+
83+
export const Section = styled.div`
84+
margin: ${remSize(50)} 0;
85+
86+
& h2 {
87+
font-size: ${remSize(24)};
88+
padding-bottom: ${remSize(30)};
89+
font-weight: 600;
90+
}
91+
92+
@media (max-width: 769px) {
93+
display: grid;
94+
}
95+
`;
96+
97+
export const SectionContainer = styled.div`
98+
display: flex;
99+
justify-content: row;
100+
padding-top: 0;
101+
font-size: ${remSize(16)};
102+
width: 100%;
103+
flex-wrap: wrap;
104+
105+
@media (max-width: 769px) {
106+
display: grid;
107+
}
108+
`;
109+
110+
export const SectionItem = styled.div`
111+
width: 33%;
112+
display: flex;
113+
line-height: ${remSize(19.5)};
114+
font-size: ${remSize(14)};
115+
padding: 0 ${remSize(30)} ${remSize(30)} 0;
116+
117+
& p {
118+
margin-top: ${remSize(7)};
119+
}
120+
121+
& a {
122+
font-weight: 700;
123+
font-size: ${remSize(16)};
124+
&:hover {
125+
text-decoration: underline;
126+
}
127+
}
128+
129+
& svg {
130+
padding-right: ${remSize(8)};
131+
width: ${remSize(30)};
132+
height: ${remSize(20)};
133+
& path {
134+
fill: ${prop('logoColor')};
135+
stroke: ${prop('logoColor')};
136+
}
137+
}
138+
139+
@media (max-width: 1279px) {
140+
width: 50%;
141+
}
142+
143+
@media (max-width: 769px) {
144+
width: 100%;
145+
}
146+
`;
147+
148+
export const ContactSection = styled.div`
149+
margin-bottom: ${remSize(50)};
150+
151+
& h2 {
152+
font-size: ${remSize(24)};
153+
font-weight: 600;
154+
}
155+
156+
& div {
157+
display: flex;
158+
width: 100%;
159+
margin: ${remSize(20)} 0;
160+
font-size: ${remSize(16)};
161+
}
162+
`;
163+
164+
export const ContactSectionTitle = styled.p`
165+
width: 50%;
166+
167+
@media (max-width: 769px) {
168+
width: 30%;
169+
}
170+
`;
171+
172+
export const ContactSectionDetails = styled.p`
173+
width: 50%;
174+
175+
& a {
176+
color: ${prop('logoColor')};
177+
&:hover {
178+
text-decoration: underline;
179+
}
180+
}
181+
182+
@media (max-width: 769px) {
183+
width: 70%;
184+
}
185+
`;
186+
187+
export const Footer = styled.div`
188+
border-top: 0.1rem dashed;
189+
padding-right: ${remSize(20)};
190+
padding-bottom: ${remSize(70)};
191+
width: 100%;
192+
font-size: ${remSize(16)};
193+
194+
& div {
195+
display: flex;
196+
flex-wrap: wrap;
197+
width: 100%;
198+
}
199+
200+
& a {
201+
padding-top: ${remSize(20)};
202+
padding-right: 9.5%;
203+
color: ${prop('logoColor')};
204+
&:hover {
205+
text-decoration: underline;
206+
}
207+
}
208+
209+
& p {
210+
padding-top: ${remSize(20)};
211+
padding-right: 9.5%;
212+
}
213+
214+
@media (max-width: 770px) {
215+
flex-direction: column;
216+
padding-left: ${remSize(20)};
217+
padding-right: ${remSize(20)};
218+
}
219+
220+
@media (max-width: 550px) {
221+
padding-left: 0;
222+
223+
& div {
224+
display: grid;
225+
}
226+
}
227+
`;

0 commit comments

Comments
 (0)