ソースを参照

Add nightly page; adjust styling

master
Fen Dweller 5年前
コミット
25cc6e0201
4個のファイルの変更44行の追加6行の削除
  1. +4
    -0
      app.py
  2. +10
    -0
      static/sexy.css
  3. +7
    -6
      templates/index.html
  4. +23
    -0
      templates/nightly.html

+ 4
- 0
app.py ファイルの表示

@@ -13,6 +13,10 @@ app = Flask(
def index():
return render_template("index.html")

@app.route('/nightly')
def nightly():
return render_template("nightly.html")

@app.route('/agegate')
def agegate():
url = request.args.get("to", default="/")


+ 10
- 0
static/sexy.css ファイルの表示

@@ -56,6 +56,15 @@ body {
background-color: #100d1e;
}

.game {
font-size: 100px;
}

.nightly {
background-color: #5b285f;
color: #cd79cd;
}

.box {
margin: 5vw;
flex-wrap: center;
@@ -80,6 +89,7 @@ body {
a {
font-size: 40px;
color: #b6acd8;
text-decoration: none;
}

a:hover {


+ 7
- 6
templates/index.html ファイルの表示

@@ -6,16 +6,17 @@
</head>
<body>
<div class="box">
<h1 class="heading">nothing here yet lol</h1>
<div class="body">Try these games I guess</div>
<h1 class="heading">Fen's Games</h1>
<div class="body"><a href="https://discord.gg/vqcKVV6">Join the Discord server!</a></div>
<div class="body"><a href="/nightly">View unstable nightly builds</a></div>
<br>
<a href="https://stroll.crux.sexy">Stroll</a>
<a class="game" href="https://stroll.crux.sexy">Stroll</a>
<br>
<a href="https://feast.crux.sexy">Feast</a>
<a class="game" href="https://feast.crux.sexy">Feast</a>
<br>
<a href="https://gorge.crux.sexy">Gorge</a>
<a class="game" href="https://gorge.crux.sexy">Gorge</a>
<br>
<a href="https://satiate.crux.sexy">Satiate</a>
<a class="game" href="https://satiate.crux.sexy">Satiate</a>
</div>
</body>


+ 23
- 0
templates/nightly.html ファイルの表示

@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<title>crux.sexy</title>
<link rel="stylesheet" type="text/css" href="sexy.css">
</head>
<body class="nightly">
<div class="box">
<h1 class="heading">Fen's Games</h1>
<div class="body"><a href="https://discord.gg/vqcKVV6">Join the Discord server!</a></div>
<div class="body"><a href="/">View stable releases</a></div>
<br>
<a class="game" href="https://stroll.crux.sexy">Stroll</a>
<br>
<a class="game" href="https://feast.crux.sexy">Feast</a>
<br>
<a class="game" href="https://gorge.crux.sexy">Gorge</a>
<br>
<a class="game" href="https://satiate.crux.sexy">Satiate</a>
</div>
</body>
</html>

読み込み中…
キャンセル
保存