-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
125 lines (108 loc) · 2.48 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
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
113
114
115
116
117
118
119
120
121
122
123
124
125
body {
font-family: 'Roboto', sans-serif;
margin: 0;
padding: 0;
}
header {
background-color: #333;
color: #fff;
padding: 10px;
text-align: center;
opacity: 0;
animation: fade-in 0.5s ease-in-out forwards;
}
@keyframes fade-in {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
}
nav ul li {
display: inline;
margin-right: 10px; /* Increase the value for more spacing */
}
nav ul li a {
color: #fff;
display: inline-block;
padding: 10px;
text-decoration: none;
transition: all 0.3s ease;
}
nav ul li a:hover {
background-color: #555;
border-radius: 5px;
}
.container {
margin: 20px auto;
text-align: left;
max-width: 800px; /* Adjust the value to your desired width */
padding: 0 20px; /* Add padding to the container */
}
h1 {
color: #333;
}
.product {
border-radius: 10px;
background-color: #f9f9f9;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
padding: 20px;
margin-bottom: 40px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
max-width: 800px; /* Adjust the value to your desired width */
margin-left: auto;
margin-right: auto;
opacity: 0;
transform: translateY(20px);
animation: slide-in 0.5s ease-out forwards;
transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
}
.product:nth-child(even) {
margin-left: auto; /* Align even-numbered products to the right */
margin-right: 0;
}
.product:nth-child(odd) {
margin-left: 0; /* Align odd-numbered products to the left */
margin-right: auto;
}
.product a {
text-decoration: none;
color: inherit;
}
.product:hover {
transform: scale(1.05);
box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.2);
opacity: 1;
}
.fade-in {
animation: fade-in 0.5s ease-out forwards;
}
@keyframes fade-in {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.product-image {
max-width: 200px;
max-height: 150px;
width: auto;
height: auto;
}