-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.css
100 lines (81 loc) · 1.28 KB
/
home.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
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
background: url("background_img.jpg") no-repeat center center fixed;
background-size: cover;
}
.nav-wrapper {
padding: 20px;
display: flex;
justify-content: flex-end;
align-items: center;
}
ul {
display: flex;
list-style-type: none;
}
.logo {
margin-right: auto;
}
.nav li{
padding: 0 15px;
}
.nav li a{
text-decoration: none;
}
.nav li a:link{
color:white;
}
.nav li a:visited{
color:white;
}
.nav li a:hover{
color:skyblue;
}
.main-text{
text-align: center;
padding: 100px;
color: white;
}
.card {
width:300px;
background-color: white;
border-radius: 10px;
box-shadow: 0px 2px 20px gray;
overflow: hidden;
position: relative;
margin: 30px;
transition: 0.3s;
}
.card-banner img {
position: absolute;
width:100%;
height:230px;
object-fit: cover;
}
.card-body {
margin: 240px 15px 15px 15px;
}
.hashtag {
font-size: 12px;
color: cornflowerblue;
}
.title {
font-weight: 800;
font-size: 20px;
margin-bottom: 5px;
}
.desc {
font-size: 15px;
}
.card-wrapper {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.card:hover {
transform:translateY(-10px);
}