Skip to content

Commit

Permalink
Merge pull request #53 from osoc24/small-fixes
Browse files Browse the repository at this point in the history
Add icon and profilepicture
  • Loading branch information
Zelzahn authored Jul 23, 2024
2 parents 7776a37 + 60abc89 commit b4c5249
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
Binary file modified loama/public/favicon.ico
Binary file not shown.
11 changes: 7 additions & 4 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 Expand Up @@ -85,14 +87,15 @@ nav {
margin-left: auto;
}
img,
svg {
width: calc(var(--base-unit)*8);
height: calc(var(--base-unit)*8);
}
img {
border-radius: 100%;
width: calc(var(--base-unit)*8);
object-fit: cover;
}
img:hover {
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 b4c5249

Please sign in to comment.