Skip to content

Commit

Permalink
➕ merge pull request #183 from devmount/polish-things
Browse files Browse the repository at this point in the history
Package upgrades and clean up
  • Loading branch information
devmount authored Jul 25, 2023
2 parents 9c4cfa3 + 0091deb commit 43bbdb9
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 49 deletions.
62 changes: 31 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "songdrive",
"description": "A song management tool to store, synchronize and present songs and setlists. Built with Vue.js and Firebase.",
"version": "2.1.1",
"version": "3.0.0",
"license": "MIT",
"author": {
"name": "Andreas Müller",
Expand Down
4 changes: 2 additions & 2 deletions src/partials/Logo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
{{ t('app.name') }}
</div>
</div>
<div v-if="showVersion" class="text-xs text-blade-500 text-right font-medium mt-1">
v{{ version }}
<div v-if="showVersion" class="text-xs text-blade-500 text-right font-medium mt-1 mr-0.5">
{{ version }}
</div>
</template>

Expand Down
6 changes: 1 addition & 5 deletions src/views/Dashboard.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<template>
<div class="flex flex-col gap-6 w-full">
<!-- page heading -->
<div class="text-3xl uppercase font-thin tracking-wider">
{{ t('page.dashboard')}}
</div>
<div class="flex flex-wrap gap-8 w-full justify-evenly" v-if="ready.songs && ready.setlists">
<div class="flex flex-wrap gap-8 py-4 w-full justify-evenly" v-if="ready.songs && ready.setlists">
<!-- stored songs count -->
<div class="flex flex-col items-center">
<div class="text-4xl sm:text-6xl font-thin">
Expand Down
30 changes: 20 additions & 10 deletions src/views/Documentation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
</button>
<!-- table of contents -->
<button
v-for="t in toc"
v-for="(t, i) in toc"
:key="t"
class="py-1 px-2 rounded-md hover:bg-blade-800 flex justify-start items-center gap-2"
@click="scrollTo(dashCase(t.text))"
@click="scrollTo(null, i)"
>
<icon-bookmark class="w-5 h-5 stroke-1.5" />
<span>{{ t.text }}</span>
Expand All @@ -27,25 +27,31 @@
<div class="flex flex-col gap-12">
<!-- heading -->
<div class="flex flex-col justify-center items-center gap-4">
<img class="w-32" src="@/assets/logo.svg" alt="SongDrive Song Management Tool" />
<img class="w-24 md:w-32" src="@/assets/logo.svg" alt="SongDrive Song Management Tool" />
<div class="text-3xl uppercase text-spring-600">{{ t('app.name') }}</div>
<div class="text-2xl">{{ t('app.summary') }}</div>
<div class="text-lg md:text-2xl text-center">{{ t('app.summary') }}</div>
</div>
<!-- features -->
<div class="grid grid-cols-3 gap-8">
<div class="grid grid-cols-1 sm:grid-cols-3 gap-8">
<div class="flex flex-col justify-start items-center gap-4">
<icon-bolt class="w-12 h-12 stroke-1" />
<div class="text-xl uppercase tracking-widest">{{ t('docu.features.0.title') }}</div>
<div class="text-xl uppercase tracking-widest text-center">
{{ t('docu.features.0.title') }}
</div>
<div class="text-center">{{ t('docu.features.0.description') }}</div>
</div>
<div class="flex flex-col justify-center items-center gap-4">
<icon-microphone class="w-12 h-12 stroke-1" />
<div class="text-xl uppercase tracking-widest">{{ t('docu.features.1.title') }}</div>
<div class="text-xl uppercase tracking-widest text-center">
{{ t('docu.features.1.title') }}
</div>
<div class="text-center">{{ t('docu.features.1.description') }}</div>
</div>
<div class="flex flex-col justify-center items-center gap-4">
<icon-tools class="w-12 h-12 stroke-1" />
<div class="text-xl uppercase tracking-widest">{{ t('docu.features.2.title') }}</div>
<div class="text-xl uppercase tracking-widest text-center">
{{ t('docu.features.2.title') }}
</div>
<div class="text-center">{{ t('docu.features.2.description') }}</div>
</div>
</div>
Expand Down Expand Up @@ -114,8 +120,12 @@ const dashCase = (text) => {
};
// scroll to element of given id
const scrollTo = (id) => {
document.getElementById(id).scrollIntoView({ behavior: "smooth" });
const scrollTo = (id, h2=null) => {
if (id) {
document.getElementById(id).scrollIntoView({ behavior: "smooth" });
} else {
document.querySelectorAll('h2')[h2].scrollIntoView({ behavior: "smooth" });
}
};
// generate table of contents from h2's
Expand Down

0 comments on commit 43bbdb9

Please sign in to comment.