Skip to content

Commit

Permalink
Migrate existing web interface to Svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
Jalle19 committed Oct 6, 2023
1 parent fb3706d commit 49f3e88
Show file tree
Hide file tree
Showing 29 changed files with 256 additions and 246 deletions.
2 changes: 0 additions & 2 deletions web-ng/src/routes/+page.svelte

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
83 changes: 0 additions & 83 deletions webif/eachwatt.css

This file was deleted.

134 changes: 0 additions & 134 deletions webif/eachwatt.js

This file was deleted.

27 changes: 0 additions & 27 deletions webif/index.html

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
56 changes: 56 additions & 0 deletions webif/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<style>
:global(*),
:global(html) {
margin: 0;
padding: 0;
border: 0;
}
:global(html) {
width: 100%;
height: 100%;
}
:global(body) {
width: 100%;
height: 100%;
position: relative;
}
:global(h1),
:global(h2),
:global(p),
:global(table) {
margin-bottom: 1em;
}
:global(table) {
width: 100%;
}
:global(th),
:global(td) {
text-align: left;
padding: 0 0.4em 0.4em 0;
}
:global(th) {
border-bottom: 1px solid #000;
}
.container {
max-width: 1200px;
margin: 0 auto;
clear: both;
}
:global(.cell-right-align) {
text-align: right;
}
</style>
<svelte:head>
<title>EachWatt</title>
</svelte:head>
<div class="container">
<slot />
</div>
Loading

0 comments on commit 49f3e88

Please sign in to comment.