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
9f7c652a
Commit
9f7c652a
authored
Jun 28, 2025
by
Ысқақов Жәнібек
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Дополнение к прошлому коммиту
parent
bd5ec42a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
11 deletions
+17
-11
BackdropWindow.module.css
src/components/BackdropWindow/BackdropWindow.module.css
+4
-1
BackdropWindow.tsx
src/components/BackdropWindow/BackdropWindow.tsx
+6
-5
Home.module.css
src/pages/Home/Home.module.css
+0
-0
Home.tsx
src/pages/Home/Home.tsx
+7
-5
No files found.
src/components/BackdropWindow/BackdropWindow.module.css
View file @
9f7c652a
.modalWindow_bg
{
position
:
fixed
;
position
:
absolute
;
z-index
:
99
;
background-color
:
rgb
(
0
,
0
,
0
,
0.67
);
width
:
100%
;
height
:
100%
;
...
...
@@ -17,6 +18,8 @@
display
:
flex
;
gap
:
17px
;
flex-direction
:
column
;
border-radius
:
10px
10px
0
0
;
z-index
:
100
;
}
.modalWindow_hr
{
...
...
src/components/BackdropWindow/BackdropWindow.tsx
View file @
9f7c652a
...
...
@@ -9,11 +9,12 @@ 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
>
<
div
className=
{
style
.
modalWindow_bg
}
onClick=
{
close
}
></
div
>
<
div
className=
{
style
.
modalWindow_body
}
>
<
div
className=
{
style
.
modalWindow_hr
}
></
div
>
{
children
}
</
div
>
</
div
>
);
};
...
...
src/pages/Home/Home.module.css
0 → 100644
View file @
9f7c652a
src/pages/Home/Home.tsx
View file @
9f7c652a
'use client'
import
BackdropWindow
from
"@/components/BackdropWindow/BackdropWindow"
import
styles
from
'./Home.module.css'
import
{
useState
}
from
"react"
const
Home
=
()
=>
{
const
[
filters
,
showFilters
]
=
useState
(
false
)
const
[
priceOffer
,
setPriceOffer
]
=
useState
(
false
)
return
(
<>
<
button
onClick=
{
()
=>
showFilters
(
true
)
}
>
Filters
</
button
>
<
BackdropWindow
show=
{
filters
}
close=
{
()
=>
showFilters
(
false
)
}
>
<
p
>
From
</
p
>
<
input
placeholder=
"Choose country"
/>
...
...
@@ -19,10 +20,7 @@ const Home = () => {
<
p
>
Type of Delivery
</
p
>
<
input
placeholder=
"Choose type"
/>
</
BackdropWindow
>
<
button
onClick=
{
()
=>
showFilters
(
true
)
}
>
Price offer
</
button
>
<
BackdropWindow
show=
{
filters
}
close=
{
()
=>
showFilters
(
false
)
}
>
<
BackdropWindow
show=
{
priceOffer
}
close=
{
()
=>
setPriceOffer
(
false
)
}
>
<
h3
>
Current Price
</
h3
>
<
h1
>
99,000 KZT
</
h1
>
<
p
>
Input your offer price
</
p
>
...
...
@@ -30,6 +28,10 @@ const Home = () => {
<
p
>
Input your offer price
</
p
>
<
input
placeholder=
"Price in KZT"
/>
</
BackdropWindow
>
<
div
className=
{
styles
.
container
}
>
<
button
onClick=
{
()
=>
showFilters
(
true
)
}
>
Filters
</
button
>
<
button
onClick=
{
()
=>
setPriceOffer
(
true
)
}
>
Price offer
</
button
>
</
div
>
</>
)
}
...
...
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