-
Notifications
You must be signed in to change notification settings - Fork 399
Expand file tree
/
Copy pathpromotions.css
More file actions
172 lines (149 loc) · 3.78 KB
/
Copy pathpromotions.css
File metadata and controls
172 lines (149 loc) · 3.78 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
/* Promotions page styles extracted and improved
- Header hero (light/dark)
- Promo grid and perk boxes
- Influencer form with accessible focus states
- Discount popup with gentle motion
- Responsive adjustments
*/
#promo-header {
background-image: url("images/banner/b_person.png");
width: 100%;
height: 48vh;
background-size: cover;
background-position: center;
display: flex;
justify-content: center;
align-items: flex-start;
text-align: left;
flex-direction: column;
padding: 28px 80px;
margin-top: 90px;
}
[data-theme="dark"] #promo-header {
background-image: linear-gradient(to right, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0)), url("images/banner/b_person.png");
}
#promo-header h2 {
color: var(--text-hero, #fff);
font-size: 48px;
font-weight: 800;
margin: 0 0 8px 0;
line-height: 1.03;
}
#promo-header p {
color: var(--text-hero-sub, rgba(255,255,255,0.9));
font-size: 18px;
font-weight: 500;
margin: 0;
}
.promo-container {
display: flex;
justify-content: space-between;
gap: 32px;
padding: 48px 80px;
}
.promo-details {
flex: 1.1;
}
.promo-details h3 {
font-size: 28px;
color: var(--accent);
margin-bottom: 15px;
}
.perk-box {
background: var(--card-bg);
border: 1px solid var(--border-color);
padding: 20px;
border-radius: 10px;
margin-bottom: 18px;
box-shadow: 0 6px 18px var(--shadow);
transition: transform 200ms ease, box-shadow 200ms ease;
}
.perk-box:hover {
transform: translateY(-6px);
box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}
.perk-box h4 {
color: var(--text-primary);
margin-bottom: 10px;
display: flex;
align-items: center;
gap: 10px;
}
.influencer-form {
flex: 0.95;
background: var(--card-bg);
padding: 30px;
border-radius: 12px;
border: 1px solid var(--border-color);
box-shadow: 0 8px 28px var(--shadow);
}
.influencer-form h3 {
margin-bottom: 18px;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input,
.form-group textarea {
width: 100%;
padding: 12px;
border: 1px solid var(--border-color);
border-radius: 8px;
outline: none;
background: var(--input-bg);
color: var(--text-primary);
transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}
.form-group input:focus,
.form-group textarea:focus {
border-color: var(--accent);
box-shadow: 0 8px 24px rgba(6,102,95,0.06);
transform: translateY(-1px);
}
/* Discount popup */
#discount-popup {
position: fixed;
bottom: 30px;
right: 30px;
background: var(--accent);
color: #fff;
padding: 18px;
border-radius: 10px;
box-shadow: 0 14px 40px rgba(0,0,0,0.25);
z-index: 1000;
display: none;
max-width: 320px;
animation: slideUp 520ms ease-out;
}
#discount-popup h4 { margin: 0 0 8px 0; font-size: 20px; }
#discount-popup .close-btn { position: absolute; top: 8px; right: 10px; cursor: pointer; font-size: 18px; }
#discount-popup h4,
#discount-popup p,
#discount-popup i {
color: #fff;
}
#discount-popup .copy-code {
background: #fff;
color: var(--accent);
}
.copy-code {
background: #fff;
color: var(--accent);
padding: 8px 12px;
border-radius: 6px;
display: inline-block;
margin-top: 10px;
font-weight: 700;
cursor: pointer;
letter-spacing: 1px;
}
@keyframes slideUp {
from { transform: translateY(40px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
/* Small screens */
@media (max-width: 799px) {
#promo-header { padding: 22px; text-align: center; height: 40vh; background-image: linear-gradient(rgba(247,181,56,0.85), rgba(247,181,56,0.85)), url('images/banner/b_person.png'); }
.promo-container { flex-direction: column; padding: 20px; }
.promo-details, .influencer-form { width: 100%; }
#promo-header h2 { font-size: 34px; }
}