Skip to content

Commit 43bbdb9

Browse files
authored
➕ merge pull request #183 from devmount/polish-things
Package upgrades and clean up
2 parents 9c4cfa3 + 0091deb commit 43bbdb9

5 files changed

Lines changed: 55 additions & 49 deletions

File tree

package-lock.json

Lines changed: 31 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "songdrive",
33
"description": "A song management tool to store, synchronize and present songs and setlists. Built with Vue.js and Firebase.",
4-
"version": "2.1.1",
4+
"version": "3.0.0",
55
"license": "MIT",
66
"author": {
77
"name": "Andreas Müller",

src/partials/Logo.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
{{ t('app.name') }}
1919
</div>
2020
</div>
21-
<div v-if="showVersion" class="text-xs text-blade-500 text-right font-medium mt-1">
22-
v{{ version }}
21+
<div v-if="showVersion" class="text-xs text-blade-500 text-right font-medium mt-1 mr-0.5">
22+
{{ version }}
2323
</div>
2424
</template>
2525

src/views/Dashboard.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
<template>
22
<div class="flex flex-col gap-6 w-full">
3-
<!-- page heading -->
4-
<div class="text-3xl uppercase font-thin tracking-wider">
5-
{{ t('page.dashboard')}}
6-
</div>
7-
<div class="flex flex-wrap gap-8 w-full justify-evenly" v-if="ready.songs && ready.setlists">
3+
<div class="flex flex-wrap gap-8 py-4 w-full justify-evenly" v-if="ready.songs && ready.setlists">
84
<!-- stored songs count -->
95
<div class="flex flex-col items-center">
106
<div class="text-4xl sm:text-6xl font-thin">

src/views/Documentation.vue

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
</button>
1313
<!-- table of contents -->
1414
<button
15-
v-for="t in toc"
15+
v-for="(t, i) in toc"
1616
:key="t"
1717
class="py-1 px-2 rounded-md hover:bg-blade-800 flex justify-start items-center gap-2"
18-
@click="scrollTo(dashCase(t.text))"
18+
@click="scrollTo(null, i)"
1919
>
2020
<icon-bookmark class="w-5 h-5 stroke-1.5" />
2121
<span>{{ t.text }}</span>
@@ -27,25 +27,31 @@
2727
<div class="flex flex-col gap-12">
2828
<!-- heading -->
2929
<div class="flex flex-col justify-center items-center gap-4">
30-
<img class="w-32" src="@/assets/logo.svg" alt="SongDrive Song Management Tool" />
30+
<img class="w-24 md:w-32" src="@/assets/logo.svg" alt="SongDrive Song Management Tool" />
3131
<div class="text-3xl uppercase text-spring-600">{{ t('app.name') }}</div>
32-
<div class="text-2xl">{{ t('app.summary') }}</div>
32+
<div class="text-lg md:text-2xl text-center">{{ t('app.summary') }}</div>
3333
</div>
3434
<!-- features -->
35-
<div class="grid grid-cols-3 gap-8">
35+
<div class="grid grid-cols-1 sm:grid-cols-3 gap-8">
3636
<div class="flex flex-col justify-start items-center gap-4">
3737
<icon-bolt class="w-12 h-12 stroke-1" />
38-
<div class="text-xl uppercase tracking-widest">{{ t('docu.features.0.title') }}</div>
38+
<div class="text-xl uppercase tracking-widest text-center">
39+
{{ t('docu.features.0.title') }}
40+
</div>
3941
<div class="text-center">{{ t('docu.features.0.description') }}</div>
4042
</div>
4143
<div class="flex flex-col justify-center items-center gap-4">
4244
<icon-microphone class="w-12 h-12 stroke-1" />
43-
<div class="text-xl uppercase tracking-widest">{{ t('docu.features.1.title') }}</div>
45+
<div class="text-xl uppercase tracking-widest text-center">
46+
{{ t('docu.features.1.title') }}
47+
</div>
4448
<div class="text-center">{{ t('docu.features.1.description') }}</div>
4549
</div>
4650
<div class="flex flex-col justify-center items-center gap-4">
4751
<icon-tools class="w-12 h-12 stroke-1" />
48-
<div class="text-xl uppercase tracking-widest">{{ t('docu.features.2.title') }}</div>
52+
<div class="text-xl uppercase tracking-widest text-center">
53+
{{ t('docu.features.2.title') }}
54+
</div>
4955
<div class="text-center">{{ t('docu.features.2.description') }}</div>
5056
</div>
5157
</div>
@@ -114,8 +120,12 @@ const dashCase = (text) => {
114120
};
115121
116122
// scroll to element of given id
117-
const scrollTo = (id) => {
118-
document.getElementById(id).scrollIntoView({ behavior: "smooth" });
123+
const scrollTo = (id, h2=null) => {
124+
if (id) {
125+
document.getElementById(id).scrollIntoView({ behavior: "smooth" });
126+
} else {
127+
document.querySelectorAll('h2')[h2].scrollIntoView({ behavior: "smooth" });
128+
}
119129
};
120130
121131
// generate table of contents from h2's

0 commit comments

Comments
 (0)