Skip to content

Commit

Permalink
Updated design of test interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
hexydec committed Jan 21, 2024
1 parent 6824b94 commit b8975ce
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/htmldoc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 11 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,13 @@
<head>
<title>Hexydec HTML Minifier</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="shortcut icon" type="image/svg" href="docs/htmldoc.svg" />
<style>
html, body {
margin: 0;
font-family: Segoe UI;
}
body, input {
font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
}
.minify__form {
height: 100vh;
Expand All @@ -128,6 +131,9 @@
.minify__form-heading {
margin: 10px 10px 0 10px;
flex: 0 0 auto;
display: flex;
align-items: center;
gap: 0 10px;
}
.minify__form-error {
padding: 10px;
Expand Down Expand Up @@ -191,7 +197,10 @@
<body>
<form action="<?= \htmlspecialchars($_SERVER['REQUEST_URI']); ?>" method="post" accept-charset="<?= \htmlspecialchars(\mb_internal_encoding()); ?>" class="minify__form">
<div class="minify__form-wrap">
<h1 class="minify__form-heading">HTML Minifier</h1>
<h1 class="minify__form-heading">
<img src="docs/htmldoc.svg" alt="HTMLdoc" height="50" />
HTML Minifier
</h1>
<?php if ($error) { ?>
<div class="minify__form-error"><?= \htmlspecialchars($error); ?></div>
<?php } ?>
Expand Down

0 comments on commit b8975ce

Please sign in to comment.