Skip to content

Commit aa1054d

Browse files
author
Adithya Thejas
committed
component-fix
1 parent 31e190e commit aa1054d

22 files changed

+964
-105
lines changed

component/Button/Button.module.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
Button.button {
88
border: none;
9-
padding: $p-10 $p-20; // $p-10 $p-20
10-
border-radius: $p-5;
11-
font-size: $p-15; //$p-15
9+
padding: 10px 20px; // $p-10 $p-20
10+
border-radius: 5px;
11+
font-size: 15px; //$p-15
1212
cursor: pointer;
1313
display: flex;
1414
align-items: center;

component/Input/Input.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
border-width: 1px;
1616
display: flex;
1717
height: 2.5rem;
18-
width: 350rem;
18+
// width: 350rem;
1919
color: $input-text;
2020
&:focus {
2121
outline-width: 2px;

component/Input/Input.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ interface Props {
88
placeholder: string;
99
id: string;
1010
value?: string;
11+
size: string;
1112
}
1213

1314
function Input({
@@ -17,6 +18,7 @@ function Input({
1718
placeholder,
1819
id,
1920
value,
21+
size,
2022
}: Props): JSX.Element {
2123
// const className =
2224
// variant === "primary"
@@ -26,7 +28,7 @@ function Input({
2628
// : styles.error;
2729
return (
2830
<input
29-
className={styles["form-input"]}
31+
className={`${styles["form-input"]} ${size}`}
3032
onClick={onChange}
3133
disabled={disabled}
3234
type={type}

component/NavigationMenu/NavigationMenu.module.scss

Lines changed: 56 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,16 @@
5959
justify-content: center;
6060
width: 100vw;
6161
z-index: 1;
62-
border-color: hsl(214.3 31.8% 91.4%);
62+
//
6363
}
6464

6565
.navgation-menu-list {
6666
display: flex;
6767
justify-content: center;
68-
background-color: white;
68+
background-color: $navigation-background-secondary;
6969
padding: 4px;
7070
border-radius: 6px;
7171
list-style: none;
72-
// box-shadow: 0 2px 10px var(--blackA7);
7372
margin: 0;
7473
}
7574

@@ -80,23 +79,27 @@
8079
font-weight: 500;
8180
line-height: 1;
8281
border-radius: 4px;
82+
border: none;
8383
font-size: 15px;
84-
color: black;
84+
color: $navigation-text-primary;
8585
display: flex;
8686
align-items: center;
8787
justify-content: space-between;
88+
background-color: $navigation-background-secondary;
8889
gap: 2px;
89-
:focus {
90+
&:focus {
9091
outline: 0;
91-
box-shadow: 0 0 0 2px red;
9292
}
93-
:hover {
94-
background-color: gray;
93+
&:hover {
94+
background-color: $navigation-hover-primary;
9595
}
96-
:disabled {
96+
&:disabled {
9797
pointer-events: none;
9898
opacity: 0.5;
9999
}
100+
&[data-state="open"] > svg {
101+
transform: rotate(180deg);
102+
}
100103
.chevrondown {
101104
position: relative;
102105
margin-left: 0.25rem;
@@ -106,9 +109,6 @@
106109
width: 0.75rem;
107110
height: 0.75rem;
108111
top: 1px;
109-
&[data-state="open"] > svg {
110-
transform: rotate(180deg);
111-
}
112112
}
113113
}
114114

@@ -120,28 +120,28 @@
120120
line-height: 1;
121121
border-radius: 4px;
122122
font-size: 15px;
123-
color: black;
123+
color: $navigation-text-primary;
124124
display: block;
125125
text-decoration: none;
126126
font-size: 15px;
127127
line-height: 1;
128-
:focus {
128+
&:focus {
129129
outline: 0;
130-
box-shadow: 0 0 0 2px red;
131130
}
132-
:hover {
133-
background-color: gray;
131+
&:hover {
132+
background-color: $navigation-hover-primary;
134133
}
135134
}
136135

137136
.navigation-menu-content {
138137
//animation
139138
position: absolute;
140139
top: 0;
141-
left: 0;
142-
width: 100%;
140+
// left: 0;
141+
width: 25%;
143142
animation-duration: 250ms;
144143
animation-timing-function: ease;
144+
// background-color: red;
145145
&[data-motion="from-start"] {
146146
animation-name: enterFromLeft;
147147
}
@@ -165,22 +165,23 @@
165165
position: absolute;
166166
display: flex;
167167
justify-content: center;
168-
width: 100%;
168+
width: 40%;
169169
top: 100%;
170-
left: 0;
170+
// left: 0;
171171
perspective: 2000px;
172172
.navigation-menu-primitive-viewport {
173173
// animate. datastate,media
174+
border: 2px;
175+
border-style: solid;
176+
border-color: $navigation-border-primary; // #e2e8f0
174177
position: relative;
175178
transform-origin: top center;
176179
margin-top: 10px;
177180
width: 100%;
178-
background-color: white;
181+
background-color: $navigation-background-secondary;
179182
border-radius: 6px;
180183
overflow: hidden;
181-
box-shadow: hsl(206 22% 7% / 35%) 0px 10px 38px -10px,
182-
hsl(206 22% 7% / 20%) 0px 10px 20px -15px;
183-
height: var(--radix-navigation-menu-viewport-height);
184+
height: 300px;
184185
transition: width, height, 300ms ease;
185186
[data-state="open"] {
186187
animation: scaleIn 200ms ease;
@@ -212,10 +213,6 @@
212213
--transform-rotate: 45deg;
213214
width: 0.5rem;
214215
height: 0.5rem;
215-
border-top-left-radius: 0.125rem;
216-
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
217-
0 2px 4px -1px rgba(0, 0, 0, 0.06);
218-
top: 60%;
219216
}
220217
}
221218

@@ -240,9 +237,9 @@
240237
display: flex;
241238
justify-content: flex-end;
242239
flex-direction: column;
243-
width: 100%;
244-
height: 100%;
245-
background: linear-gradient(135deg, var(--purple9) 0%, var(--indigo9) 100%);
240+
width: 75%;
241+
height: 75%;
242+
background: $navigation-background-primary;
246243
border-radius: 6px;
247244
padding: 25px;
248245
text-decoration: none;
@@ -253,19 +250,21 @@
253250
.demo-menu-logo {
254251
width: 1.5rem;
255252
height: 1.5rem;
256-
.demo-menu-icons {
257-
color: white;
258-
font-size: 18px;
259-
font-weight: 500;
260-
line-height: 1.2;
261-
margin-top: 16px;
262-
margin-bottom: 7px;
263-
}
264-
.demo-menu-para {
265-
color: pink;
266-
font-size: 14px;
267-
line-height: 1.3;
268-
}
253+
color: $navigation-icon-color;
254+
padding-bottom: 10px;
255+
}
256+
.demo-menu-icons {
257+
font-size: 18px;
258+
font-weight: 500;
259+
line-height: 1.2;
260+
margin-top: 16px;
261+
margin-bottom: 7px;
262+
color: $navigation-text-secondary;
263+
}
264+
.demo-menu-para {
265+
color: $navigation-text-danger;
266+
font-size: 14px;
267+
line-height: 1.3;
269268
}
270269
}
271270

@@ -292,24 +291,27 @@
292291
outline: none;
293292
text-decoration: none;
294293
user-select: none;
295-
padding: 12px;
294+
padding: 3px;
296295
border-radius: 6px;
297296
font-size: 15px;
298297
line-height: 1;
299-
:focus {
300-
box-shadow: 0 0 0 2px violet;
301-
}
302-
:hover {
303-
background-color: red;
298+
flex-direction: column;
299+
justify-content: space-between;
300+
&:hover {
301+
background-color: $navigation-hover-primary;
302+
color: $navigation-text-primary;
304303
}
305304
.demo-menu-title {
306305
font-weight: 500;
307306
line-height: 1.2;
308-
margin-bottom: 5px;
309-
color: violet;
307+
margin-bottom: 3px;
308+
color: $navigation-text-secondary;
309+
&:hover {
310+
color: $navigation-text-primary;
311+
}
310312
}
311313
.demo-menu-children {
312-
color: yellow;
314+
color: $navigation-text-danger;
313315
line-height: 1.4;
314316
font-weight: initial;
315317
}

0 commit comments

Comments
 (0)