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
84a4f939
Commit
84a4f939
authored
Jun 28, 2025
by
Ысқақов Жәнібек
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
final
parent
cba36eea
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
6 deletions
+22
-6
page.tsx
src/app/page.tsx
+2
-1
Card.module.css
src/components/Card/Card.module.css
+1
-1
Card.tsx
src/components/Card/Card.tsx
+3
-2
CardButton.tsx
src/components/UI/CardButton/CardButton.tsx
+4
-2
Description.tsx
src/pages/Description/Description.tsx
+3
-0
Home.module.css
src/pages/Home/Home.module.css
+5
-0
Home.tsx
src/pages/Home/Home.tsx
+4
-0
No files found.
src/app/page.tsx
View file @
84a4f939
import
CreateOrder
from
"@/pages/CreateOrder/CreateOrder"
import
CreateOrder
from
"@/pages/CreateOrder/CreateOrder"
import
Home
from
"@/pages/Home/Home"
const
HomePage
=
()
=>
{
const
HomePage
=
()
=>
{
return
(
return
(
<
div
>
<
div
>
<
CreateOrder
/>
<
Home
/>
</
div
>
</
div
>
)
)
...
...
src/components/Card/Card.module.css
View file @
84a4f939
.Card
{
.Card
{
min-width
:
320
;
min-width
:
320
px
;
min-height
:
100px
;
min-height
:
100px
;
background-color
:
#F1F2F6
;
background-color
:
#F1F2F6
;
border
:
1px
solid
black
;
border
:
1px
solid
black
;
...
...
src/components/Card/Card.tsx
View file @
84a4f939
...
@@ -6,9 +6,10 @@ import CardButton from "../UI/CardButton/CardButton"
...
@@ -6,9 +6,10 @@ import CardButton from "../UI/CardButton/CardButton"
type
Props
=
{
type
Props
=
{
url
:
string
url
:
string
price
:
string
price
:
string
onClick
:
string
}
}
const
Card
=
({
url
,
price
}:
Props
)
=>
{
const
Card
=
({
url
,
price
,
onClick
}:
Props
)
=>
{
return
(
return
(
<
div
className=
{
styles
.
Card
}
>
<
div
className=
{
styles
.
Card
}
>
<
Image
<
Image
...
@@ -35,7 +36,7 @@ const Card = ({url, price}: Props) => {
...
@@ -35,7 +36,7 @@ const Card = ({url, price}: Props) => {
<
p
className=
{
styles
.
Price
}
>
{
price
}
KZT
</
p
>
<
p
className=
{
styles
.
Price
}
>
{
price
}
KZT
</
p
>
</
div
>
</
div
>
</
div
>
</
div
>
<
CardButton
label=
{
"Let's go"
}
/>
<
CardButton
onClick=
{
onClick
}
label=
{
"Let's go"
}
/>
</
div
>
</
div
>
)
)
}
}
...
...
src/components/UI/CardButton/CardButton.tsx
View file @
84a4f939
import
Link
from
'next/link'
import
styles
from
'./CardButton.module.css'
import
styles
from
'./CardButton.module.css'
type
Props
=
{
type
Props
=
{
label
:
string
label
:
string
onClick
:
string
}
}
const
CardButton
=
({
label
}:
Props
)
=>
{
const
CardButton
=
({
label
,
onClick
}:
Props
)
=>
{
return
(
return
(
<>
<>
<
button
className=
{
styles
.
CardButton
}
>
{
label
}
</
button
>
<
Link
href=
{
onClick
}
className=
{
styles
.
CardButton
}
>
{
label
}
</
Link
>
</>
</>
)
)
}
}
...
...
src/pages/Description/Description.tsx
0 → 100644
View file @
84a4f939
const
Description
=
()
=>
{
return
(<>
asd
</>)
}
\ No newline at end of file
src/pages/Home/Home.module.css
View file @
84a4f939
.cards
{
display
:
flex
;
flex-direction
:
column
;
gap
:
28px
;
}
\ No newline at end of file
src/pages/Home/Home.tsx
View file @
84a4f939
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
import
BackdropWindow
from
"@/components/BackdropWindow/BackdropWindow"
import
BackdropWindow
from
"@/components/BackdropWindow/BackdropWindow"
import
styles
from
'./Home.module.css'
import
styles
from
'./Home.module.css'
import
{
useState
}
from
"react"
import
{
useState
}
from
"react"
import
Card
from
"@/components/Card/Card"
const
Home
=
()
=>
{
const
Home
=
()
=>
{
const
[
filters
,
showFilters
]
=
useState
(
false
)
const
[
filters
,
showFilters
]
=
useState
(
false
)
...
@@ -10,6 +11,9 @@ const Home = () => {
...
@@ -10,6 +11,9 @@ const Home = () => {
return
(
return
(
<>
<>
<
div
className=
{
styles
.
cards
}
>
<
Card
url=
'/image.jpg'
price=
"500"
onClick=
'/description'
/>
</
div
>
<
BackdropWindow
show=
{
filters
}
close=
{
()
=>
showFilters
(
false
)
}
>
<
BackdropWindow
show=
{
filters
}
close=
{
()
=>
showFilters
(
false
)
}
>
<
p
>
From
</
p
>
<
p
>
From
</
p
>
<
input
placeholder=
"Choose country"
/>
<
input
placeholder=
"Choose country"
/>
...
...
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