-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
136 lines (115 loc) · 2.88 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
* {
margin: 0;
padding: 0;
font-family: "Roboto", sans-serif;
}
.container {
width: 100%;
height: 100vh;
/* cntrols the brightness of the image */
background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
url("https://images.unsplash.com/photo-1542114740389-9b46fb1e5be7?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1489&q=80");
background-position: center;
/* cover will spread the image */
background-size: cover;
padding-left: 8%;
padding-right: 8%;
box-sizing: border-box;
}
/* until above everything shows veritcally */
.navbar {
height: 12%;
display: flex;
align-items: center;
}
.logo {
width: 60px;
cursor: pointer;
}
.menu-icon {
width: 40px;
cursor: pointer;
margin-left: 40px;
}
/* now directly styling the elements */
nav {
flex: 1;
text-align: right;
}
nav ul li {
/* no numebers or dots needed */
list-style: none;
display: inline-block;
margin-left: 60px;
}
nav ul li a {
/* a contains text so we will style the text */
text-decoration: none;
color: #fff;
font-size: 23px;
}
.row {
display: flex;
height: 88%;
align-items: center;
}
h1 {
color: #fff;
font-size: 100px;
}
p {
color: #fff;
font-size: 20px;
line-height: 25px;
}
button {
width: 180px;
color: #000;
font-size: 18px;
padding: 12px 0;
background: #fff;
border: 0;
border-radius: 20px;
outline: none;
margin-top: 30px;
cursor: pointer;
}
.card {
width: 1000px;
height: 430px;
display: inline-block;
border-radius: 10px;
padding: 15px 25px;
box-sizing: border-box;
cursor: pointer;
margin: 10px 15px;
background-position: center;
background-size: cover;
background-image: url("https://images.unsplash.com/photo-1572877693551-e1345034b1d6?ixlib=rb-1.2.1&ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&auto=format&fit=crop&w=634&q=80");
transition: transform 0.5;
}
.card1 {
background-image: url("https://images.unsplash.com/photo-1594221520118-3c951118162f?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=673&q=80");
}
.card2 {
background-image: url("https://images.unsplash.com/photo-1516496636080-14fb876e029d?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=634&q=80");
}
.card3 {
background-image: url("https://images.unsplash.com/photo-1555947970-15e7a8a0bb73?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1489&q=80");
}
.card4 {
background-image: url("https://images.unsplash.com/photo-1587048207283-5fcf51d1fb9b?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80");
}
.card:hover {
transform: translateY(-10px);
}
h5 {
color: #fff;
text-shadow: 0 0 5px;
font-size: 25px;
margin-bottom: 10px;
}
.card p {
text-shadow: 0 0 15px #000;
font-size: 20px;
}