-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
112 lines (96 loc) · 2.27 KB
/
style.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
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "poppins", "sans-serif";
}
main {
height: 100vh;
width: 100%;
overflow-x: hidden;
perspective: 10px;
}
.container {
position: relative;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
transform-style: preserve-3d;
z-index: -1;
}
.container img {
position: absolute;
height: 100%;
width: 100%;
object-fit: cover;
z-index: -1;
}
.container h1 {
position: absolute;
top: 3rem;
color: #fff;
left: 50%;
transform: translateX(-50%);
text-transform: uppercase;
font-size: 10rem;
font-weight: 700;
text-shadow: 0 0 2px black;
}
section {
background: rgb(45, 45, 45);
color: #fff;
padding: 5rem 0px;
}
section h2 {
font-size: 5rem;
padding: 0 10rem;
}
.text {
font-size: 1.5rem;
padding: 0 10rem;
margin: 5rem 0;
}
.bg1 {
background-image: url(image/Solar\ Panels1.jpg);
}
.bg2 {
background-image: url(image/wind\ turbine\ 0.png);
}
.bg3 {
background-image: url(image/Pellet\ Heaters.jpg);
}
.bg4 {
background-image: url(image/Rain-Water-Harvesting-1-new.jpg);
}
.bg5 {
background-image: url(image/Biomass\ Stoves\ 3.jpg);
}
.bg6 {
background-image: url(image/Geothermal-Heat-Pumps-.jpg);
}
.bg7 {
background-image: url(image/hydroelectric\ g\ 0.png);
}
.box {
height: 500px;
width: 100%;
background-size: cover;
background-position: center;
background-attachment: fixed;
position: relative;
}
.box h4 {
font-size: 3.5rem;
color: black;
font-weight: 600;
text-transform: uppercase;
background-color: white;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 0 20px;
}