setup de base du react
This commit is contained in:
10
GrossesMitaines/grosses-mitaines-ui/src/components/App.js
Normal file
10
GrossesMitaines/grosses-mitaines-ui/src/components/App.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const App = () => {
|
||||
|
||||
return (
|
||||
<>
|
||||
Les Grosses Mitaines
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default App;
|
10
GrossesMitaines/grosses-mitaines-ui/src/index.js
Normal file
10
GrossesMitaines/grosses-mitaines-ui/src/index.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import React from 'react'
|
||||
import ReactDOM from 'react-dom'
|
||||
|
||||
import './site.css'
|
||||
import App from './components/App'
|
||||
|
||||
const container = document.getElementById('root')
|
||||
const root = ReactDOM.createRoot(container)
|
||||
|
||||
root.render(<App />)
|
112
GrossesMitaines/grosses-mitaines-ui/src/site.css
Normal file
112
GrossesMitaines/grosses-mitaines-ui/src/site.css
Normal file
@@ -0,0 +1,112 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400&display=swap');
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Poppins', sans-serif;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 500px;
|
||||
margin: 30px auto;
|
||||
overflow: auto;
|
||||
min-height: 300px;
|
||||
border: 1px solid steelblue;
|
||||
padding: 30px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
display: inline-block;
|
||||
background: #000;
|
||||
color: #fff;
|
||||
border: none;
|
||||
padding: 10px 20px;
|
||||
margin: 5px;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
font-size: 15px;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.btn:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.btn:active {
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
.btn-block {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.task {
|
||||
background: #f4f4f4;
|
||||
margin: 5px;
|
||||
padding: 10px 20px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.task.reminder {
|
||||
border-left: 5px solid green;
|
||||
}
|
||||
|
||||
.task h3 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.add-form {
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.form-control {
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
.form-control label {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.form-control input {
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
margin: 5px;
|
||||
padding: 3px 7px;
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
.form-control-check {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.form-control-check label {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.form-control-check input {
|
||||
flex: 2;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
footer {
|
||||
margin-top: 30px;
|
||||
text-align: center;
|
||||
}
|
Reference in New Issue
Block a user