-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcs.css
More file actions
112 lines (94 loc) · 1.68 KB
/
cs.css
File metadata and controls
112 lines (94 loc) · 1.68 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: #f0f2f5;
color: #1a1a1a;
min-height: 100vh;
padding: 2rem;
}
.container {
max-width: 800px;
margin: 0 auto;
}
h1 {
text-align: center;
margin-bottom: 2rem;
color: #2563eb;
}
.search-container {
display: flex;
gap: 1rem;
margin-bottom: 2rem;
}
input {
flex: 1;
padding: 0.75rem 1rem;
border: 1px solid #e5e7eb;
border-radius: 0.5rem;
font-size: 1rem;
}
button {
padding: 0.75rem 1.5rem;
background: #2563eb;
color: white;
border: none;
border-radius: 0.5rem;
cursor: pointer;
font-weight: 600;
}
button:hover {
background: #1d4ed8;
}
.weather-card {
background: white;
border-radius: 1rem;
padding: 2rem;
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
opacity: 0;
transition: opacity 0.5s ease-in-out;
}
.weather-card.visible {
opacity: 1;
}
.weather-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}
.city-name {
font-size: 1.5rem;
font-weight: 600;
}
.temperature {
font-size: 2.5rem;
font-weight: 700;
}
.weather-details {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 1.5rem;
}
.weather-detail {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.detail-label {
font-size: 0.875rem;
color: #6b7280;
}
.detail-value {
font-size: 1.125rem;
font-weight: 600;
}
.error-message {
color: #dc2626;
text-align: center;
margin-top: 1rem;
display: none;
}