Skip to content

Commit

Permalink
refactor: Update favicon and application logo in App.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
berntpopp committed Sep 8, 2024
1 parent 53e5e3c commit 508184e
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Loading...</title> <!-- Temporary title while JS sets the final one -->
</head>
Expand Down
Binary file added public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 49 additions & 0 deletions public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/logo.webp
Binary file not shown.
1 change: 0 additions & 1 deletion public/vite.svg

This file was deleted.

16 changes: 15 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
<template>
<v-app :theme="isDark ? 'dark' : 'light'">
<v-toolbar color="secondary" dark>
<img
src="../logo.webp"
alt="ADPKD-Risk Logo"
class="mx-3 app-logo"
>
<v-toolbar-title class="d-flex align-center">
<h1 class="app-title">ADPKD Risk Calculator</h1>
<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 @@ -443,4 +450,11 @@ export default {
font-weight: normal; /* Less emphasis compared to the title */
padding-left: 10px; /* Space between title and version number */
}
/* Styles for the application logo */
.app-logo {
max-width: 48px; /* Fixed maximum width */
margin-right: 20px; /* Spacing between logo and title */
animation: fadeIn 2s ease-out forwards;
}
</style>

0 comments on commit 508184e

Please sign in to comment.