-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
106 lines (96 loc) · 2.02 KB
/
Copy pathstyle.css
File metadata and controls
106 lines (96 loc) · 2.02 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
/* Basic Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Background and Text Styling */
body {
background: linear-gradient(45deg, #000000, #1a1a1a); /* Black gradient */
color: white;
font-family: Arial, sans-serif;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
h1 {
color: #32CD32; /* Maintxt in green */
text-align: center;
margin-bottom: 20px;
font-size: 2.5em;
}
/* Project Container */
.project-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
max-width: 1200px;
}
/* Card Styling */
.project-card {
position: relative;
width: 250px;
height: 350px;
overflow: hidden;
border-radius: 15px;
background: #222;
padding: 3px 5px;
color: #fff;
cursor: pointer;
transition: transform 0.3s ease, box-shadow 0.3s ease;
display: flex;
align-items: flex-end;
justify-content: center;
text-align: center;
}
.project-card img {
position: absolute;
width: 80%;
height: 80%;
object-fit: cover;
border-radius: 15px;
transition: filter 0.4s ease;
}
.project-card h2 {
position: relative;
z-index: 2;
font-size: 1.5em;
color: #32CD32; /* Green text */
margin: 10px 0;
background-color: rgba(0, 0, 0, 0.6);
padding: 10px;
border-radius: 10px;
opacity: 0.9;
}
/* Description Overlay */
.project-card .description {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 20px;
font-size: 1em;
color: #ddd;
background: rgba(0, 0, 0, 0.8);
opacity: 0;
transform: translateY(20px);
transition: opacity 0.4s ease, transform 0.4s ease;
border-radius: 0 0 15px 15px;
}
/* Hover Effects */
.project-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
h2{
display:none;
}
}
.project-card:hover img {
filter: blur(5px);
}
.project-card:hover .description {
opacity: 1;
transform: translateY(0);
}