mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 10:20:16 +01:00
design of the map component functional
This commit is contained in:
5
traque-front/components/util/button.jsx
Normal file
5
traque-front/components/util/button.jsx
Normal file
@@ -0,0 +1,5 @@
|
||||
export default function Button({ children, ...props }) {
|
||||
return (<button {...props} className="bg-blue-600 hover:bg-blue-500 ease-out duration-200 text-white w-full p-4 shadow-sm rounded">
|
||||
{children}
|
||||
</button>)
|
||||
}
|
||||
7
traque-front/components/util/textInput.jsx
Normal file
7
traque-front/components/util/textInput.jsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import React from 'react'
|
||||
|
||||
export default function TextInput({...props}) {
|
||||
return (
|
||||
<input {...props} type="text" className="block w-full p-4 rounded text-center ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600" />
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user