Skip to content

Commit

Permalink
Add icon and pfp
Browse files Browse the repository at this point in the history
  • Loading branch information
Zelzahn committed Jul 22, 2024
1 parent 8cfe1a1 commit 9ad494c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
Binary file modified loama/public/favicon.ico
Binary file not shown.
8 changes: 5 additions & 3 deletions loama/src/components/header/HeaderBase.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ import Loama from '../../assets/loama.svg'
import LoButton from '../LoButton.vue'
import HeaderContextMenu from './HeaderContextMenu.vue'
import { PhShareFat } from '@phosphor-icons/vue';
defineProps<{
pfpSrc: string,
}>()
import { getProfileInfo } from "loama-controller";
import { store } from '@/store';
import type { Session } from '@inrupt/solid-client-authn-browser';
const pfpSrc = (await getProfileInfo(store.session as Session, store.usedPod.replace(/\/$/, ''))).img;
const isContextMenuHidden = ref(true)
Expand Down
6 changes: 4 additions & 2 deletions loama/src/components/header/HeaderTab.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<template>
<a :href="href" :class="{ active: active }"><slot/></a>
<a :href="href" :class="{ active: active }">
<slot />
</a>
</template>

<script setup lang="ts">
const props = defineProps<{
defineProps<{
href: string
active: boolean
}>()
Expand Down
2 changes: 1 addition & 1 deletion loama/src/views/HomeView.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<Suspense>
<HeaderBase pfp-src="https://thispersondoesnotexist.com">
<HeaderBase>
<HeaderTab href="/home" active>Files</HeaderTab>
</HeaderBase>
</Suspense>
Expand Down

0 comments on commit 9ad494c

Please sign in to comment.