-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.css
More file actions
104 lines (89 loc) · 2.56 KB
/
App.css
File metadata and controls
104 lines (89 loc) · 2.56 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
/* src/App.css */
/* --- Font Import (if not already present) --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Roboto+Mono:wght@400;500&display=swap');
/* Animated Gradient Background */
body {
margin: 0;
/* Using Poppins for a modern, friendly feel */
font-family: 'Poppins', sans-serif;
color: var(--text-color);
overflow-x: hidden; /* Prevent horizontal scroll due to animation */
/* Gradient background for body */
background: linear-gradient(135deg, #FF6B6B, #FFD166, #06D6A0, #118AB2, #073B4C);
background-size: 400% 400%; /* Make gradient larger than viewport for animation */
animation: gradientAnimation 18s ease infinite alternate; /* Slower, smoother animation */
}
/* Keyframe animation for the gradient */
@keyframes gradientAnimation {
0% { background-position: 0% 50%; }
100% { background-position: 100% 50%; } /* Changed to go full range */
}
.App {
text-align: center;
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* --- Header Styling --- */
.App-header {
background-color: var(--primary-color); /* Use primary color for header */
color: white;
padding: 30px 20px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Stronger, more defined shadow */
margin-bottom: 40px; /* More space below header */
border-bottom-left-radius: 25px;
border-bottom-right-radius: 25px;
position: sticky;
top: 0;
z-index: 1000;
text-transform: uppercase; /* Make header text uppercase */
letter-spacing: 2px; /* Add letter spacing */
}
.App-header h1 {
font-size: 3.2em; /* Larger header font */
margin: 0;
text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4); /* More pronounced text shadow */
font-weight: 700; /* Bolder font */
}
/* --- Main content area --- */
main {
flex-grow: 1;
display: flex;
flex-direction: column;
align-items: center;
padding: 30px 20px;
}
.content-section {
max-width: 900px;
width: 100%;
margin-bottom: 40px;
}
/* --- Alerts (Success/Error Messages) --- */
.alert-success, .alert-error {
padding: 12px 20px;
border-radius: 8px;
margin-bottom: 20px;
font-weight: 600;
text-align: center;
animation: fadeIn 0.5s ease-out;
}
.alert-success {
background-color: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.alert-error {
background-color: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}
/* Responsive adjustments */
@media (max-width: 768px) {
.App-header h1 {
font-size: 2.2em;
}
}