-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
1,254 additions
and
23 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,67 @@ | ||
interface PropsButton{ | ||
text?: string; | ||
} | ||
interface PropsInputs{ | ||
import {Widget} from "./components/Widget"; | ||
|
||
placeholder?: string; | ||
export function App(){ | ||
return <Widget/> | ||
} | ||
|
||
function Button(props: PropsButton) { | ||
|
||
return <button>{props.text ?? 'Enviar'}</button> | ||
} | ||
|
||
function Inputs(props: PropsInputs) { | ||
return <input type="text" placeholder={props.placeholder ??'Escreva'}/> | ||
} | ||
|
||
function App() { | ||
|
||
return ( | ||
|
||
|
||
<h1>Hello World | ||
|
||
<Button/> | ||
<Inputs/> | ||
|
||
</h1> | ||
) | ||
|
||
} | ||
|
||
|
||
|
||
export default App | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
// interface PropsButton{ | ||
// text?: string; | ||
// } | ||
// interface PropsInputs{ | ||
|
||
// placeholder?: string; | ||
// } | ||
|
||
// function Button(props: PropsButton) { | ||
|
||
// return <button className="bg-green-500 p-3 h-10 rounded hover:bg-green-600 transitions-colors">{props.text ?? 'Enviar'}</button> | ||
// } | ||
|
||
// function Inputs(props: PropsInputs) { | ||
// return <input type="text" placeholder={props.placeholder ??'Escreva'}/> | ||
// } | ||
|
||
// function App() { | ||
|
||
// return ( | ||
|
||
|
||
// <h1 className="flex gap-2">Hello World | ||
|
||
// <Button/> | ||
// <Inputs/> | ||
|
||
// </h1> | ||
// ) | ||
|
||
// } | ||
|
||
// export default App |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import {ChatTeardropDots} from 'phosphor-react'; | ||
import {Popover} from '@headlessui/react'; | ||
// import { useState } from 'react'; | ||
|
||
//Estado | ||
|
||
export function Widget(){ | ||
// const [isWidgetOpen,setIsWidgetOpen] = useState(false); | ||
|
||
// function toggleWidgetVisibility(){ | ||
// setIsWidgetOpen(!isWidgetOpen); | ||
// } | ||
return ( | ||
<Popover className="absolute bottom-5 right-4"> | ||
|
||
|
||
<Popover.Panel>Hello World</Popover.Panel> | ||
|
||
<Popover.Button className="bg-primary-200 rounded-full px-3 h-12 text-primary-100 flex items-center group"> | ||
<ChatTeardropDots weight="bold" className="w-6 h-6"/> | ||
|
||
<span className="max-w-0 overflow-hidden group-hover:max-w-xs transition-all duration-500 ease-linear"> | ||
<span className="pl-2"> | ||
|
||
Feedback | ||
|
||
</span> | ||
</span> | ||
</Popover.Button> | ||
</Popover> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module.exports = { | ||
content: ["./src/**/*.tsx"], | ||
theme: { | ||
extend: { | ||
colors: { | ||
primary: { | ||
100:"#07224B", | ||
200:"#22c55e", | ||
} | ||
} | ||
|
||
}, | ||
}, | ||
plugins: [], | ||
} |