improve nginx html

This commit is contained in:
Jake Runzer
2021-10-12 17:50:37 -07:00
parent 3e74d41db9
commit f0b9423e25
4 changed files with 53 additions and 40 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

@@ -1,46 +1,15 @@
<html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>NGINX on Railway</title>
<meta name="description" content="Choo Choo!" />
<style>
body {
margin: 0;
padding: 2rem;
background-color: hsl(250, 24%, 9%);
color: hsl(0, 0%, 100%);
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir,
segoe ui, helvetica neue, helvetica, Ubuntu, roboto, noto, arial,
sans-serif;
}
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
main {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100vh;
}
h1 {
font-size: 48px;
margin: 1rem 0;
}
.logo {
width: 8rem;
height: 8rem;
margin-bottom: 2rem;
}
a {
color: hsl(270, 70%, 65%);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
<link rel="stylesheet" href="/styles.css?v=1.0" />
</head>
<body>
@@ -54,12 +23,15 @@
<h1>NGINX on Railway</h1>
<p>
This is an example of an NGINX static site running on Railway.
Choo Choo! This is an example of an NGINX static site running on
Railway.
<a
href="https://github.com/railwayapp/starters/tree/master/examples/nginx"
>View source</a
>.
</p>
</main>
<script src="/script.js"></script>
</body>
</html>

View File

@@ -0,0 +1 @@
console.log("Choo choo!");

View File

@@ -0,0 +1,40 @@
body {
margin: 0;
padding: 2rem;
background-color: hsl(250, 24%, 9%);
color: hsl(0, 0%, 100%);
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui,
helvetica neue, helvetica, Ubuntu, roboto, noto, arial, sans-serif;
}
main {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100vh;
}
h1 {
font-size: 48px;
margin: 1rem 0;
}
.logo {
width: 8rem;
height: 8rem;
margin-bottom: 2rem;
}
p {
line-height: 1.6;
}
a {
color: hsl(270, 70%, 65%);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}