Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
wasi-master authored Dec 18, 2022
1 parent 5aa2bb2 commit 9191b93
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>13ft Ladder</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=Open+Sans&display=swap" rel="stylesheet">

<style>
div.centered {
position: absolute;
Expand All @@ -16,14 +14,12 @@
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}

h1{
font-family: 'Product Sans', 'Open Sans', sans-serif;
text-rendering: optimizeLegibility;
margin: 0;
text-align: center;
}

input[type=text] {
padding: 10px;
margin-bottom: 10px;
Expand All @@ -35,12 +31,10 @@
font-size: inherit;
text-rendering: optimizeLegibility;
}

input[type="submit"] {
/* remove default behavior */
-webkit-appearance:none;
appearance:none;

/* usual styles */
padding:10px;
border:none;
Expand All @@ -54,9 +48,11 @@
font-size: 1rem;
text-rendering: optimizeLegibility;
}
input[type="submit"]:active {
scale: 1.02;
}
</style>
</head>

<body>
<div class="centered">
<form action="/article" method="post">
Expand All @@ -69,9 +65,6 @@ <h1>
type="text"
name="link"
required
pattern="https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)"
oninvalid="this.setCustomValidity('Invalid Link')"
oninput="this.setCustomValidity('')"
>
<input type="submit" value="submit">
</form>
Expand Down

0 comments on commit 9191b93

Please sign in to comment.