-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
110 lines (103 loc) · 1.83 KB
/
index.css
File metadata and controls
110 lines (103 loc) · 1.83 KB
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.titleContainer {
padding: 16px;
border-radius: 8px;
text-align: center;
justify-content: center;
color: aliceblue;
}
.titleContainer button {
padding: 12px 24px;
outline: none;
border: none;
border-radius: 4px;
background-color: darkgray;
color: white;
cursor: pointer;
margin-bottom: 4px;
}
.parentContainer {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
padding-bottom: 16px;
}
.cardContainer {
width: 60%;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-content: center;
margin-top: 16px;
}
.cardContainerItem {
align-items: center;
width: 20%;
height: 235px;
margin: 8px;
}
.cardContainerItem img {
height: 100%;
width: 100%;
object-fit: cover;
/* Animation */
transform: scale(0.95);
opacity: 0;
animation: scaleUp 0.6s ease-in-out forwards;
}
@keyframes scaleUp {
to {
transform: scale(1);
opacity: 1;
}
}
.cardContainerItem p {
display: none;
}
.removeimg img {
display: none;
}
.showText {
display: flex;
justify-content: center;
align-items: center;
}
.showText > p {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
width: 100%;
}
.showText > p > img {
display: block !important;
height: 100%;
width: 100%;
justify-content: center;
text-align: center;
align-items: center;
justify-items: center;
font-size: 48px;
object-fit: cover;
/* Animation */
opacity: 0;
transform: translateY(20px);
animation: slideIn 0.6s ease-out forwards;
}
@keyframes slideIn {
to {
opacity: 1;
transform: translateY(0);
}
}
.bgDiv {
background-image: url("./img/bg.jpeg");
background-size: cover; /* cover entire area */
background-position: center; /* center the image */
background-repeat: no-repeat;
}