Merge branch 'master' of https://codefirst.iut.uca.fr/git/noan.randon/Favor
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
commit
45728eeeae
@ -0,0 +1,41 @@
|
|||||||
|
import axios from 'axios';
|
||||||
|
import React, { useState } from 'react';
|
||||||
|
|
||||||
|
|
||||||
|
//e.preventDefaul(); pour ne pas recharcher la page
|
||||||
|
const NewPoste = (props) => {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<div class="newPoste-form-popup" id="newPoste-popupFormulaireCreationPoste">
|
||||||
|
<form action="/action_page.php" class="newPoste-form-container">
|
||||||
|
<div class="newPoste-input">
|
||||||
|
<label for="lien">Lien:</label>
|
||||||
|
<input type="text" name="lien" required />
|
||||||
|
</div>
|
||||||
|
<div class="newPoste-input">
|
||||||
|
<label for="description">Description:</label>
|
||||||
|
<textarea name="description" row="250"></textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="newPoste-buttonForm">
|
||||||
|
<div>
|
||||||
|
<button type="button" class="newPoste-btn-cancel" onclick="closeForm()">retour</button>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<button type="submit" class="newPoste-btn">Poster</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
//ce qui écrit dans le input est récuperé par le state
|
||||||
|
export default NewPoste;
|
@ -0,0 +1,43 @@
|
|||||||
|
.newPoste-form-popup {
|
||||||
|
background-color: white;
|
||||||
|
display: none;
|
||||||
|
position:fixed;
|
||||||
|
|
||||||
|
margin-left:33%;
|
||||||
|
margin-right: 33%;
|
||||||
|
border: 2px solid #666;
|
||||||
|
border-radius:10px;
|
||||||
|
width: 33%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Largeur complète pour les champs de saisie */
|
||||||
|
.newPoste-form-container input[name="lien"],
|
||||||
|
.newPoste-form-container textarea[name="description"],
|
||||||
|
.newPoste-form-container label{
|
||||||
|
width: 80%;
|
||||||
|
margin: 10px 10% 50px 10%;
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea{
|
||||||
|
resize: none;
|
||||||
|
height: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[name="lien"],
|
||||||
|
textarea[name="description"]{
|
||||||
|
margin-left: 100px;
|
||||||
|
border: none;
|
||||||
|
background: #D9D9D9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.newPoste-input{
|
||||||
|
margin-top:20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#newPoste-buttonForm{
|
||||||
|
margin-left:10%;
|
||||||
|
margin-right:10%;
|
||||||
|
margin-bottom:10px;
|
||||||
|
display:flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
Loading…
Reference in new issue