Browse Source

Clean up the rest and add font-display: swap

master
Jens Pitkänen 5 months ago
parent
commit
283f9db72b
18 changed files with 2 additions and 347 deletions
  1. +0
    -4
      README.md
  2. +0
    -0
      build.py
  3. +2
    -0
      public/basic.css
  4. +0
    -1
      requirements.txt
  5. +0
    -62
      static/basic.css
  6. BIN
      static/favicon.ico
  7. BIN
      static/fonts/Bitter-Italic.otf
  8. +0
    -95
      static/fonts/Bitter-License.txt
  9. BIN
      static/fonts/Bitter-Regular.otf
  10. BIN
      static/fonts/SourceCodePro-Black.ttf
  11. BIN
      static/fonts/SourceCodePro-Bold.ttf
  12. +0
    -93
      static/fonts/SourceCodePro-License.txt
  13. BIN
      static/fonts/SourceCodePro-Light.ttf
  14. BIN
      static/fonts/SourceCodePro-Medium.ttf
  15. BIN
      static/fonts/SourceCodePro-Regular.ttf
  16. +0
    -52
      static/index.md
  17. +0
    -22
      templates/index.html
  18. +0
    -18
      templates/plain.html

+ 0
- 4
README.md View File

@@ -1,7 +1,3 @@
# neon.moe
This repository contains my personal website, visible on the public
web at [neon.moe](https://neon.moe).

`index.html` is generated from `index.md` by `build.py`, but not
gitignored because the site is easier to serve that way (just serve
files from `public` to the internet).

+ 0
- 0
build.py View File


+ 2
- 0
public/basic.css View File

@@ -1,5 +1,6 @@
@font-face {
font-family: "Bitter";
font-display: swap;
src: local("Bitter Regular"),
local("Bitter-Regular"),
url("fonts/Bitter-Regular.woff2"),
@@ -8,6 +9,7 @@

@font-face {
font-family: "Bitter";
font-display: swap;
font-style: italic;
src: local("Bitter Italic"),
local("Bitter-Italic"),


+ 0
- 1
requirements.txt View File

@@ -1 +0,0 @@
mistletoe

+ 0
- 62
static/basic.css View File

@@ -1,62 +0,0 @@
@font-face {
font-family: "Bitter";
src: local("Bitter Regular"),
local("Bitter-Regular"),
url("fonts/Bitter-Regular.otf");
}

@font-face {
font-family: "Bitter";
font-style: italic;
src: local("Bitter Italic"),
local("Bitter-Italic"),
url("fonts/Bitter-Italic.otf");
}

html {
font-family: "Bitter", system-ui, serif;
}

@media (min-width: 42em) { body { width: 40em; } }
@media (min-width: 74ch) { body { width: 70ch; } }

@media (prefers-color-scheme: dark) {
body { background: #333; color: #CCC; }
h1, h2, h3, h4, h5, h6 { color: #EEE; }
a { color: #BFCFFF; }
a:visited { color: #E2BEFF; }
a:hover { color: #D3BFFF; }
a:active { color: #FFBFD8; }
}
@media (prefers-color-scheme: light) {
body { background: #FFF; color: #444; }
h1, h2, h3, h4, h5, h6 { color: #333; }
a { color: #0037EB; }
a:visited { color: #7600D6; }
a:hover { color: #4C00EB; }
a:active { color: #EB005E; }
}

body {
margin: auto;
padding: 2em;
}

@media (max-width: 42em) {
body {
width: 90%;
width: calc(100% - 2em);
height: 100%;
padding: 0;
margin: auto;
}
}

a, button {
transition: 0.1s color;
}

small {
font-style: italic;
font-weight: light;
}

BIN
static/favicon.ico View File

Before After

BIN
static/fonts/Bitter-Italic.otf View File


+ 0
- 95
static/fonts/Bitter-License.txt View File

@@ -1,95 +0,0 @@
Copyright (c) 2013, Sol Matas (sol@huertatipografica.com.ar), with Reserved Font Names 'Bitter'



This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

BIN
static/fonts/Bitter-Regular.otf View File


BIN
static/fonts/SourceCodePro-Black.ttf View File


BIN
static/fonts/SourceCodePro-Bold.ttf View File


+ 0
- 93
static/fonts/SourceCodePro-License.txt View File

@@ -1,93 +0,0 @@
Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

BIN
static/fonts/SourceCodePro-Light.ttf View File


BIN
static/fonts/SourceCodePro-Medium.ttf View File


BIN
static/fonts/SourceCodePro-Regular.ttf View File


+ 0
- 52
static/index.md View File

@@ -1,52 +0,0 @@
# NEON • MOE
## Bio
My name is Jens Pitkänen, on the [fediverse][fedi-wiki] I go by
[Neon][fedi-me]. I study mathematics at the University of Helsinki,
and I've been writing games and game-adjacent software since 2011.

For a quick overview of my creations, see the [Creations][creations]
section. For a complete list, see the [archive][archive]. The archive
has a filter system, which you can also use to get an overview of
technologies I'm familiar with.

## Creations
I release games and game-adjacent projects on [nc.itch.io][itch]. I
strive to release my code as [free software][free-software], and said
code lives on [git.neon.moe][git], [archive.neon.moe][archive], and
[GitHub/neonmoe][github].

Here are some notable examples of my work:
- [Solitude][solitude], a VR tribute to Shelter
- [Neon Fishing][neon-fishing], a virtual reality fishing experience
- [AI-Bot Problem][ai-bot-problem], a good puzzle game

## Contact
Mention [@neon@fedi.neon.moe][fedi-me] on the [fediverse][fedi-wiki]
for quick replies. You can also send email to [jens@neon.moe][email],
but expect a slower reply. My PGP public key can be found on
[Keybase][keybase].

This page agrees that [simple web is cute][simple-web-is-cute], and
was [written][original] in [Markdown][markdown]. Keep the web
[simple][html] and [cute][css].

<small>All rights reversed Ⓚ Jens Pitkänen</small>

[fedi-wiki]: https://en.wikipedia.org/wiki/Fediverse "The Wikipedia entry for the Fediverse"
[free-software]: https://www.gnu.org/philosophy/free-sw.en.html "The FSF page explaining free software"
[fedi-me]: https://fedi.neon.moe/neon "My profile on the fediverse"
[creations]: #creations "The section of this page concerning my creations"
[archive]: https://archive.neon.moe "A site containing screenshots, descriptions and downloads for all of my archived creations."
[itch]: https://nc.itch.io "My profile page on itch.io"
[git]: https://git.neon.moe/neon "My personal Git server"
[github]: https://github.com/neonmoe "My GitHub profile"
[solitude]: https://nc.itch.io/solitude "The itch.io page of a VR world painting game I made."
[neon-fishing]: https://nc.itch.io/neon-fishing "The itch.io page of a neon VR fishing game I made."
[ai-bot-problem]: https://nc.itch.io/ai-bot-problem "The itch.io page of a neat puzzle game I made."
[email]: mailto:jens@neon.moe "My email"
[keybase]: https://keybase.io/neonmoe "My Keybase profile"
[simple-web-is-cute]: https://simpleweb.iscute.ovh/ "It is!"
[original]: /index.md "This page, but in unrendered, plain-text Markdown."
[markdown]: https://commonmark.org/ "The specific edition of Markdown I refer to."
[html]: https://developer.mozilla.org/en-US/docs/Web/HTML "HTML"
[css]: https://developer.mozilla.org/en-US/docs/Web/CSS "CSS"

+ 0
- 22
templates/index.html View File

@@ -1,22 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="flattr:id" content="12d6o1">
<title>neon • moe</title>
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon">
<link href="stylized.css" rel="stylesheet" type="text/css" title="Stylized">
<link href="basic.css" rel="alternate stylesheet" type="text/css" title="Basic">
</head>
<body>
<div id="container">
<!-- Body -->
</div>
<p id="nav" align="center">
[<a href="plain/">
Plain version of the site
</a>]
</p>
</body>
</html>

+ 0
- 18
templates/plain.html View File

@@ -1,18 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="flattr:id" content="12d6o1">
<title>neon • moe</title>
<link href="../favicon.ico" rel="shortcut icon" type="image/x-icon">
<link href="../basic.css" rel="stylesheet" type="text/css" title="Basic">
</head>
<body>
<!-- Body -->
<br>
<p align="center">
<small><a href="../">Back to the normal version of this site</a></small>
</p>
</body>
</html>

Loading…
Cancel
Save