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
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
Ли Джен Сеп
tripsent
Commits
2bd16903
Commit
2bd16903
authored
Jun 28, 2025
by
Dilmurat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
сделал карточку
parent
9e793374
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
164 additions
and
1 deletion
+164
-1
image.jpg
public/image.jpg
+0
-0
image2.jpg
public/image2.jpg
+0
-0
Card.module.css
src/components/Card/Card.module.css
+56
-0
Card.tsx
src/components/Card/Card.tsx
+43
-0
CardList.module.css
src/components/CardList/CardList.module.css
+6
-0
CardList.tsx
src/components/CardList/CardList.tsx
+15
-0
CardButton.module.css
src/components/UI/CardButton/CardButton.module.css
+11
-0
CardButton.tsx
src/components/UI/CardButton/CardButton.tsx
+15
-0
data.ts
src/constants/data.ts
+14
-0
Home.tsx
src/pages/Home/Home.tsx
+4
-1
No files found.
public/image.jpg
0 → 100644
View file @
2bd16903
63.9 KB
public/image2.jpg
0 → 100644
View file @
2bd16903
103 KB
src/components/Card/Card.module.css
0 → 100644
View file @
2bd16903
.Card
{
min-width
:
320
;
min-height
:
100px
;
background-color
:
#F1F2F6
;
border
:
1px
solid
black
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
gap
:
10px
;
padding
:
10px
;
border-radius
:
5px
;
}
.CardImage
{
border-radius
:
5px
;
}
.CardInfo
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
gap
:
5px
;
}
.CardCountry
{
display
:
flex
;
gap
:
5px
;
}
.Country
{
padding
:
5px
;
background
:
#193B670
D
;
border-radius
:
5px
;
}
.Sender
{
display
:
flex
;
align-items
:
center
;
gap
:
20px
;
}
.SenderInfo
{
border
:
1px
solid
black
;
padding
:
3px
;
border-radius
:
5px
;
}
.PriceDiv
{
display
:
flex
;
justify-content
:
center
;
}
.Price
{
font-size
:
25px
;
font-weight
:
bold
;
}
\ No newline at end of file
src/components/Card/Card.tsx
0 → 100644
View file @
2bd16903
import
Image
from
"next/image"
import
image
from
'../../../public/image.jpg'
import
styles
from
'./Card.module.css'
import
CardButton
from
"../UI/CardButton/CardButton"
type
Props
=
{
url
:
string
price
:
string
}
const
Card
=
({
url
,
price
}:
Props
)
=>
{
return
(
<
div
className=
{
styles
.
Card
}
>
<
Image
className=
{
styles
.
CardImage
}
src=
{
url
}
width=
{
310
}
height=
{
191
}
alt=
'image'
priority
/>
<
div
className=
{
styles
.
CardInfo
}
>
<
div
className=
{
styles
.
CardCountry
}
>
<
p
className=
{
styles
.
Country
}
>
Madrid
</
p
>
<
p
>
{
'>'
}
</
p
>
<
p
className=
{
styles
.
Country
}
>
Almaty
</
p
>
</
div
>
<
div
className=
{
styles
.
Sender
}
>
<
span
>
Sender
</
span
>
<
p
className=
{
styles
.
SenderInfo
}
>
4.9 | PashaStarman
</
p
>
</
div
>
<
div
className=
{
styles
.
PriceDiv
}
>
<
p
className=
{
styles
.
Price
}
>
{
price
}
KZT
</
p
>
</
div
>
</
div
>
<
CardButton
label=
{
"Let's go"
}
/>
</
div
>
)
}
export
default
Card
\ No newline at end of file
src/components/CardList/CardList.module.css
0 → 100644
View file @
2bd16903
.CardLIst
{
display
:
flex
;
align-items
:
center
;
flex-direction
:
column
;
gap
:
20px
;
}
\ No newline at end of file
src/components/CardList/CardList.tsx
0 → 100644
View file @
2bd16903
import
{
data
}
from
"@/constants/data"
import
Card
from
"../Card/Card"
import
styles
from
'./CardList.module.css'
const
CardList
=
()
=>
{
return
(
<
div
className=
{
styles
.
CardLIst
}
>
{
data
.
map
(
card
=>
{
return
<
Card
key=
{
card
.
price
}
url=
{
card
.
url
}
price=
{
card
.
price
}
/>
})
}
</
div
>
)
}
export
default
CardList
\ No newline at end of file
src/components/UI/CardButton/CardButton.module.css
0 → 100644
View file @
2bd16903
.CardButton
{
width
:
310px
;
height
:
35px
;
background-color
:
#005FDB
;
color
:
white
;
font-weight
:
500
;
size
:
16px
;
padding
:
8px
;
border
:
none
;
border-radius
:
5px
;
}
\ No newline at end of file
src/components/UI/CardButton/CardButton.tsx
0 → 100644
View file @
2bd16903
import
styles
from
'./CardButton.module.css'
type
Props
=
{
label
:
string
}
const
CardButton
=
({
label
}:
Props
)
=>
{
return
(
<>
<
button
className=
{
styles
.
CardButton
}
>
{
label
}
</
button
>
</>
)
}
export
default
CardButton
\ No newline at end of file
src/constants/data.ts
0 → 100644
View file @
2bd16903
export
const
data
=
[
{
url
:
'/image.jpg'
,
price
:
'99.000'
},
{
url
:
'/image2.jpg'
,
price
:
'88.000'
},
{
url
:
'/image.jpg'
,
price
:
'55.000'
},
]
\ No newline at end of file
src/pages/Home/Home.tsx
View file @
2bd16903
import
CardList
from
"@/components/CardList/CardList"
const
Home
=
()
=>
{
return
(
<>
<
h1
>
Home Page
</
h1
></>
<
CardList
/>
</>
)
}
...
...
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