Skip to content

Commit

Permalink
🎨 icons, colors, footers, versions
Browse files Browse the repository at this point in the history
  • Loading branch information
wpwwhimself committed Apr 29, 2024
1 parent bc5ebdb commit 24767c9
Show file tree
Hide file tree
Showing 12 changed files with 358 additions and 76 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Pennypincher
![pennypincher](app/public/splash.svg)

## 🔧 Installation
1. Create your own `.env` file out of `.env.example` found in the root folder.
Expand Down
4 changes: 3 additions & 1 deletion app/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ useHead({

<template>
<AppHeader />
<NuxtLoadingIndicator />
<NuxtLoadingIndicator
color="hsl(var(--acc))"
/>
<div id="main-wrapper">
<NuxtPage />
</div>
Expand Down
4 changes: 4 additions & 0 deletions app/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ thead th, tfoot th{
}
.flex-right{
flex-direction: row;

&.backwards {
flex-direction: row-reverse;
}
}
.flex-down{
flex-direction: column;
Expand Down
38 changes: 34 additions & 4 deletions app/components/AppFooter.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,43 @@
<script setup lang="ts">
import pkg from "../package.json"
const appConfig = useAppConfig()
const displayYears = () => {
const output = [2024, (new Date()).getFullYear()]
return (output[0] == output[1])
? output[0].toString()
: `${output[0]} – ${output[1]}`
}
</script>

<template>
<footer>
<AppSegment>
<template>
<span>{{ appConfig.title }}</span>
</template>
<div id="footer-container" class="flex-right backwards">
<AppLogo small />
<div class="texts flex-right">
<span>{{ appConfig.title }}, v. {{ pkg.version }}</span>
<span class="ghost">Built by <a href="http://wpww.pl/" target="_blank">WPWW</a></span>
<span>
<a href="https://creativecommons.org/licenses/by-sa/3.0/pl/">&copy; CC BY-SA 3.0</a> {{ displayYears() }}
</span>
</div>
</div>
</AppSegment>
</footer>
</template>
</template>

<style scoped>
#footer-container {
align-items: center;
}
.texts {
text-align: right;
& span {
display: block;
}
}
</style>
20 changes: 19 additions & 1 deletion app/components/AppLogo.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
<script setup lang="ts">
const params = defineProps<{
small?: boolean,
}>()
</script>

<template>
<img src="" alt="logo">
<img
src="/icon.svg" alt="logo"
:class="[
small && 'small',
].filter(Boolean).join(' ')"
>
</template>

<style scoped>
img {
max-width: 3.5em;
&.small {
height: 1.75em;
}
}
footer{
background-color: black;
color: white;
Expand Down
9 changes: 8 additions & 1 deletion app/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ export default defineNuxtConfig({
devtools: { enabled: true },
css: ['~/assets/css/main.css'],
app: {
pageTransition: { name: "slide", mode: "out-in" }
pageTransition: { name: "slide", mode: "out-in" },
head: {
link: [{
rel: "icon",
href: "icon.svg",
type: "image/svg+xml",
}]
}
},
})
6 changes: 3 additions & 3 deletions app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nuxt-app",
"private": true,
"name": "pennypincher",
"type": "module",
"version": "0.0.1",
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
Expand All @@ -21,4 +21,4 @@
"devDependencies": {
"@nuxtjs/date-fns": "^1.5.0"
}
}
}
Binary file removed app/public/favicon.ico
Binary file not shown.
36 changes: 36 additions & 0 deletions app/public/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
158 changes: 158 additions & 0 deletions app/public/splash.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 24767c9

Please sign in to comment.