add main style

This commit is contained in:
Mylloon 2022-10-08 16:03:35 +02:00
parent 8bd7cff5c1
commit 494916a057
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 66 additions and 3 deletions

View file

@ -15,6 +15,7 @@
--link-color-hover: rgb(181, 162, 101); --link-color-hover: rgb(181, 162, 101);
--grey: rgb(207, 216, 220); --grey: rgb(207, 216, 220);
--shadow: rgba(0, 0, 0, 0.5); --shadow: rgba(0, 0, 0, 0.5);
--border: rgb(45, 40, 22);
} }
} }
@ -27,6 +28,7 @@
--link-color-hover: rgb(175, 154, 88); --link-color-hover: rgb(175, 154, 88);
--grey: rgb(55, 71, 79); --grey: rgb(55, 71, 79);
--shadow: rgba(125, 109, 60, 0.288); --shadow: rgba(125, 109, 60, 0.288);
--border: rgb(213, 202, 168);
} }
} }
@ -56,13 +58,62 @@ main {
margin-right: auto; margin-right: auto;
margin-top: 2%; margin-top: 2%;
padding: 0.9% 0.9% 0.9% 0.9%; padding: 0.9% 0.9% 0.9% 0.9%;
width: 42%; width: 62%;
border-radius: 6px; border-radius: 6px;
border: 1px solid rgb(170, 170, 170); border: 1px solid var(--border);
text-align: center; text-align: center;
border-radius: 8px; border-radius: 8px;
box-shadow: 0 4px 30px 0 var(--shadow), 0 4px 30px 0 var(--shadow); box-shadow: 0 4px 30px 0 var(--shadow), 0 4px 30px 0 var(--shadow);
display: flex;
flex-direction: row;
padding-top: 0.5em;
}
.upload-area {
border: 2px dashed var(--border);
height: 70vh;
width: 65vw;
border-radius: 5px;
display: flex;
align-items: center;
justify-content: center;
}
.desc-area {
text-align: left;
max-width: 30%;
padding-left: 1em;
}
/* Mobile display */
@media only screen and (max-height: 850px) {
header > .text-title {
font-size: 1.5rem;
}
.upload-area {
height: 65vh;
}
}
@media only screen and (max-width: 850px) {
main {
align-items: center;
justify-content: center;
flex-direction: column;
}
.upload-area {
width: 55vw;
height: 55vh;
}
.desc-area {
max-width: 80%;
}
} }
footer { footer {

View file

@ -15,7 +15,19 @@
</header> </header>
<main> <main>
<p>placeholder-main</p> <div class="upload-area">
<header>Glissez pour déposer un fichier</header>
<input type="file" hidden />
</div>
<div class="desc-area">
<h2>Projet</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation
ullamco laboris nisi ut aliquip ex ea commodo consequat.
</p>
</div>
</main> </main>
<footer class="text-center"> <footer class="text-center">