-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ugo-ESP32 now serves HTML files from SPIFFS, processing them as templ…
…ates (Issue #4). Some additional work is needed to maintain 302 return codes and handle redirect web page via SPIFFS.
- Loading branch information
Showing
5 changed files
with
432 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,209 @@ | ||
html, body { | ||
margin: 0; | ||
padding: 0; | ||
font-size: 16px; | ||
background: #444; | ||
} | ||
|
||
body, * { | ||
box-sizing: border-box; | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; | ||
} | ||
|
||
a { | ||
color: inherit; | ||
text-decoration: underline; | ||
} | ||
|
||
.wrapper { | ||
padding: 30px 0; | ||
} | ||
|
||
.c { | ||
margin: auto; | ||
padding: 40px; | ||
max-width: 500px; | ||
color: #fff; | ||
background: #000; | ||
box-shadow: 0 0 100px rgba(0, 0, 0, .5); | ||
border-radius: 50px; | ||
} | ||
|
||
.r { | ||
margin-bottom: 15px; | ||
} | ||
|
||
h1 { | ||
margin: 0 0 10px 0; | ||
font-family: Arial, sans-serif; | ||
font-weight: 300; | ||
font-size: 2rem; | ||
} | ||
|
||
h1+p { | ||
margin-bottom: 30px; | ||
} | ||
|
||
h2 { | ||
margin: 30px 0 0 0; | ||
font-family: Arial, sans-serif; | ||
font-weight: 300; | ||
font-size: 1.5rem; | ||
} | ||
|
||
p { | ||
font-size: .85rem; | ||
margin: 0 0 20px 0; | ||
color: rgba(255, 255, 255, .7); | ||
} | ||
|
||
label { | ||
display: block; | ||
width: 100%; | ||
margin-bottom: 5px; | ||
} | ||
|
||
input[type="text"], input[type="password"] { | ||
display: inline-block; | ||
width: 100%; | ||
height: 42px; | ||
line-height: 38px; | ||
padding: 0 20px; | ||
color: #fff; | ||
border: 2px solid #666; | ||
background: none; | ||
border-radius: 5px; | ||
transition: .15s; | ||
box-shadow: none; | ||
outline: none; | ||
} | ||
|
||
input[type="text"]:hover, input[type="password"]:hover { | ||
border-color: #ababab; | ||
} | ||
|
||
input[type="text"]:focus, input[type="password"]:focus { | ||
border-color: #fff; | ||
} | ||
|
||
button { | ||
display: block; | ||
width: 100%; | ||
padding: 10px 20px; | ||
font-size: 1rem; | ||
font-weight: 700; | ||
text-transform: uppercase; | ||
background: #ff9c29; | ||
border: 0; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
transition: .15s; | ||
outline: none; | ||
} | ||
|
||
button:hover { | ||
background: #ffba66; | ||
} | ||
|
||
.github { | ||
margin-top: 15px; | ||
text-align: center; | ||
} | ||
|
||
.github a { | ||
color: #ff9c29; | ||
transition: .15s; | ||
} | ||
|
||
.github a:hover { | ||
color: #ffba66; | ||
} | ||
|
||
.bat p { | ||
margin: 0 0 5px 0; | ||
text-align: center; | ||
text-transform: uppercase; | ||
font-size: .8rem; | ||
} | ||
|
||
.bat>div { | ||
position: relative; | ||
margin: 0 auto 20px; | ||
width: 300px; | ||
height: 10px; | ||
background: #272727; | ||
border-radius: 5px; | ||
} | ||
|
||
.bat>div>div { | ||
position: absolute; | ||
left: 0; | ||
top: 0; | ||
bottom: 0; | ||
border-radius: 5px; | ||
min-width: 10px; | ||
} | ||
|
||
.bat-charging { | ||
width: 100%; | ||
background-color: #3e7ea5; | ||
} | ||
|
||
.bat-100 { | ||
width: 100%; | ||
background-color: #7ca53e; | ||
} | ||
|
||
.bat-90 { | ||
width: 90%; | ||
background-color: #7ca53e; | ||
} | ||
|
||
.bat-80 { | ||
width: 80%; | ||
background-color: #7ca53e; | ||
} | ||
|
||
.bat-70 { | ||
width: 70%; | ||
background-color: #7ca53e; | ||
} | ||
|
||
.bat-60 { | ||
width: 60%; | ||
background-color: #9ea53e; | ||
} | ||
|
||
.bat-50 { | ||
width: 50%; | ||
background-color: #9ea53e; | ||
} | ||
|
||
.bat-40 { | ||
width: 40%; | ||
background-color: #a57d3e; | ||
} | ||
|
||
.bat-30 { | ||
width: 40%; | ||
background-color: #a57d3e; | ||
} | ||
|
||
.bat-20 { | ||
width: 40%; | ||
background-color: #a57d3e; | ||
} | ||
|
||
.bat-10 { | ||
width: 40%; | ||
background-color: #a57d3e; | ||
} | ||
|
||
.mac { | ||
display: inline-block; | ||
margin-top: 8px; | ||
padding: 2px 5px; | ||
color: #fff; | ||
background: #444; | ||
border-radius: 3px; | ||
} |
Oops, something went wrong.