Skip to content

Commit

Permalink
Modesta v3
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexFlipnote committed Apr 23, 2021
1 parent 7da9af5 commit 2af8d41
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions index.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ async def coffee(filename):
return await send_from_directory(config.imagefolder, filename)


@app.route("/assets/images/<filename>")
@app.route("/assets/<filename>")
async def template_images(filename):
return await send_from_directory("templates/images", filename)
return await send_from_directory("templates/assets", filename)


@app.route("/random")
Expand Down
10 changes: 5 additions & 5 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<title>{{ config.title }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/>
<link href="https://modesta.alexflipnote.dev/css/modesta.css" type="text/css" rel="stylesheet">
<link href="{{ config.domain }}assets/modesta.css" type="text/css" rel="stylesheet">

<meta name="theme-color" content="#d35400">
<meta content="{{ config.domain }}assets/profile.png" property="og:image" />
Expand All @@ -13,7 +13,7 @@
<meta content="{{ config.description }}" property="og:description" />
<meta content="{{ config.description }}" name="description" />
</head>
<body class="github-font-standard">
<body class="dark-theme github">
<section class="fullscreen">
<div class="background" style="background-image: url('{{ background }}');"></div>
<div class="center-object">
Expand All @@ -22,9 +22,9 @@ <h1 class="title">☕ {{ config.title }}</h1>
<span class="undertitle">{{ config.description }}<br><i>Images in API: <b>{{ images }}</b></i></span>
</section>
<div class="buttons">
<a href="random" class="btn animation turquoise" target="_blank">Random coffee</a>
<a href="random.json" class="btn animation amethyst" target="_blank">Random coffee [ JSON ]</a>
<a href="https://github.com/AlexFlipnote/CoffeeAPI" class="btn animation github" target="_blank">GitHub</a>
<a href="random" class="btn animation turquoise-bg" target="_blank">Random coffee</a>
<a href="random.json" class="btn animation amethyst-bg" target="_blank">Random coffee [ JSON ]</a>
<a href="https://github.com/AlexFlipnote/CoffeeAPI" class="btn animation github-bg" target="_blank">GitHub</a>
</div>
</div>
</section>
Expand Down
Binary file removed templates/profile.png
Binary file not shown.

0 comments on commit 2af8d41

Please sign in to comment.