Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
Homework83_M11
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ли Джен Сеп
Homework83_M11
Commits
2ba3b6ab
Commit
2ba3b6ab
authored
Dec 19, 2024
by
Ли Джен Сеп
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
удалил package-lock
parent
9a63e9ea
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
143 additions
and
164 deletions
+143
-164
InputField.tsx
frontend/src/app/components/InputField.tsx
+48
-51
page.tsx
frontend/src/app/page.tsx
+95
-113
No files found.
frontend/src/app/components/InputField.tsx
View file @
2ba3b6ab
...
@@ -40,10 +40,7 @@ export default function InputField({ name, value, onChange }: Props) {
...
@@ -40,10 +40,7 @@ export default function InputField({ name, value, onChange }: Props) {
</
Typography
>
</
Typography
>
</
Grid2
>
</
Grid2
>
<
Grid2
<
Grid2
size=
{
name
===
"Password"
?
6
:
8
}
sx=
{
{
"@media (max-width: 900px)"
:
{
width
:
"100%"
}
}
}
>
size=
{
name
===
"Password"
?
6
:
8
}
sx=
{
{
"@media (max-width: 900px)"
:
{
width
:
"100%"
}
}
}
>
<
TextField
<
TextField
fullWidth
fullWidth
multiline=
{
name
!==
"Password"
}
multiline=
{
name
!==
"Password"
}
...
...
frontend/src/app/page.tsx
View file @
2ba3b6ab
...
@@ -57,11 +57,7 @@ export default function Home() {
...
@@ -57,11 +57,7 @@ export default function Home() {
paddingY=
{
2
}
paddingY=
{
2
}
>
>
<
Grid2
container
direction=
"column"
spacing=
{
2
}
>
<
Grid2
container
direction=
"column"
spacing=
{
2
}
>
<
InputField
<
InputField
name=
"Decoded"
value=
{
formData
.
decoded
}
onChange=
{
onInputChangeHandler
}
/>
name=
"Decoded"
value=
{
formData
.
decoded
}
onChange=
{
onInputChangeHandler
}
/>
<
Grid2
<
Grid2
container
container
alignItems=
"center"
alignItems=
"center"
...
@@ -73,19 +69,11 @@ export default function Home() {
...
@@ -73,19 +69,11 @@ export default function Home() {
}
}
}
}
>
>
<
Grid2
size=
{
7
}
>
<
Grid2
size=
{
7
}
>
<
InputField
<
InputField
name=
"Password"
value=
{
formData
.
password
}
onChange=
{
onInputChangeHandler
}
/>
name=
"Password"
value=
{
formData
.
password
}
onChange=
{
onInputChangeHandler
}
/>
</
Grid2
>
</
Grid2
>
<
Grid2
container
justifyContent=
{
{}
}
>
<
Grid2
container
justifyContent=
{
{}
}
>
<
Grid2
>
<
Grid2
>
<
Button
<
Button
size=
"small"
variant=
"contained"
startIcon=
{
<
ArrowDownwardIcon
/>
}
>
size=
"small"
variant=
"contained"
startIcon=
{
<
ArrowDownwardIcon
/>
}
>
<
Typography
<
Typography
sx=
{
{
sx=
{
{
display
:
{
xs
:
"none"
,
md
:
"inline"
},
display
:
{
xs
:
"none"
,
md
:
"inline"
},
...
@@ -100,9 +88,7 @@ export default function Home() {
...
@@ -100,9 +88,7 @@ export default function Home() {
<
Button
<
Button
size=
"small"
size=
"small"
variant=
"contained"
variant=
"contained"
startIcon=
{
startIcon=
{
<
ArrowDownwardIcon
sx=
{
{
transform
:
"rotate(180deg)"
}
}
/>
}
<
ArrowDownwardIcon
sx=
{
{
transform
:
"rotate(180deg)"
}
}
/>
}
>
>
<
Typography
<
Typography
sx=
{
{
sx=
{
{
...
@@ -116,11 +102,7 @@ export default function Home() {
...
@@ -116,11 +102,7 @@ export default function Home() {
</
Grid2
>
</
Grid2
>
</
Grid2
>
</
Grid2
>
<
InputField
<
InputField
name=
"Encoded"
value=
{
formData
.
encoded
}
onChange=
{
onInputChangeHandler
}
/>
name=
"Encoded"
value=
{
formData
.
encoded
}
onChange=
{
onInputChangeHandler
}
/>
</
Grid2
>
</
Grid2
>
</
Box
>
</
Box
>
</
Container
>
</
Container
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment