JSFiddle - React, Tailwind, and code Playground

by stephcache

HTML

<!DOCTYPE html>
<html lang = "fr">
	<head>
		<title>Challenge HTML/CSS</title>
		<meta charset = "UTF-8">
	</head>
	<body>
		<form>
			<header>Modifier mon profil</header>
			<article id="champs">
				<div>
					<label for="nom">Nom</label>
					<input type="text" id="nom" name="nom">
				</div>
				<div>
					<label for="prenom">Prénom</label>
					<input type="text" id="prenom" name="prenom">
				</div>
				<div>
					<label for="bio">Bio</label>
					<textarea id="bio" name="bio"></textarea>
				</div>
				<div>
					<label for="mail">Email</label>
					<input type="email" id="mail" name="mail">
				</div>
				<div>
					<label for="mobile">Téléphone (modile)</label>
					<input type="tel" id="mobile" name="mobile">
				</div>
				<div>
					<label for="adresse">Adresse</label>
					<input type="text" id="adresse" name="adresse">
				</div>
				<div>
					<label for="ville">Ville</label>
					<input type="text" id="ville" name="ville">
				</div>
				<div>
					<label for="cp">Code Postal</label>
					<input type="text" id="cp" name="cp">
				</div>
			</article>
			<article id="news">
				<div>
					<input type="checkbox" id="new" name="new">
					<label for="new">Je souhaite recevoir la newsletter</label>
				</div>
				<div>
					<input type="checkbox" id="newp" name="newp">
					<label for="newp">Je souhaite recevoir la newsletter des  partenaires</label>
				</div>
			</article>
			<button>Enregistrer mes modifications</button>
		</form>
	</body>
</html>

CSS

*, html, body
			{
				margin: 0;
				padding: 0;
				font-family: roboto;
				font-size: 16px;
				box-sizing: border-box;
				background-color: #fff;
			}

			body
			{
				display: flex;
				width: 100vw;
				height: 100vh;
        background-color: #E5E5E5;
			}

			input, textarea
			{
				border: 1px solid #D2D6DB;
				border-radius: 6px;
				height: 100%;
				padding: 5px;
			}

			input[type=checkbox]
			{
				-webkit-appearance: none;
				-moz-appearance: none;
				width: 16px;
				height: 16px;
			}

			input[type="checkbox"]:checked
			{
				background-color: #5850EB;
			}

			form
			{
				margin: auto;
				width: 1028px;
				height: 555px;
				box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
				border-radius: 4px;
				padding: 33px 46px 55px 44px;
			}

			form header
			{
				color: #374151;
				font-weight: bold;
				font-size: 24px;
				border-bottom: 1px solid #D7DBDF;
				padding-bottom: 11px;
				margin-bottom: 30px;
			}

			form #champs
			{
				display: grid;
				grid-template-columns: repeat(3, 1fr);
				grid-template-rows: repeat(3, 70px);
				grid-gap: 20px;
			}

			form #champs div
			{
				display: flex;
				flex-direction: column;
			}

			form #champs div:nth-child(3)
			{
				grid-row: 1 / span 2;
				grid-column: 3;
			}

			form #news
			{
				display: grid;
				grid-template-columns: 1fr 2fr;
    			margin: 25px 0px;
			}

			label
			{
				color: #374151;
				padding-bottom: 5px;
			}

			button
			{
				background-color: #5850EB;
				border: 1px solid #D2D6DB;
				border-radius: 6px;
				padding: 15px;
				width: 280px;
				height: 55px;
				position: relative;
				float: right;
				color: #fff;
        cursor: pointer;
			}

			@media (max-width: 960px)
			{
			  form
				{
					height: 100vh;
				}
        
        form #news
        {
          grid-template-columns: 1fr 1fr;
        }
			}

			@media (max-width: 576px)
			{
				form
		        {
		          width: 100vw;
		          height: 100vh;
		          overflow-y:...