forked from devsonket/devsonket.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDescription.js
More file actions
38 lines (35 loc) · 810 Bytes
/
Copy pathDescription.js
File metadata and controls
38 lines (35 loc) · 810 Bytes
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
import React from "react"
import styled from "@emotion/styled"
const DescriptionContainer = styled.div`
text-align: center;
h1 {
margin: 0;
font-size: 72px;
@media (max-width: 768px) {
font-size: 42px;
}
color: ${props =>
props.islightcolor === "true"
? `var(--accentwhite)`
: `var(--accentdark)`};
}
p {
font-size: 22px;
@media (max-width: 768px) {
font-size: 18px;
}
color: ${props =>
props.islightcolor === "true"
? `var(--accentwhite)`
: `var(--accentdark)`};
}
`
const Description = ({ title, description, islightcolor }) => {
return (
<DescriptionContainer islightcolor={islightcolor}>
<h1>{title}</h1>
<p>{description}</p>
</DescriptionContainer>
)
}
export { Description }