Skip to content

Commit

Permalink
feat: Add logo, styles and additional config parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
fussel178 committed Mar 5, 2022
1 parent 0bda436 commit ede0978
Show file tree
Hide file tree
Showing 6 changed files with 372 additions and 23 deletions.
5 changes: 5 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Order allow,deny
Deny from all
<FilesMatch ^(index\.php)?$>
Allow from all
</FilesMatch>
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ Sends a WOL packet to the specified host on website request and redirects to the
## `config.json` definition

| Key | Description |
|------------|------------------------------------------------------------------------------|
| `host.mac` | The MAC address of the adapter that you want to wake (get it with `ip addr`) |
| `host.ip` | The IP address of the device you want to wake (only used for routing) |
| `timeout` | The timeout between refreshes in the browser |
| Key | Description |
|------------|----------------------------------------------------------------------------------|
| `host.mac` | The MAC address of the adapter that you want to wake (get it with `ip addr`) |
| `host.ip` | The IP address of the device you want to wake (only used for routing) |
| `timeout` | The timeout between refreshes in the browser (`0` disables automatic refreshing) |
| `details` | Show details to the client (e.g. try count, destination url, etc.) |
3 changes: 2 additions & 1 deletion config.sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"mac": "AA:BB:CC:DD:EE:FF",
"ip": "192.168.0.2"
},
"timeout": 5
"timeout": 5,
"details": false
}
131 changes: 131 additions & 0 deletions images/booting-server.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
107 changes: 107 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-weight: normal;
}

html, body, :root {
font-family: 'Main', Roboto, sans-serif;
background: #ffffff;
color: #1f1f1f;
max-width: 1280px;
margin: 0 auto;
text-align: center;
}

h1 {
font-size: 2rem;
}

body {
font-size: 1rem;
}

code {
padding: 0.125rem;
margin: 0.125rem;
border: 1px solid #b9b9b9;
border-radius: 0.5rem;
font-size: 1rem;
}

body > div {
width: 100%;
min-height: 100vh;
padding: 0 1rem;
display: flex;
justify-content: center;
align-items: center;
}

body > div > div {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
}

body > div > div > h1 {
padding-bottom: 2rem;
font-weight: 500;
text-transform: uppercase;
}

body > div > div > img {
width: 20rem;
}

.subtitle {
color: #b9b9b9;
}

.progress-container {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
padding-top: 2rem;
padding-bottom: 1rem;
}

.progress-container > div {
opacity: 1;
transition: opacity 500ms ease;
width: 2rem;
height: 2rem;
margin: 0 1rem;
background: #b9b9b9;
border-radius: 50%;
}

.progress-container > div.hide {
opacity: 0;
}

table.details {
padding: 1rem 1rem;
table-layout: fixed;
word-wrap: anywhere;
}

@media screen and (max-height: 500px), screen and (max-width: 380px) {
body > div > div > img {
width: 10rem;
}

.progress-container {
padding-top: 1rem;
padding-bottom: 0.5rem;
}

.progress-container > div {
width: 1rem;
height: 1rem;
margin: 0 0.5rem;
}
}
Loading

0 comments on commit ede0978

Please sign in to comment.