@@ -18,6 +18,105 @@ const FaqSectionWrapper = styled.section`
1818 text-transform: capitalize;
1919 opacity: 0.8;
2020 }
21+
22+ .filter-controls {
23+ display: flex;
24+ justify-content: flex-start;
25+ align-items: center;
26+ margin-bottom: 1.5rem;
27+
28+ button {
29+ margin-right: 1rem;
30+ }
31+ }
32+
33+ .filter-title {
34+ color: ${ props => props . theme . primaryColor } ;
35+ font-weight: 500;
36+ margin-bottom: 1rem;
37+ padding-bottom: 0.5rem;
38+ text-align: center;
39+ }
40+
41+ .filter-group {
42+ margin-bottom: 1.5rem;
43+
44+ h3 {
45+ font-size: 1.2rem;
46+ margin-bottom: 1rem;
47+ color: ${ props => props . theme . primaryColor } ;
48+ }
49+ }
50+
51+ .filter-message {
52+ margin: 0.5rem 0;
53+ font-size: 0.9rem;
54+ font-style: italic;
55+ opacity: 0.8;
56+ }
57+ .filter-options {
58+ display: flex;
59+ flex-wrap: wrap;
60+ gap: 1rem;
61+ }
62+
63+ .filter-option {
64+ display: flex;
65+ align-items: center;
66+ margin-right: 1rem;
67+ margin-bottom: 0.5rem;
68+
69+ input[type="checkbox"] {
70+ margin-right: 0.5rem;
71+ cursor: pointer;
72+ accent-color: ${ props => props . theme . primaryColor } ;
73+ }
74+
75+ label {
76+ cursor: pointer;
77+ font-size: 0.9rem;
78+ }
79+ }
80+
81+ .filter-message {
82+ padding: 0.5rem;
83+ border-radius: 4px;
84+ }
85+
86+ .active-filters {
87+ margin-bottom: 1.5rem;
88+ padding: 0.75rem 1rem;
89+ background-color: ${ props => props . theme . secondaryLightColor } ;
90+ border-radius: 4px;
91+ border-left: 4px solid ${ props => props . theme . primaryColor } ;
92+
93+ p {
94+ margin: 0;
95+ font-size: 0.9rem;
96+
97+ strong {
98+ color: ${ props => props . theme . primaryColor } ;
99+ }
100+ }
101+ }
102+
103+ .no-results {
104+ text-align: center;
105+ padding: 3rem 1rem;
106+ background-color: ${ props => props . theme . secondaryLightColor } ;
107+ border-radius: 8px;
108+ margin-bottom: 2rem;
109+
110+ h3 {
111+ margin-bottom: 1rem;
112+ color: ${ props => props . theme . textColor } ;
113+ }
114+
115+ p {
116+ margin-bottom: 1rem;
117+ }
118+ }
119+
21120 .accordion__item + .accordion__item {
22121 border-color: transparent;
23122 }
@@ -96,6 +195,20 @@ const FaqSectionWrapper = styled.section`
96195 }
97196
98197 @media only screen and (max-width: 568px) {
198+ .filter-controls {
199+ flex-direction: column;
200+ align-items: flex-start;
201+
202+ button {
203+ margin-bottom: 0.75rem;
204+ width: 100%;
205+ }
206+ }
207+
208+ .filter-option {
209+ width: 100%;
210+ }
211+
99212 .section-title {
100213 text-align: center;
101214 }
@@ -116,4 +229,4 @@ const FaqSectionWrapper = styled.section`
116229 }
117230` ;
118231
119- export default FaqSectionWrapper ;
232+ export default FaqSectionWrapper ;
0 commit comments