Initial style, formatting tweaks

This commit is contained in:
Zachary Talis 2021-06-23 11:47:42 -04:00
parent d069a02040
commit b16f8d7bf0
14 changed files with 52 additions and 11 deletions

View file

@ -2,4 +2,4 @@
Simple leaderboard site template updated via Python scripts!
Designed for use within speedrun communities.
Designed for use within speedrunning communities.

BIN
assets/fonts/FiraCode.ttf Normal file

Binary file not shown.

BIN
assets/fonts/Lexend.ttf Normal file

Binary file not shown.

3
categories/CATEGORIES.md Normal file
View file

@ -0,0 +1,3 @@
# paceboard/categories
Directory for category pages created by `generate.py`, corresponding to entries in `categories.csv` and `runs.csv`.

View file

@ -0,0 +1,28 @@
@font-face {
font-family: "Fira Code";
src: url("../assets/fonts/FiraCode.ttf");
}
@font-face {
font-family: "Lexend";
src: url("../assets/fonts/Lexend.ttf");
}
body {
color: #352B38;
background-color: #EDF1EA;
font-family: "Fira Code", "Courier New", Courier, monospace;
font-style: normal;
font-weight: 300;
margin: auto;
margin-top: 50px;
margin-bottom: 10vmin;
max-width: min(99%, 70em);
overflow-wrap: break-word;
overflow-y: scroll;
}
h1, h2 {
font-family: "Lexend", "Arial", Arial, sans-serif;
text-align: center;
}

1
csv/categories.csv Normal file
View file

@ -0,0 +1 @@
tk-category-name,tk-category-dashname,tk-category-description,tk-category-rules
1 tk-category-name tk-category-dashname tk-category-description tk-category-rules

View file

@ -0,0 +1 @@
tk-game,tk-description,tk-url,tk-logo-alt
1 tk-game tk-description tk-url tk-logo-alt
1 tk-game tk-description tk-url tk-logo-alt

View file

@ -0,0 +1 @@
id,date,game,category,runner,verifier,link,comment
1 id date game category runner verifier link comment
1 id date game category runner verifier link comment

View file

@ -1,3 +1,3 @@
# paceboard/runs
Directory for run pages created by `generate-runs.py`, corresponding to entries in `runs.xml`.
Directory for run pages created by `generate.py`, corresponding to entries in `runs.csv`.

0
scripts/generate.py Normal file
View file

1
templates/assets Symbolic link
View file

@ -0,0 +1 @@
/d/cm/code/repos/paceboard/assets

View file

@ -5,22 +5,28 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>tk-title</title>
<title>tk-title - tk-category-name</title>
<link rel="stylesheet" href="css/style.css">
<link rel="icon" href="assets/img/logo.png">
<meta property="og:title" content="tk-title" />
<meta property="og:title" content="tk-game - tk-category-name" />
<meta property="og:type" content="website" />
<meta property="og:description" content="tk-description" />
<meta property="og:url" content="tk-url" />
<meta property="og:description" content="tk-category-description" />
<meta property="og:url" content="tk-url/tk-category-dashname.html" />
<meta property="og:image:secure_url" content="https://tk-url/assets/img/logo.png" />
<meta property="og:image:alt" content="tk-logo-alt" />
<!-- Placeholder og:locale, replace content with your own if desired. -->
<meta property="og:locale" content="en_US" />
</head>
<body>
<p>Testing!</p>
<h1>tk-game - tk-category-name</h1>
<p>tk-category-description</p>
<h2>Leaderboard</h2>
<!-- lk-categories -->
</body>
</html>

View file

@ -5,14 +5,14 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>tk-title - Speedruns Board</title>
<title>tk-title - Leaderboard</title>
<link rel="stylesheet" href="css/style.css">
<link rel="icon" href="assets/img/logo.png">
<meta property="og:title" content="tk-game - Speedruns Board" />
<meta property="og:title" content="tk-game - Speedruns Leaderboard" />
<meta property="og:type" content="website" />
<meta property="og:description" content="tk-description" />
<meta property="og:description" content="tk-game-description" />
<meta property="og:url" content="tk-url" />
<meta property="og:image:secure_url" content="https://tk-url/assets/img/logo.png" />
<meta property="og:image:alt" content="tk-logo-alt" />
@ -22,7 +22,7 @@
</head>
<body>
<h1>tk-game - Speedruns Board</h1>
<h1>tk-game - Speedruns Leaderboard</h1>
<p>tk-description</p>
<h2>Categories</h2>