Skip to content

Commit

Permalink
refactor: Update version number in package.json and improve styling o…
Browse files Browse the repository at this point in the history
…f application title and version number in App.vue
  • Loading branch information
berntpopp committed Sep 8, 2024
1 parent 93c9417 commit 53e5e3c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "adpkd-risk",
"private": true,
"version": "0.0.0",
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
21 changes: 19 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<v-app :theme="isDark ? 'dark' : 'light'">
<v-toolbar color="secondary" dark>
<v-toolbar-title class="d-flex align-center">
<h2 class="mb-0">ADPKD Risk Calculator</h2>
<span class="version">v0.1.0</span>
<h1 class="app-title">ADPKD Risk Calculator</h1>
<span class="app-version">v{{ version }}</span>
</v-toolbar-title>
<v-spacer></v-spacer>

Expand Down Expand Up @@ -196,6 +196,7 @@
</template>

<script>
import packageInfo from '../package.json'; // Import the package.json file
import LineChart from './components/LineChart.vue';
import PROPKDChart from './components/PROPKDChart.vue';
import MayoVsPROPKDChart from './components/MayoVsPROPKDChart.vue';
Expand All @@ -204,6 +205,7 @@ export default {
components: { LineChart, PROPKDChart, MayoVsPROPKDChart },
data() {
return {
version: packageInfo.version, // Load version from package.json
selectedTab: 'mayoPropkd',
patientId: null,
age: null,
Expand Down Expand Up @@ -426,4 +428,19 @@ export default {
.small-card .v-select, .small-card .v-checkbox {
margin-bottom: 4px;
}
/* Styling for the application title */
.app-title {
font-size: 24px;
font-weight: bold;
margin: 0; /* Removing default margin */
}
/* Styles for the version number */
.app-version {
font-size: 0.8em; /* Smaller font size */
color: #666; /* Lighter text color */
font-weight: normal; /* Less emphasis compared to the title */
padding-left: 10px; /* Space between title and version number */
}
</style>

0 comments on commit 53e5e3c

Please sign in to comment.