Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
tripsent
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
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
Ли Джен Сеп
tripsent
Commits
bd5ec42a
Commit
bd5ec42a
authored
Jun 28, 2025
by
Ысқақов Жәнібек
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Модальное окно полностью функционирует
parent
8eb9f1bd
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
18 deletions
+56
-18
BackdropWindow.module.css
src/components/BackdropWindow/BackdropWindow.module.css
+5
-2
BackdropWindow.tsx
src/components/BackdropWindow/BackdropWindow.tsx
+21
-0
modalWindow.tsx
src/components/modalWindow/modalWindow.tsx
+0
-15
Home.tsx
src/pages/Home/Home.tsx
+30
-1
No files found.
src/components/
modalWindow/modal
Window.module.css
→
src/components/
BackdropWindow/Backdrop
Window.module.css
View file @
bd5ec42a
.modalWindow
{
.modalWindow
_bg
{
position
:
fixed
;
position
:
fixed
;
background-color
:
rgb
(
0
,
0
,
0
,
0.67
);
background-color
:
rgb
(
0
,
0
,
0
,
0.67
);
width
:
100%
;
width
:
100%
;
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
position
:
fixed
;
position
:
fixed
;
bottom
:
0
;
bottom
:
0
;
padding-bottom
:
150px
;
padding-bottom
:
150px
;
padding
:
8px
20px
25px
20px
;
display
:
flex
;
gap
:
17px
;
flex-direction
:
column
;
}
}
.modalWindow_hr
{
.modalWindow_hr
{
...
@@ -24,5 +28,4 @@
...
@@ -24,5 +28,4 @@
width
:
2vw
;
width
:
2vw
;
left
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
);
transform
:
translate
(
-50%
);
margin
:
8px
0px
28px
0
;
}
}
\ No newline at end of file
src/components/BackdropWindow/BackdropWindow.tsx
0 → 100644
View file @
bd5ec42a
import
style
from
"./BackdropWindow.module.css"
;
type
Props
=
{
children
:
React
.
ReactNode
close
:
()
=>
void
show
:
boolean
}
const
BackdropWindow
=
({
children
,
close
,
show
}:
Props
)
=>
{
if
(
!
show
)
return
return
(
<
div
className=
{
style
.
modalWindow_bg
}
onClick=
{
close
}
>
<
div
className=
{
style
.
modalWindow_body
}
>
<
div
className=
{
style
.
modalWindow_hr
}
></
div
>
{
children
}
</
div
>
</
div
>
);
};
export
default
BackdropWindow
;
src/components/modalWindow/modalWindow.tsx
deleted
100644 → 0
View file @
8eb9f1bd
import
style
from
"./modalWindow.module.css"
;
const
Spinner
=
()
=>
{
return
(
<
div
className=
{
style
.
modalWindow
}
>
<
div
className=
{
style
.
modalWindow_body
}
>
<
div
className=
{
style
.
modalWindow_hr
}
></
div
>
<
p
>
Some text
</
p
>
<
input
placeholder=
"some input"
></
input
>
</
div
>
</
div
>
);
};
export
default
Spinner
;
src/pages/Home/Home.tsx
View file @
bd5ec42a
'use client'
import
BackdropWindow
from
"@/components/BackdropWindow/BackdropWindow"
import
{
useState
}
from
"react"
const
Home
=
()
=>
{
const
Home
=
()
=>
{
const
[
filters
,
showFilters
]
=
useState
(
false
)
return
(
return
(
<>
<>
<
h1
>
Home Page
</
h1
></>
<
button
onClick=
{
()
=>
showFilters
(
true
)
}
>
Filters
</
button
>
<
BackdropWindow
show=
{
filters
}
close=
{
()
=>
showFilters
(
false
)
}
>
<
p
>
From
</
p
>
<
input
placeholder=
"Choose country"
/>
<
input
placeholder=
"Choose city"
/>
<
p
>
To
</
p
>
<
input
placeholder=
"Choose country"
/>
<
input
placeholder=
"Choose city"
/>
<
p
>
Type of Delivery
</
p
>
<
input
placeholder=
"Choose type"
/>
</
BackdropWindow
>
<
button
onClick=
{
()
=>
showFilters
(
true
)
}
>
Price offer
</
button
>
<
BackdropWindow
show=
{
filters
}
close=
{
()
=>
showFilters
(
false
)
}
>
<
h3
>
Current Price
</
h3
>
<
h1
>
99,000 KZT
</
h1
>
<
p
>
Input your offer price
</
p
>
<
input
placeholder=
"Price in KZT"
/>
<
p
>
Input your offer price
</
p
>
<
input
placeholder=
"Price in KZT"
/>
</
BackdropWindow
>
</>
)
)
}
}
...
...
Ысқақов Жәнібек
@yskakovZhanibek
·
Jun 28, 2025
Maintainer
refs to
#5 (closed)
refs to #5
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