Skip to content

Commit 21db9d1

Browse files
committed
add paypal
1 parent 63191c9 commit 21db9d1

11 files changed

Lines changed: 901 additions & 326 deletions

File tree

src/app/components/ai/ai.component.css

Lines changed: 165 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -61,30 +61,141 @@
6161
opacity: 0.9;
6262
}
6363

64-
.ai-section {
64+
.page-content {
6565
padding: 20px 0;
66-
position: relative;
66+
background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--green-bg) 50%, var(--bg-secondary) 100%);
67+
min-height: calc(100vh - 400px);
6768
}
6869

69-
.ai-section:nth-child(even) {
70-
background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--green-bg) 50%, var(--bg-secondary) 100%);
70+
.content-layout {
71+
display: flex;
72+
gap: 24px;
73+
align-items: flex-start;
7174
}
7275

73-
.section-header {
74-
text-align: center;
75-
margin-bottom: 40px;
76+
/* Left Sidebar - Filters */
77+
.filter-sidebar {
78+
width: 280px;
79+
flex-shrink: 0;
80+
position: sticky;
81+
top: 20px;
7682
}
7783

78-
.section-title {
79-
font-size: 36px;
80-
font-weight: 700;
81-
margin-bottom: 12px;
84+
.filter-section,
85+
.search-section {
86+
background: var(--bg-primary);
87+
border: 2px solid var(--border-color);
88+
border-radius: 16px;
89+
padding: 20px;
90+
}
91+
92+
.search-section {
93+
margin-bottom: 16px !important;
94+
}
95+
96+
.filter-section {
97+
margin-bottom: 0;
98+
}
99+
100+
.filter-title {
101+
font-size: 16px;
102+
font-weight: 600;
103+
color: var(--text-primary);
104+
margin-bottom: 16px;
105+
padding-bottom: 12px;
106+
border-bottom: 2px solid var(--border-color);
107+
}
108+
109+
.filter-list {
110+
display: flex;
111+
flex-direction: column;
112+
gap: 8px;
113+
}
114+
115+
.filter-tab {
116+
width: 100%;
117+
padding: 12px 16px;
118+
background: var(--bg-secondary);
119+
border: 2px solid var(--border-color);
120+
border-radius: 12px;
121+
font-size: 14px;
122+
font-weight: 500;
123+
color: var(--text-primary);
124+
cursor: pointer;
125+
transition: all 0.3s ease;
126+
display: flex;
127+
align-items: center;
128+
justify-content: space-between;
129+
text-align: left;
130+
}
131+
132+
.filter-tab:hover {
133+
border-color: var(--green-color);
134+
color: var(--green-color);
135+
background: var(--bg-primary);
136+
}
137+
138+
.filter-tab.active {
139+
background: var(--green-color);
140+
border-color: var(--green-color);
141+
color: white;
142+
}
143+
144+
.filter-label {
145+
flex: 1;
146+
}
147+
148+
.count-badge {
149+
font-size: 12px;
150+
font-weight: 600;
151+
opacity: 0.8;
152+
background: rgba(255, 255, 255, 0.2);
153+
padding: 2px 8px;
154+
border-radius: 10px;
155+
}
156+
157+
.filter-tab.active .count-badge {
158+
opacity: 1;
159+
background: rgba(255, 255, 255, 0.3);
160+
}
161+
162+
.search-box {
163+
position: relative;
164+
width: 100%;
165+
}
166+
167+
.search-input {
168+
width: 100%;
169+
padding: 10px 40px 10px 16px;
170+
border: 2px solid var(--border-color);
171+
border-radius: 12px;
172+
font-size: 14px;
173+
background: var(--bg-secondary);
82174
color: var(--text-primary);
175+
transition: all 0.3s ease;
176+
box-sizing: border-box;
177+
}
178+
179+
.search-input:focus {
180+
outline: none;
181+
border-color: var(--green-color);
182+
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
183+
background: var(--bg-primary);
83184
}
84185

85-
.section-description {
186+
.search-icon {
187+
position: absolute;
188+
right: 16px;
189+
top: 50%;
190+
transform: translateY(-50%);
86191
font-size: 18px;
87-
color: var(--text-secondary);
192+
pointer-events: none;
193+
}
194+
195+
/* Right Content - AI Items Grid */
196+
.content-main {
197+
flex: 1;
198+
min-width: 0;
88199
}
89200

90201
.ai-grid {
@@ -158,17 +269,12 @@
158269

159270
.ai-meta {
160271
display: flex;
161-
justify-content: space-between;
272+
justify-content: center;
162273
align-items: center;
163274
padding-top: 16px;
164275
border-top: 1px solid var(--border-color);
165276
}
166277

167-
.ai-date {
168-
font-size: 12px;
169-
color: var(--text-secondary);
170-
}
171-
172278
.ai-link {
173279
color: var(--green-color);
174280
font-weight: 500;
@@ -182,6 +288,34 @@
182288
transform: translateX(4px);
183289
}
184290

291+
.empty-state {
292+
text-align: center;
293+
padding: 60px 20px;
294+
color: var(--text-secondary);
295+
font-size: 16px;
296+
}
297+
298+
@media (max-width: 1024px) {
299+
.content-layout {
300+
flex-direction: column;
301+
}
302+
303+
.filter-sidebar {
304+
width: 100%;
305+
position: static;
306+
}
307+
308+
.filter-list {
309+
flex-direction: row;
310+
flex-wrap: wrap;
311+
}
312+
313+
.filter-tab {
314+
flex: 1;
315+
min-width: 120px;
316+
}
317+
}
318+
185319
@media (max-width: 768px) {
186320
.hero-title {
187321
font-size: 32px;
@@ -192,8 +326,18 @@
192326
.hero-description {
193327
font-size: 16px;
194328
}
195-
.section-title {
196-
font-size: 28px;
329+
.content-layout {
330+
gap: 16px;
331+
}
332+
.filter-section,
333+
.search-section {
334+
padding: 16px;
335+
}
336+
.filter-list {
337+
flex-direction: column;
338+
}
339+
.filter-tab {
340+
width: 100%;
197341
}
198342
.ai-grid {
199343
grid-template-columns: 1fr;

0 commit comments

Comments
 (0)