minor CSS adjustments

This commit is contained in:
Ondrej Synacek 2019-10-20 20:57:39 +02:00
parent b7d58febe8
commit 4b669d34aa
2 changed files with 93 additions and 43 deletions

BIN
lib/public/icon-180.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -4,13 +4,48 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="manifest" href="/manifest.json"> <link rel="manifest" href="/manifest.json">
<link rel="apple-touch-icon" sizes="180x180" href="/icon-180.png">
<title>Facebook Event to iCal Converter</title> <title>Facebook Event to iCal Converter</title>
<style> <style>
body {
display: flex;
flex-direction: column;
min-height: 100vh;
font-size: 16px;
margin: 0px;
}
header, footer, article {
padding: 5px;
}
footer {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background-color: #fff;
}
article#main {
flex: 1;
}
p, input, table, button, label {
font-size: 1rem;
}
#current-download { #current-download {
display: none; display: none;
} }
#list {} .list-wrapper {
max-height: 500px;
overflow: auto;
}
#list {
}
.row { .row {
display: flex; display: flex;
@ -28,9 +63,14 @@
min-width: 300px; min-width: 300px;
} }
#form input {
margin: 5px;
}
#status { #status {
flex: 1; flex: 1;
height: 1rem; height: 1rem;
margin: 5px;
} }
.status-item { .status-item {
@ -49,56 +89,66 @@
</head> </head>
<body> <body>
<a id="current-download" href="javascript:void(0)"></a> <header>
<h1>Facebook Events to iCal Converter</h1> <a id="current-download" href="javascript:void(0)"></a>
<h1>Facebook Events to iCal Converter</h1>
</header>
<p> <article id="main">
Insert Facebook event URL into the form. When you submit it <p>
you will get <a href="https://en.wikipedia.org/wiki/ICalendar"><code>ics</code></a> Insert Facebook event URL into the form. When you submit it
file that you can import you will get <a href="https://en.wikipedia.org/wiki/ICalendar"><code>ics</code></a>
into your calendar. file that you can import
</p> into your calendar.
</p>
<div class="row"> <div class="row">
<form action='/download' method='POST' id="form"> <form action='/download' method='POST' id="form">
<input id="url" type='text' name='url' placeholder='Paste / type FB event URL here...' /> <input id="url" type='text' name='url' placeholder='Paste / type FB event URL here...' />
<input id="submit" type='submit' value='Submit' /> <input id="submit" type='submit' value='Submit' />
</form> </form>
<div id="status"> <div id="status">
<div class="status-item" id="network"> <div class="status-item" id="network">
Fetching file... Fetching file...
</div> </div>
<div class="status-item" id="parsing"> <div class="status-item" id="parsing">
Parsing data... Parsing data...
</div> </div>
<div class="status-item" id="error"> <div class="status-item" id="error">
</div> </div>
<div class="status-item" id="service-worker"> <div class="status-item" id="service-worker">
</div>
</div> </div>
</div> </div>
</div>
<br /> <br />
<label for="nojs"> <label for="nojs">
<input id="nojs" type="checkbox" /> <input id="nojs" type="checkbox" />
No JavaScript No JavaScript
</label> </label>
<br /> <br />
<br /> <br />
<table id="list" class="hidden"> <div class="list-wrapper">
<thead> <table id="list" class="hidden">
<tr> <thead>
<td>#</td> <tr>
<td>Link</td> <td>#</td>
<td>Created at</td> <td>Link</td>
</tr> <td>Created at</td>
</thead> </tr>
<tbody> </thead>
</tbody> <tbody>
</table> </tbody>
</table>
</div>
</article>
<footer>
Created by <a href="http://ondrejsynacek.com">Ondrej Synacek</a>
</footer>
<script> <script>