-
Notifications
You must be signed in to change notification settings - Fork 0
/
skills.css
165 lines (143 loc) · 3.05 KB
/
skills.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
.header {
position: fixed;
top: 0;
left: 0;
width: 100%;
padding: 1%;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 100;
}
.header::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url(darkgray.jpg) no-repeat center center;
background-size: cover;
opacity: 0.4;
z-index: -1;
}
body {
min-height: 100vh;
background: url(background2.jpg) no-repeat;
background-size: cover;
background-position: center;
}
.navbar {
display: flex;
margin-left: auto;
}
.navbar a {
position: relative;
font-size: 15px;
font-family: "audiowide", 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
font-weight: 500;
margin-left: 20px;
color: azure;
text-decoration: none;
}
.navbar a::before {
content: '';
position: absolute;
top: 100%;
left: 0;
width: 0%;
height: 2px;
background-color: white;
transition: 0.3s;
}
.navbar a:hover::before {
width: 100%;
}
.skills-section {
text-align: center;
padding: 100px 0;
}
.skills-title {
margin-bottom: 50px;
}
.skills-title h1 {
font-size: 2.5em;
color: #b8ecf9;
margin-bottom: 10px;
}
.skills-title h2 {
font-size: 1.5em;
color: #d6d6f7;
}
.skills-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}
.skill-card {
position: relative;
border-radius: 8px;
overflow: hidden;
transition: transform 0.3s, box-shadow 0.3s;
text-align: center;
}
.skill-card img {
width: 100%;
height: 100%;
object-fit: cover;
transition: opacity 0.3s;
}
.skill-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.1); /* Semi-transparent black background */
opacity: 0;
display: flex;
justify-content: center;
align-items: center;
border-radius: 8px;
transition: opacity 0.3s;
}
.skill-details {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 1;
color: white;
opacity: 0;
transition: opacity 0.3s;
text-align: center;
padding: 20px;
border-radius: 8px;
background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
}
.skill-details h3 {
font-size: 1.5em;
margin-bottom: 10px;
}
.skill-details p {
font-size: 1em;
}
.skill-card:hover {
transform: scale(1.1); /* Enlarge card on hover */
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Example of box-shadow on hover */
}
.skill-card:hover img {
opacity: 0.8; /* Reduce opacity of image on hover */
}
.skill-card:hover .skill-overlay {
opacity: 1; /* Show overlay on hover */
}
.skill-card:hover .skill-details {
opacity: 1; /* Show details on hover */
}