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
91ffcede
Commit
91ffcede
authored
Jun 28, 2025
by
Ысқақов Жәнібек
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'modalWindow' into 'main'
Modal Window See merge request
!3
parents
38f03d32
cb3f14e2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
86 additions
and
3 deletions
+86
-3
BackdropWindow.module.css
src/components/BackdropWindow/BackdropWindow.module.css
+34
-0
BackdropWindow.tsx
src/components/BackdropWindow/BackdropWindow.tsx
+22
-0
Home.module.css
src/pages/Home/Home.module.css
+0
-0
Home.tsx
src/pages/Home/Home.tsx
+30
-3
No files found.
src/components/BackdropWindow/BackdropWindow.module.css
0 → 100644
View file @
91ffcede
.modalWindow_bg
{
position
:
absolute
;
z-index
:
99
;
background-color
:
rgb
(
0
,
0
,
0
,
0.67
);
width
:
100%
;
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
}
.modalWindow_body
{
background-color
:
white
;
width
:
100%
;
position
:
fixed
;
bottom
:
0
;
padding-bottom
:
150px
;
padding
:
8px
20px
25px
20px
;
display
:
flex
;
gap
:
17px
;
flex-direction
:
column
;
border-radius
:
10px
10px
0
0
;
z-index
:
100
;
}
.modalWindow_hr
{
border
:
2px
solid
rgba
(
205
,
207
,
208
,
1
);
height
:
3px
;
border-radius
:
5px
;
min-width
:
35px
;
position
:
relative
;
width
:
2vw
;
left
:
50%
;
transform
:
translate
(
-50%
);
}
\ No newline at end of file
src/components/BackdropWindow/BackdropWindow.tsx
0 → 100644
View file @
91ffcede
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
>
<
div
className=
{
style
.
modalWindow_bg
}
onClick=
{
close
}
></
div
>
<
div
className=
{
style
.
modalWindow_body
}
>
<
div
className=
{
style
.
modalWindow_hr
}
></
div
>
{
children
}
</
div
>
</
div
>
);
};
export
default
BackdropWindow
;
src/pages/Home/Home.module.css
0 → 100644
View file @
91ffcede
src/pages/Home/Home.tsx
View file @
91ffcede
import
Buttons
from
"@/components/UI/Buttons/GoogleAppleBtn"
'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
(
<>
<
Buttons
/>
{
/* <h1>Home Page</h1> */
}
<
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
>
<
BackdropWindow
show=
{
priceOffer
}
close=
{
()
=>
setPriceOffer
(
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
>
<
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