109 lines
2.7 KiB
Plaintext
109 lines
2.7 KiB
Plaintext
<html>
|
|
<head>
|
|
<title><%= @page_title || "URL Shortener" %></title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="icon" href="data:,">
|
|
<style>
|
|
:root {
|
|
--white: #FEFEFE;
|
|
--shadow: #333;
|
|
--black: #555;
|
|
--darker-blue: #809DFF;
|
|
--dark-blue: #99b1ff;
|
|
--medium-blue: #B3C6FF;
|
|
--light-blue: #CCD8FF;
|
|
--lightest-blue: #E6EBFF;
|
|
}
|
|
|
|
body {
|
|
background: var(--white);
|
|
background-image: linear-gradient(to bottom right, var(--lightest-blue), var(--white), var(--white), var(--white), var(--lightest-blue));
|
|
font-family: Helvetica, sans-serif;
|
|
color: var(--black);
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: 5rem 0 0;
|
|
border: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
main {
|
|
width: 30rem;
|
|
max-width: calc(100% - 1rem);
|
|
box-sizing: border-box;
|
|
border: 5px solid var(--medium-blue);
|
|
border-radius: 20px;
|
|
margin: auto;
|
|
padding: 1rem;
|
|
text-align: center;
|
|
min-height: 260px;
|
|
box-shadow: 3px 2px 10px var(--shadow);
|
|
background: var(--white);
|
|
overflow: hidden;
|
|
}
|
|
|
|
input, button {
|
|
width: 80%;
|
|
}
|
|
|
|
input {
|
|
padding: 1rem;
|
|
border-radius: 5px;
|
|
border: 3px solid var(--dark-blue);
|
|
outline: none;
|
|
transition: all .25s ease-in-out;
|
|
-moz-transition: all .25s ease-in-out;
|
|
-webkit-transition: all .25s ease-in-out;
|
|
}
|
|
|
|
input:focus, input:hover {
|
|
border: 3px solid var(--darker-blue);
|
|
}
|
|
|
|
button {
|
|
color: var(--white);
|
|
padding: 1rem;
|
|
border-radius: 5px;
|
|
border: 2px solid var(--darker-blue);
|
|
background: var(--dark-blue);
|
|
font-weight: bold;
|
|
transition: background .25s ease-in-out;
|
|
-moz-transition: background .25s ease-in-out;
|
|
-webkit-transition: background .25s ease-in-out;
|
|
}
|
|
|
|
button:hover {
|
|
background: var(--darker-blue);
|
|
}
|
|
|
|
button:active {
|
|
background: var(--light-blue);
|
|
color: var(--black);
|
|
}
|
|
|
|
a {
|
|
color: var(--black);
|
|
text-decoration: none;
|
|
border-bottom: 4px solid var(--white);
|
|
transition: all .25s ease-in-out;
|
|
-moz-transition: all .25s ease-in-out;
|
|
-webkit-transition: all .25s ease-in-out;
|
|
}
|
|
|
|
a:hover, a:active, a:focus {
|
|
color: var(--darker-blue);
|
|
border-bottom: 4px solid var(--darker-blue);
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
<body style="">
|
|
<main>
|
|
<h1><a href="/">URL Shortener</a></h1>
|
|
<h4 id="message"><%== @message %></h4>
|
|
<%== yield %>
|
|
</main>
|
|
</body>
|
|
</html>
|