-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhotdeals.css
More file actions
152 lines (131 loc) · 2.87 KB
/
Copy pathhotdeals.css
File metadata and controls
152 lines (131 loc) · 2.87 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/* General Styles */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Roboto', sans-serif;
background-color: #f9f9f9;
}
/* Header Styles */
header {
background-color: #4CAF50;
color: white;
padding: 20px;
text-align: center;
position: relative;
z-index: 1000;
}
/* Navigation Bar Styles */
.side-nav {
background-color: #333;
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center; /* Vertically center the items */
height: 50px; /* Fixed height for the nav bar */
width: 100%;
position: sticky; /* Stick the nav bar to the top */
top: 0; /* Offset from the top */
z-index: 1000;
padding: 0 10px; /* Added horizontal padding */
}
.side-nav ul {
display: flex;
list-style: none;
padding: 0;
margin: 0;
width: 100%;
justify-content: space-around; /* Space items evenly */
}
.side-nav ul li {
margin: 0; /* Removed margin to fit within height */
text-align: center;
}
.side-nav ul li a img {
width: 40px; /* Adjust size as needed */
height: auto;
display: block;
}
/* Hot Deals Section */
.hot-deals {
padding: 40px 0;
}
.section-title {
font-size: 2rem;
margin-bottom: 20px;
text-align: center;
color: #333;
}
/* Deal Cards */
.deal-card {
position: relative;
perspective: 1000px; /* Enable 3D perspective */
}
.deal-card .deal-image {
width: 100%;
border-radius: 10px;
transition: transform 0.5s;
}
.deal-card:hover .deal-image {
transform: rotateY(10deg) rotateX(10deg); /* 3D Effect */
}
.deal-info {
padding: 15px;
background: #fff;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
opacity: 0;
transition: opacity 0.3s, transform 0.3s;
transform: translateZ(50px);
}
.deal-card:hover .deal-info {
opacity: 1;
transform: translateZ(0);
}
.deal-title {
font-size: 1.25rem;
color: #333;
}
.deal-price {
font-size: 1.5rem;
color: #4CAF50;
}
.deal-discount {
font-size: 1rem;
color: red;
}
/* Responsive Design */
@media (max-width: 768px) {
.side-nav {
flex-direction: row; /* Keep horizontal layout for mobile view */
padding: 0 10px;
height: 50px; /* Ensure consistent height */
}
.side-nav ul {
display: flex; /* Keep horizontal layout for mobile */
flex-direction: row;
justify-content: space-around;
}
.side-nav ul li {
margin: 0 10px; /* Reduced spacing for mobile view */
}
}
@media (max-width: 480px) {
.side-nav ul li a img {
width: 30px; /* Adjust icon size for mobile view */
}
.filter-section {
padding: 15px;
}
}