-
Notifications
You must be signed in to change notification settings - Fork 11
/
homepage.css
122 lines (84 loc) · 2.05 KB
/
homepage.css
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
@font-face {
font-family: 'abel';
src: url(../assets/Fonts/Abel-Regular.ttf);
}
#homepage-section{
background-image: url("../assets/img/bg-home.jpg");
background-repeat: no-repeat;
background-size: contain;
background-position: center;
color: #fff;
height: calc(100vh - 100px);
width: 100%;
background-color: #272121;
}
.homepage-text{
writing-mode: vertical-rl;
text-orientation: mixed;
position: absolute;
top: 50%;
right: -50px;
transform: translate(-60%, -60%);
text-align: right;
}
.homepage-text h1{
font-size: 3.5rem;
letter-spacing: .6rem;
}
.homepage-text h3{
letter-spacing: .2rem;
font-family: 'abel';
}
#rocket{
position: absolute;
top:-20%;
left: 40%;
transform: scaleX(-1) scale(0.4);
}
#button-homepage {
cursor: pointer;
position: absolute;
left: 48%;
bottom: 10%;
}
@media only screen
and (min-width : 50px)
and (max-width : 550px){
#homepage-section{
z-index: -10;
background-image: url("../assets/img/bg-homepage.jpeg");
background-repeat: no-repeat;
/* changed to top from bottom */
background-position: center bottom;
color: #fff;
height: calc(100vh - 100px);
width: 100%;
background-color: #272121;
position: relative;
}
.homepage-text{
writing-mode: unset;
text-orientation: unset;
display: block;
position: absolute;
top: 18%;
left:54%;
width: 80%;
margin: auto;
}
#rocket{
position: absolute;
top:2.25rem;
left: 0;
transform: scaleX(-1) scale(0.25);
margin: 0;
}
.homepage-text h1{
width: 100%;
font-size: 4.875rem;
font-weight: bold;
}
#button-homepage{
display: none;
}
}