-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmidBox.tsx
68 lines (53 loc) · 1.28 KB
/
midBox.tsx
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
import { styled } from '@styled';
import { AnimatedImageVertical } from '@components/image';
const IndexMidBox: React.FC = () => {
return (
<MidBox>
<AnimatedImageVertical
className="header-img"
src="/assets/img/titanwater.webp"
alt="Saturn Moon Titan"
width={600}
height={600}
/>
<TextBox>
<p>
What is there beyond our own Earth, and we do get to know much more
about this universe. But, still, there is a lot of mystery,
particularly about extraterrestrial life.
</p>
<p>
Journey to distant planets and moons where we will explore how
potential alien life may look like, nature and their hidden secrets.
</p>
</TextBox>
</MidBox>
);
};
export default IndexMidBox;
const MidBox = styled('div', {
width: '100%',
padding: '10rem 5rem',
display: 'flex',
justifyContent: 'center',
gap: '10rem',
'@tablet': {
flexDirection: 'column',
},
'@laptop': {
gap: '5rem',
},
});
const TextBox = styled('div', {
display: 'flex',
flexDirection: 'column',
width: '50rem',
padding: '8rem 0',
fontFamily: '$modernist',
fontSize: '2.2rem',
color: '#383838',
gap: '10rem',
'@mobile': {
width: '40rem',
},
});