-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.html
127 lines (97 loc) · 2.56 KB
/
home.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html lang="en">
<head>
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<style>
body { background-image: linear-gradient(to bottom, #1863d3, #007ddc, #0094df, #2daade, #64bddc);
background-repeat: no-repeat;
background-color: #64bddc;
text-shadow:
-1px -1px 0 #000,
1px -1px 0 #000,
-1px 1px 0 #000,
1px 1px 0 #000;
}
p {color: #F5F5DC;
font-family: Montserrat;
font-size: 14px;
font-style: italic;
margin-left:84px;
margin-bottom: 60px;
}
h4 {color: #DCDCDC;
font-family: Montserrat;
font-size: 28px;
margin-top:186px;
text-align:center;
margin-left:64px;
}
h3 {color: #DCDCDC;
font-family: Montserrat;
font-size: 25px;
margin-left:72px;
}
h2 {color: #DCDCDC;
font-family: Montserrat;
font-size: 36px;
margin-left:48px;
}
h1 {color: #DCDCDC;
font-family: Montserrat;
font-size:50px;
text-align:center;
margin-left:64px;
}
input[type=text] {
display: block;
margin : 0 auto;
width: 50%;
padding-bottom: 30px;
margin-bottom: 10px;
}
input[type=text]:focus {
border: 3px solid #5FAA;
}
button{
display: block;
margin : auto;
background-color: #4CAF50;
border: none;
color: white;
padding: 16px 48px;
text-decoration: none;
font-family: Montserrat;
font-size: 24px;
cursor: pointer;
margin-bottom: 60px;
}
</style>
<meta charset="utf-8">
<title>URL Shortener</title>
<meta name="description" content="URL Shortener">
<meta name="Alejandro Gallarati" content="SitePoint">
</head>
<body>
<h1>URL Shortener</h1>
<h2>Usage: </h2>
<h3>Shorten URL:</h3>
<p>Example: https://www.google.com</p>
<div class="urlform">
<input type="text" id="url">
<button id="submit">Shorten</button>
</div>
<h3>Access short URL: https://shrtr.glitch.me/"Short-URL" </h3>
<p>Example: https://shrtr.glitch.me/rJWK1T3rz</p>
<h4>
Made with love by Alejandro Gallarati <br> <a href="https://github.com/Radamant24/">GitHub</a>
</h4>
</body>
<script>
const input = document.querySelector("#url")
const button = document.querySelector("#submit")
function redirect() {
window.open(`https://shrtr.glitch.me/new/${input.value}`)
}
button.addEventListener("click", redirect);
</script>
</html>