more-ui-updates #13
|
|
@ -2,3 +2,4 @@
|
||||||
.bundle
|
.bundle
|
||||||
*.db
|
*.db
|
||||||
.env.rb
|
.env.rb
|
||||||
|
coverage
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1 @@
|
||||||
<h2><a href="/" style="color: #555555;">Home</a></h2>
|
<h3 style="overflow-wrap: break-word; word-wrap: break-word;"><a href="<%= @new_link %>" target="_blank"><%= @new_link %></a></h3>
|
||||||
<h3 style="overflow-wrap: break-word; word-wrap: break-word;"><a href="<%= @new_link %>" target="_blank" style="color: #555555;"><%= @new_link %></a></h3>
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
name="url"
|
name="url"
|
||||||
pattern="https?://.+"
|
pattern="https?://.+"
|
||||||
placeholder="http://www.example.com/"
|
placeholder="http://www.example.com/"
|
||||||
style="padding: 0.5rem;"
|
autocomplete="off"
|
||||||
required />
|
required />
|
||||||
<button type="submit" style="padding: 0.5rem;">Submit</button>
|
<button type="submit">Submit</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,89 @@
|
||||||
<head>
|
<head>
|
||||||
<title><%= @page_title || "URL Shortener" %></title>
|
<title><%= @page_title || "URL Shortener" %></title>
|
||||||
<link rel="icon" href="data:,">
|
<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(--lightest-blue));
|
||||||
|
font-family: Helvetica, sans-serif;
|
||||||
|
color: var(--black);
|
||||||
|
}
|
||||||
|
input {
|
||||||
|
padding: 1rem;
|
||||||
|
border-radius: 5px;
|
||||||
|
border: 3px solid var(--dark-blue);
|
||||||
|
margin-right: 1rem;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
input:focus, input:hover {
|
||||||
|
border: 3px solid var(--darker-blue);
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
color: var(--white);
|
||||||
|
padding: 1rem;
|
||||||
|
border-radius: 5px;
|
||||||
|
border: 2px solid var(--dark-blue);
|
||||||
|
background: var(--dark-blue);
|
||||||
|
font-weight: bold;
|
||||||
|
transition: all .25s ease-in-out;
|
||||||
|
-moz-transition: all .25s ease-in-out;
|
||||||
|
-webkit-transition: all .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);
|
||||||
|
}
|
||||||
|
main {
|
||||||
|
max-width: 30rem;
|
||||||
|
min-width: 18rem;
|
||||||
|
border: 5px solid var(--medium-blue);
|
||||||
|
border-radius: 20px;
|
||||||
|
margin: auto;
|
||||||
|
padding: 1rem;
|
||||||
|
margin-top: 5rem;
|
||||||
|
text-align: center;
|
||||||
|
min-height: 200px;
|
||||||
|
box-shadow: 3px 2px 10px var(--shadow);
|
||||||
|
background: var(--white);
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body style="background: #FEFEFE; font-family: Helvetica, sans-serif; color: #555555;">
|
<body style="">
|
||||||
<main style="max-width: 30rem; min-width: 18rem; border: 5px solid #999999; border-radius: 20px; margin: auto; padding: 1rem; margin-top: 5rem; text-align: center; min-height: 175px;">
|
<main>
|
||||||
<h1>URL Shortener</h1>
|
<h1><a href="/">URL Shortener</a></h1>
|
||||||
<h4 id="message"><%== @message %></h4>
|
<h4 id="message"><%== @message %></h4>
|
||||||
<%== yield %>
|
<%== yield %>
|
||||||
</main>
|
</main>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue