The font is now locally-sources, like tomatoes

This commit is contained in:
justine 2022-03-17 18:11:38 +01:00
parent 55cf1d377c
commit db4ee348a0
11 changed files with 12 additions and 10 deletions

View File

@ -24,8 +24,6 @@ pygmentize -S dracula -f html -a .codehilite > styles.css
* Replace all css for .codehilite in src/static/main.css with what's in styles.css
## Future features, todo
* Put the pickle file in a folder by itself so it works with docker volumes
* Test the dockerfile
* A squirrel ascii picture somewhere in the page :3
* A link "export all in markdown"
* Replace pickle with sqlite or smth

View File

@ -13,8 +13,8 @@ services:
#ports:
#- 8080:8080
labels:
- "traefik.http.routers.gitea.rule=Host(`notes.sq.lan`)"
- "traefik.http.services.gitea.loadbalancer.server.port=8080"
- "traefik.http.routers.sqnotes.rule=Host(`notes.sq.lan`)"
- "traefik.http.services.sqnotes.loadbalancer.server.port=8080"
- "traefik.docker.network=traefik_traefik"
networks:
traefik_traefik:

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
src/static/sspro-ita.ttf Normal file

Binary file not shown.

BIN
src/static/sspro.ttf Normal file

Binary file not shown.

View File

@ -1,3 +1,7 @@
@font-face {
src: {{ url_for('static', filename='sspro-ita.ttf') }};
}
html {
background-color: #22242e;
font-family: 'Source Sans Pro';

View File

@ -2,12 +2,12 @@
<head>
<link rel="stylesheet" href="{{ url_for('static', filename='styles/main.css') }}" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href='https://fonts.googleapis.com/css?family=Source Sans Pro' rel='stylesheet'>
<title>squip_notes</title>
<!-- <link href='https://fonts.googleapis.com/css?family=Source Sans Pro' rel='stylesheet'> -->
<title>sqnotes</title>
</head>
<body>
<h1 class="pagetitle">$ ~/squip_notes</h1>
<h1 class="pagetitle">$ ~/sqnotes</h1>
<div class="div1">
<form action="." method="POST">
<textarea type="text" name="title" class="title">{{ ntitle }}</textarea><br>

View File

@ -2,12 +2,12 @@
<head>
<link rel="stylesheet" href="{{ url_for('static', filename='styles/main.css') }}" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href='https://fonts.googleapis.com/css?family=Source Sans Pro' rel='stylesheet'>
<title>squip_notes</title>
<!--<link href='https://fonts.googleapis.com/css?family=Source Sans Pro' rel='stylesheet'> -->
<title>sqnotes</title>
</head>
<body>
<h1 class="pagetitle">$ ~/squip_notes</h1>
<h1 class="pagetitle">$ ~/sqnotes</h1>
<div class="div1">
<form action="." method="POST">
<input type="text" name="title" class="title" placeholder="Title"><br>