Commit c5e413d3 authored by Turner Hall's avatar Turner Hall
Browse files

Added error pages and css

parent 065e3612
ErrorDocument 404 /errors/err404.html
ErrorDocument 403 /errors/err403.html
ErrorDocument 500 /errors/catchall.html
ErrorDocument 401 /errors/catchall.html
\ No newline at end of file
......@@ -6,6 +6,7 @@ all:
./swx_sitemap $(DESTDIR) > $(DESTDIR)/sitemap.xml
gzip --best -c $(DESTDIR)/sitemap.xml > $(DESTDIR)/sitemap.gz
./swx_plan $(DESTDIR) > $(DESTDIR)/siteplan.html
cp .htaccess $(DESTDIR)
clean:
rm -rf *.static
......@@ -14,4 +15,4 @@ force:
find $(SOURCEDIR) -exec touch {} \;
make all
serve:
cd $(DESTDIR) && python3 -m http.server && x-www-browser http://localhost:8000
sudo cp -R gnu3.static/. /srv/http/
# Error! Something went wrong!
There appears to have been an error, what did you manage to do?
# Error 403
Forbidden! You tried to access something you should not have... or I'm an idiot and misconfigured the site.
# Error 404
The page you requested was not found.
body{
margin:1em auto;
max-width:40em;
padding:0 .62em;
font:1.2em/1.62 sans-serif;
}
background: url(img/amber.png) no-repeat center fixed;
background-size: cover;
font-family: Verdana;
color: white;
margin: 1em auto;
max-width: 40em;
padding: 0 .62em;
}
h1,h2,h3 {
line-height:1.2;
line-height: 1.2;
}
a {
color: #336699;
text-decoration: none;
color: orange;
text-decoration: none;
font-weight: bold;
cursor: pointer;
}
a:hover {
text-decoration: underline;
color: orange;
text-decoration: none;
font-weight: bold;
border-bottom: 1px solid orange;
cursor: pointer;
}
details {
color: orange;
}
img {
max-width:100%;
max-width: 100%;
}
header {
text-align:center;
padding:10px;
background-color:gray;
width:34em;
margin-left:auto;
margin-right:auto;
text-align: center;
padding: 10px;
width: 34em;
margin-left: auto;
margin-right: auto;
}
header a {
color:white;
text-shadow: .3em .3em .3em green ;
color: #00fe00;
border: 0;
}
.headerTitle {
font-size:1.3em;
font-size: 1.3em;
}
.headerSubtitle {
font-size:0.85em;
font-style:italic;
width:100%;
font-size: 0.85em;
font-style: italic;
width: 100%;
}
nav a.thisPage {
......@@ -51,27 +63,31 @@ nav a.thisPage {
}
footer {
font-size:0.8em;
background-color:transparent;
text-align:center;
margin:auto;
padding:.2em;
width:50%;
border-top:1px solid #333 ;
font-size: 0.8em;
background-color: rgba(0,0,0,0.7);
text-align: center;
margin: auto;
padding: .2em;
width: 50%;
border-top: 1px solid #f0a000 ;
}
footer img {
margin-left:.2em;
margin-right:.2em;
vertical-align:middle;
margin-left: .2em;
margin-right: .2em;
vertical-align: middle;
}
main {
text-align:left;
margin:auto;
padding:1em 3em 1em 3em;
line-height:1.5;
max-width:60%;
text-align: left;
margin: auto;
padding: 1em 3em 1em 3em;
line-height: 1.5;
max-width: 80%;
background-color: rgba(0,0,0,0.7);
overflow: auto;
border-style: solid;
border-color: #f0a000 transparent;
}
......@@ -4,7 +4,7 @@
TITLE="GNU 3"
SUBTITLE="Turner Hall's website"
# Black list. Won't be shown in menu
BL="favicon.svg style.css style.min.css robots.txt Images DL favicon.png apple-touch-icon.png"
BL="favicon.svg style.css style.min.css robots.txt Images DL favicon.png apple-touch-icon.png errors"
HOSTNAME="localhost" # CHANGE FOR ACTUAL DEPLOYMENT
PROTOCOL="http://" # CHANGE FOR ACTUAL DEPLOYMENT
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment