-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
77 lines (77 loc) · 1.37 KB
/
styles.css
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
/* styles.css */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
min-height: 100vh;
background-color: #f5f5f5;
}
header {
background: linear-gradient(45deg, #6a11cb, #2575fc);
color: #fff;
padding: 1rem;
text-align: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
position: relative;
}
nav ul {
list-style: none;
padding: 0;
}
nav ul li {
display: inline;
margin: 0 1rem;
}
header .logo {
position: absolute;
top: 10px;
right: 10px;
width: 80px;
height: 80px;
}
main {
flex: 1;
padding: 2rem;
animation: fadeIn 2s ease-in-out;
}
section {
margin-bottom: 2rem;
}
footer {
background: linear-gradient(45deg, #6a11cb, #2575fc);
color: #fff;
text-align: center;
padding: 1rem;
position: relative;
bottom: 0;
width: 100%;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.product {
border: 1px solid #ccc;
padding: 1rem;
margin: 1rem 0;
text-align: center;
}
.product img {
max-width: 100px;
}
.cart-item {
border-bottom: 1px solid #ccc;
padding: 0.5rem 0;
display: flex;
justify-content: space-between;
align-items: center;
}
.cart-item button {
background-color: #ff4d4d;
color: white;
border: none;
padding: 0.5rem;
cursor: pointer;
}