Changed the UI of creating custom tokens
This commit is contained in:
+9
-38
@@ -140,6 +140,15 @@ body {
|
|||||||
border: 2px solid #c95c03;
|
border: 2px solid #c95c03;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.token {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.token h3 {
|
||||||
|
color: #ffffff;
|
||||||
|
margin: 15px 10px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: #fc913a;
|
background: #fc913a;
|
||||||
@@ -165,44 +174,6 @@ body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tooltip {
|
|
||||||
color: #ffffff;
|
|
||||||
position: relative;
|
|
||||||
display: inline-block;
|
|
||||||
border-bottom: 1px dotted black;
|
|
||||||
margin-bottom: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tooltip .tooltiptext {
|
|
||||||
visibility: hidden;
|
|
||||||
width: 400px;
|
|
||||||
background-color: black;
|
|
||||||
color: #fff;
|
|
||||||
text-align: center;
|
|
||||||
border-radius: 6px;
|
|
||||||
padding: 10px;
|
|
||||||
position: absolute;
|
|
||||||
z-index: 1;
|
|
||||||
bottom: 150%;
|
|
||||||
left: 50%;
|
|
||||||
margin-left: -200px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tooltip .tooltiptext::after {
|
|
||||||
content: "";
|
|
||||||
position: absolute;
|
|
||||||
top: 100%;
|
|
||||||
left: 50%;
|
|
||||||
margin-left: -5px;
|
|
||||||
border-width: 5px;
|
|
||||||
border-style: solid;
|
|
||||||
border-color: black transparent transparent transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tooltip:hover .tooltiptext {
|
|
||||||
visibility: visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-errors {
|
.form-errors {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
@@ -5,10 +5,9 @@
|
|||||||
<h1>< URL Shortener ></h1>
|
<h1>< URL Shortener ></h1>
|
||||||
{{ form.hidden_tag() }}
|
{{ form.hidden_tag() }}
|
||||||
{{ form.url(placeholder="Enter the URL here", autofocus=true, class="feedback-input") }}
|
{{ form.url(placeholder="Enter the URL here", autofocus=true, class="feedback-input") }}
|
||||||
{{ form.token(placeholder="Enter the token (optional)", class="feedback-input") }}
|
<div class="token">
|
||||||
<div class="tooltip">
|
<h3>tiny0.cc/</h3>
|
||||||
What's a token?
|
{{ form.token(placeholder="Use custom alias (optional)", class="feedback-input") }}
|
||||||
<span class="tooltiptext"><p>tiny0.cc/token</p><p>Token must be between 6 and 16 characters long</p><p>It can only contain letters, numbers, underscores(_) and dashes(-)</p></span>
|
|
||||||
</div>
|
</div>
|
||||||
{{ form.submit(class="button") }}
|
{{ form.submit(class="button") }}
|
||||||
{% if form.errors %}
|
{% if form.errors %}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<h1>< Report ></h1>
|
<h1>< Report ></h1>
|
||||||
{{ form.hidden_tag() }}
|
{{ form.hidden_tag() }}
|
||||||
{{ form.url(placeholder="Enter the short URL", autofocus=true, class="feedback-input") }}
|
{{ form.url(placeholder="Enter the short URL", autofocus=true, class="feedback-input") }}
|
||||||
{{ form.message(placeholder="Enter a short message explaining the reason for your report", class="feedback-input") }}
|
{{ form.message(placeholder="Enter a short message explaining the reason of your report", class="feedback-input") }}
|
||||||
{{ form.submit(class="button") }}
|
{{ form.submit(class="button") }}
|
||||||
{% if form.errors %}
|
{% if form.errors %}
|
||||||
<div class="form-errors">
|
<div class="form-errors">
|
||||||
|
|||||||
Reference in New Issue
Block a user