Begin designing the UI

This commit is contained in:
Wolvan 2021-12-29 19:22:38 +01:00
parent e83766309a
commit 2db013c204
2 changed files with 151 additions and 4 deletions

View file

@ -4,9 +4,44 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ TITLE }}</title> <title>{{ TITLE }}</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/static/css/main.css"> <link rel="stylesheet" href="/static/css/main.css">
</head> </head>
<body> <body>
<h1>Welcome to poll.horse!</h1> <header>
<h1>Poll.horse</h1>
<h3>Make voting on things simpler</h3>
</header>
<main>
<section class="notepad">
<div class="notepad-border"></div>
<section class="poll-title">
<input type="text" maxlength="300" placeholder="Enter your question here">
</section>
<section class="poll-options">
<div class="poll-option">
<input type="text" maxlength="300" placeholder="Enter your option here">
</div>
<div class="poll-option">
<input type="text" maxlength="300" placeholder="Enter your option here">
</div>
<div class="poll-option">
<input type="text" maxlength="300" placeholder="Enter your option here">
</div>
</section>
<section class="poll-footer"></section>
</section>
</main>
<footer>
<ul>
<li><a href="" target="_blank">Test</a></li>
<li><a href="" target="_blank">Test</a></li>
<li><a href="" target="_blank">Test</a></li>
<li><a href="" target="_blank">Test</a></li>
</ul>
<div class="copyright">© 2021 Wolvan</div>
</footer>
</body> </body>
</html> </html>

View file

@ -1,3 +1,115 @@
h1 { * {
color: red; margin: 0;
padding: 0;
} }
body {
width: 100vw;
height: 100vh;
overflow-x: hidden;
overflow-y: scroll;
background-color: #323232;
font-family: 'Caveat', cursive;
}
input[type="text"] {
width: 100%;
height: 100%;
border: none;
background-color: transparent;
color: #323232;
font-size: 1.5em;
outline: none;
font-family: 'Caveat', cursive;
}
/* #region Header */
header {
width: 100%;
height: 60px;
text-align: center;
color: #fff;
}
header h1 {
font-size: 3em;
}
/* #endregion Header */
/* #region Main */
main {
min-height: calc(100% - 60px - 120px - 60px);
position: relative;
padding-bottom: 120px;
}
/* #region notepad */
main .notepad {
position: relative;
top: 60px;
width: 40%;
background-color: #ffd756;
margin-left: auto;
margin-right: auto;
}
main .notepad .poll-title {
height: 70px;
}
main .notepad .poll-title input {
font-size: 2em;
font-weight: bold;
}
main .notepad .poll-option {
height: 50px;
}
main .notepad .poll-title,
main .notepad .poll-option {
border-bottom: 2px solid #b1b874;
}
main .notepad .poll-footer {
height: 180px;
}
main .notepad .poll-title,
main .notepad .poll-option,
main .notepad .poll-footer {
padding-left: 10%;
padding-right: 5px;
width: calc(90% - 5px);
}
main .notepad-border {
position: absolute;
left: 5%;
height: 100%;
width: 5px;
border-left: 2px solid red;
border-right: 2px solid red;
}
/* #endregion notepad */
/* #endregion Main */
/* #region Footer */
footer {
background-color: #292929;
width: 100%;
height: 60px;
font-family: Arial, sans-serif;
}
footer ul {
text-align: center;
list-style-type: none;
}
footer ul li {
display: inline-block;
padding: 10px;
}
footer ul li a {
color: #a9a9a9;
text-decoration: none;
}
footer ul li a:hover {
color: #c3c3c3;
}
footer .copyright {
text-align: center;
color: #fff;
}
/* #endregion Footer */