roysathome.net/dinosavings.co.uk/www/index.html

309 lines
7.9 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</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=Protest+Strike&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
<script src="index.js"></script>
<style>
body {
font-family: 'Protest Strike', sans-serif;
background: white;
color: black;
font-size: 1.1em;
}
.horizontal-splitter {
display: flex;
flex: 1;
height: 20px;
justify-content: center;
align-self: center;
flex-direction: row;
}
.side-line {
background-color: rgb(44, 44, 44);
align-self: center;
flex: 1;
height: 1px;
}
.or-text {
flex-basis: 0px;
margin-left: 5px;
margin-right: 5px;
color: rgb(167, 167, 167);
}
.main-container {
display: flex;
}
.logo-container {
display: flex;
flex: 1.5;
}
.login-section {
display: block;
flex: 1;
margin: 45vh 150px 0px 0px;
transform: translate(0px, -50%);
}
.input-button {
width: 100%;
font-size: larger;
padding-top: 10px;
padding-bottom: 10px;
border: none;
background-color: black;
color: white;
border-radius: 10000px;
margin-top: 15px;
margin-bottom: 15px;
font-weight: bolder;
}
.input-button:hover {
background-color: rgb(44, 44, 44);
}
.input-text {
width: 100%;
margin: 0px;
}
.slogan {
font-family: 'Protest Strike', sans-serif;
margin-top: 0px;
}
.company-name {
font-family: 'Protest Strike', sans-serif;
font-size: 100px;
margin-top: 0px;
}
dialog {
position: absolute;
border: none;
left: 50%;
top: 50%;
margin: 0px;
transform: translate(-50%,-50%);
border-radius: 20px;
width: 500px;
height: 540px;
background: white;
padding: 0px;
box-sizing: border-box;
}
dialog::backdrop {
background: rgba(0, 0, 0, 0.388);
}
dialog input {
box-sizing: border-box;
width: 100%;
border: #5b8dff solid 2px;
padding: 10px;
border-radius: 100000px;
background-color: #f8f8f8;
outline: none;
font-family: 'Protest Strike'
}
dialog input[type=button] {
border: none;
margin: 40px 0px;
background-color: #00bfff;
color: white;
font-size: 1.3em;
}
dialog label {
display: block;
margin: 30px 0px 10px 20px;
}
dialog div {
margin: 10% 10% 0px 10%;
}
dialog p {
font-size: 40px;
}
dialog img {
position: absolute;
margin: 10px;
right: 0%;
height: 30px;
width: 30px;
padding: 5px;
border: none;
border-radius: 10%;
transition: all ease-in-out 50ms;
}
dialog img:hover {
background-color: rgb(0, 0, 0, 0.588);
}
.signup-dialog {
height: 600px;
}
.login-dialog {
height: 500px;
}
@media (prefers-color-scheme: dark) {
body {
background: black;
color: white;
}
dialog {
background: black;
color: white;
}
dialog::backdrop {
background: rgba(255, 255, 255, 0.388);
}
dialog input {
border: black 2px solid;
}
dialog img:hover {
background-color: rgb(255, 255, 255, 0.588);
}
.input-button {
background: white;
color:black;
}
.input-button:hover {
background-color: #dedede;
}
}
.signup-button {
background-color: #00bfff;
color: #ffffff;
}
.signup-button:hover {
background-color: #15a3d2;
}
@media only screen and (max-width: 1400px) and (min-width: 800px) {
.logo-container {
display: none;
}
.login-section {
margin: 30vh 10vw 0px 10vw;
}
}
@media only screen and (max-width: 800px) {
.company-name {
font-size: 50px;
}
.logo-container {
display: none;
}
.login-section {
margin: 30vh 10vw 0px 10vw;
}
}
</style>
</head>
<body>
<div class="main-container">
<div class="logo-container">
<span></span>
</div>
<div class="login-section">
<span>
<h1 class="company-name">
DinoSavings
</h1>
<h2 class="slogan">
Sort Your Finances.
</h2>
</span>
<input id="show-signup-dialog" class="input-button signup-button" type="button" value="Create account">
<div class="horizontal-splitter">
<div class="side-line">
</div>
<div class="or-text">
<span>or</span>
</div>
<div class="side-line">
</div>
</div>
<input id="show-login-dialog" class="input-button" type="button" value="Login">
</div>
</div>
<dialog id="signup-dialog" class="signup-dialog">
<img src="x-button.png" class="close-dialog"/>
<div>
<form autocomplete="off">
<p>We just need a few details.</p>
<label>Name</label>
<input type="text" placeholder="Enter your Name">
<label>Email</label>
<input type="text" placeholder="Enter your Email">
<label>Password</label>
<input type="password" placeholder="Enter a Password">
<input type="button" value="Start DinoSaving!">
</form>
</div>
</dialog>
<dialog id="login-dialog" class="login-dialog">
<img src="x-button.png" class="close-dialog"/>
<div>
<form autocomplete="off">
<p>Please enter your login details.</p>
<label for>Email</label>
<input id="email" type="text" placeholder="Enter your Email">
<label>Password</label>
<input id="password" type="password" placeholder="Enter your Password">
<input type="button" value="Login!" onclick="loginClicked()">
</form>
</div>
</dialog>
</body>
</html>
<script>
</script>