File tree 4 files changed +37
-8
lines changed
4 files changed +37
-8
lines changed Original file line number Diff line number Diff line change 4
4
5
5
![ ] ( ./assets/design.PNG )
6
6
7
- ### Link do projeto:
7
+ ### Link:
8
+
9
+ [ Design System on Storybook] ( https://mellcosta.github.io/ignite_lab_design_system/?path=/story/components-button--default )
10
+
11
+ ---
8
12
9
13
## Techs💻
10
14
Original file line number Diff line number Diff line change 1
1
import './styles/global.css' ;
2
2
3
+ import { Button } from './components/Button' ;
4
+ import { Checkbox } from './components/Checkbox' ;
5
+ import { TextInput } from './components/TextInput' ;
6
+ import { Text } from './components/Text' ;
7
+ import { Heading } from './components/Heading' ;
8
+
3
9
export function App ( ) {
4
10
return (
5
- < >
6
- < h1 className = "font-bold text-6xl text-violet-800" > Hello World</ h1 >
7
-
8
- < button className = ' font-medium px-5 py-2 text-white bg-gray hover:bg-green-500' > Enviar</ button >
9
- </ >
10
-
11
+ < div className = 'bg-gray-900 flex content-center items-center gap-5 flex-col p-3' >
12
+ < div className = 'flex content-center items-center gap-4 flex-col' >
13
+ < img src = "../public/vite.svg" alt = "" />
14
+ < Heading > Igninte Lab</ Heading >
15
+ < Text > Faça Login e comece a usar</ Text >
16
+ </ div >
17
+ < div >
18
+ < span className = 'flex flex-col' >
19
+ < label htmlFor = "email" > < Text > Endereço de e-mail</ Text > </ label >
20
+ < input type = "email" id = 'email' />
21
+ </ span >
22
+ < span className = 'flex flex-col' >
23
+ < label htmlFor = "password" > < Text > Sua senha</ Text > </ label >
24
+ < input type = "password" id = 'password' />
25
+ </ span >
26
+ </ div >
27
+ < div >
28
+ < Checkbox /> < Text > Lembrar-me</ Text >
29
+ </ div >
30
+ < div >
31
+ < Button > Click Me</ Button >
32
+ </ div >
33
+ </ div >
11
34
)
12
35
}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export interface CheckboxProps {}
5
5
6
6
export function Checkbox ( { } : CheckboxProps ) {
7
7
return (
8
- < CheckboxPrimitive . Root className = 'w-6 h-6 p-[2px] bg-gray-800 rounded hover:bg-gray-900 ' >
8
+ < CheckboxPrimitive . Root className = 'w-6 h-6 p-[2px] bg-gray-800 rounded' >
9
9
< CheckboxPrimitive . Indicator asChild >
10
10
< Check weight = 'bold' className = 'w-5 h-5 text-cyan-500' />
11
11
</ CheckboxPrimitive . Indicator >
Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
2
import ReactDOM from 'react-dom/client'
3
+
3
4
import { App } from './App'
4
5
6
+
5
7
ReactDOM . createRoot ( document . getElementById ( 'root' ) as HTMLElement ) . render (
6
8
< React . StrictMode >
7
9
< App />
You can’t perform that action at this time.
0 commit comments