Skip to content

Commit cdd8abe

Browse files
Donation box css
Donation box css
1 parent 4368275 commit cdd8abe

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed

website/src/css/DonationBox.css

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
.modern-donation-box {
2+
background-color: #f4f7f6;
3+
border-left: 6px solid #01A299;
4+
padding: 1em 25px;
5+
margin: 2em 0;
6+
display: flex;
7+
align-items: center;
8+
border-radius: 8px;
9+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
10+
font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
11+
transition: all 0.3s ease;
12+
}
13+
14+
.donation-icon {
15+
color: #01A299;
16+
font-size: 1.75em;
17+
margin-right: 1em;
18+
animation: bounce 2s infinite;
19+
}
20+
21+
@keyframes bounce {
22+
0%, 100% { transform: translateY(0); }
23+
50% { transform: translateY(-5px); }
24+
}
25+
26+
.donation-content {
27+
flex-grow: 1;
28+
font-size: 1em;
29+
color: #333;
30+
}
31+
32+
.donation-link {
33+
background-color: #28303A;
34+
color: white;
35+
padding: 0.75em 1.5em;
36+
border-radius: 30px;
37+
text-decoration: none;
38+
font-weight: bold;
39+
margin-left: 0.5em;
40+
transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
41+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
42+
display: inline-block;
43+
position: relative;
44+
}
45+
46+
.donation-link:hover, .donation-link:focus {
47+
background-color: #01A299;
48+
transform: translateY(-3px);
49+
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
50+
}
51+
52+
@media (max-width: 768px) {
53+
.modern-donation-box {
54+
flex-direction: column;
55+
text-align: center;
56+
padding: 1.5em;
57+
border-left: none;
58+
border-top: 4px solid #01A299;
59+
}
60+
61+
.donation-icon {
62+
margin-bottom: 1em;
63+
font-size: 2em;
64+
}
65+
66+
.donation-content {
67+
font-size: 0.9em;
68+
margin-bottom: 1em;
69+
}
70+
71+
.donation-link {
72+
padding: 0.75em 1em;
73+
border-radius: 20px;
74+
}
75+
76+
.modern-donation-box * {
77+
font-weight: bold;
78+
}
79+
}

0 commit comments

Comments
 (0)