-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
84 lines (75 loc) · 1.56 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
78
79
80
81
82
83
84
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f8f9fa;
color: #333;
}
.product-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
padding: 20px;
justify-content: center;
}
.product-card {
text-decoration: none;
color: inherit;
display: flex;
flex-direction: column;
align-items: center;
border: 1px solid #ddd;
border-radius: 10px;
overflow: hidden;
width: 200px;
background-color: #fff;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.2s, box-shadow 0.2s;
}
.product-card img {
width: 100%;
height: 150px;
object-fit: cover;
border-bottom: 1px solid #ddd;
}
.product-card h3 {
margin: 10px 0 5px;
font-size: 18px;
text-align: center;
}
.product-card p {
font-size: 16px;
color: #666;
margin-bottom: 10px;
}
.product-card:hover {
transform: scale(1.05);
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}
.title {
text-align: center;
margin-bottom: 20px;
font-size: 28px;
font-weight: bold;
color: #333;
background-color: #f8f9fa;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: background-color 0.2s, box-shadow 0.2s;
}
.add-btn {
display: block;
margin: 20px auto;
padding: 10px 20px;
font-size: 16px;
background-color: #007bff;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.2s;
}
.add-btn:hover {
background-color: #0056b3;
}