-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProjectCard.module.css
More file actions
112 lines (97 loc) · 1.74 KB
/
ProjectCard.module.css
File metadata and controls
112 lines (97 loc) · 1.74 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
111
112
.card {
height: 100%;
position: relative;
display: flex;
flex-direction: column;
border-radius: 0.75rem;
overflow: hidden;
background: #111827;
box-shadow: 0 4px 12px rgba(255, 255, 255, 0.08);
transition: transform 200ms ease, box-shadow 200ms ease;
}
.card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.starred {
border: 3px solid gold;
}
.image {
width: 100%;
aspect-ratio: 4 / 3;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
}
/* bottom panel */
.content {
padding: 1rem;
background: #0f172a;
display: flex;
flex-direction: column;
gap: 0.75rem;
white-space: pre-line;
flex: 1;
}
.title {
margin: 0;
font-size: 1.8rem;
font-weight: 600;
color: var(--text-light);
}
.description {
margin: 0;
font-size: 0.9rem;
line-height: 1.4;
color: var(--text-light);
flex: 1;
white-space: pre-line;
}
.icons {
display: flex;
gap: 1rem;
margin-top: auto;
}
.icons svg {
width: 1.75rem;
height: 1.75rem;
}
.icons a {
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--text-light);
transition: color 150ms ease, transform 150ms ease;
}
.icons a:hover {
transform: translateY(-2px);
}
.star {
position: absolute;
top: 0.5rem;
right: 0.5rem;
font-size: 1.4rem;
color: gold;
text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
pointer-events: none;
}
.readMore {
background: none;
border: none;
color: var(--accent);
font-size: 0.9rem;
font-weight: 600;
margin-left: 0.25rem;
cursor: pointer;
padding: 0;
text-decoration: underline;
}
.readMore:hover {
opacity: 0.8;
}
/* tablet / small-desktop */
@media (max-width: 768px) {
.title {
font-size: 1.5rem;
}
}