Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
classwork-51
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
Нұрасыл Қайратұлы
classwork-51
Commits
48f8f305
Commit
48f8f305
authored
Nov 25, 2024
by
Нұрасыл Қайратұлы
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add styles
parent
54fba12c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
3 deletions
+30
-3
App.tsx
src/App.tsx
+1
-1
Card.css
src/components/Card/Card.css
+3
-0
Card.tsx
src/components/Card/Card.tsx
+7
-2
Text.css
src/components/Text/Text.css
+4
-0
Text.tsx
src/components/Text/Text.tsx
+15
-0
No files found.
src/App.tsx
View file @
48f8f305
...
@@ -4,7 +4,7 @@ import './App.css'
...
@@ -4,7 +4,7 @@ import './App.css'
function
App
()
{
function
App
()
{
return
(
return
(
<>
<>
<
Card
/>
<
Card
title=
'Hello react'
/>
</>
</>
)
)
}
}
...
...
src/components/Card/Card.css
View file @
48f8f305
...
@@ -4,4 +4,7 @@
...
@@ -4,4 +4,7 @@
border-radius
:
15px
;
border-radius
:
15px
;
border
:
1px
solid
gray
;
border
:
1px
solid
gray
;
background-color
:
gray
;
background-color
:
gray
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
}
\ No newline at end of file
src/components/Card/Card.tsx
View file @
48f8f305
import
Text
from
'../Text/Text'
import
'./Card.css'
import
'./Card.css'
const
Card
=
()
=>
{
type
TProps
=
{
title
:
string
}
const
Card
=
({
title
}:
TProps
)
=>
{
return
(
return
(
<
div
className=
'Card'
>
<
div
className=
'Card'
>
<
Text
title=
{
title
}
/>
</
div
>
</
div
>
)
)
}
}
...
...
src/components/Text/Text.css
0 → 100644
View file @
48f8f305
.text
{
color
:
white
;
font-size
:
18px
;
}
\ No newline at end of file
src/components/Text/Text.tsx
0 → 100644
View file @
48f8f305
import
'./Text.css'
type
TProps
=
{
title
:
string
}
const
Text
=
({
title
}:
TProps
)
=>
{
return
(
<
p
className=
'text'
>
{
title
}
</
p
>
)
}
export
default
Text
\ No newline at end of file
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