diff --git a/frontend-vue/bun.lockb b/frontend-vue/bun.lockb index d136a17..e3b678c 100755 Binary files a/frontend-vue/bun.lockb and b/frontend-vue/bun.lockb differ diff --git a/frontend-vue/package.json b/frontend-vue/package.json index 367eef7..5d13183 100644 --- a/frontend-vue/package.json +++ b/frontend-vue/package.json @@ -15,6 +15,7 @@ }, "dependencies": { "jdenticon": "^3.3.0", + "lorem-ipsum": "^2.0.8", "node-vibrant": "^4.0.3", "pinia": "^3.0.3", "sass": "^1.89.2", diff --git a/frontend-vue/src/App.vue b/frontend-vue/src/App.vue index e35255f..7ccc212 100644 --- a/frontend-vue/src/App.vue +++ b/frontend-vue/src/App.vue @@ -5,21 +5,23 @@ import Header from '@/components/global/Header.vue' diff --git a/frontend-vue/src/components/note/Note.vue b/frontend-vue/src/components/note/Note.vue index 3173ba8..50443a2 100644 --- a/frontend-vue/src/components/note/Note.vue +++ b/frontend-vue/src/components/note/Note.vue @@ -1,40 +1,85 @@ diff --git a/frontend-vue/src/components/user/PreviewHeader.vue b/frontend-vue/src/components/user/PreviewHeader.vue index 2902884..62c9c36 100644 --- a/frontend-vue/src/components/user/PreviewHeader.vue +++ b/frontend-vue/src/components/user/PreviewHeader.vue @@ -1,18 +1,33 @@ @@ -21,10 +36,35 @@ import FormattedText from '@/components/util/FormattedText.vue' .account-header { display: flex; flex-direction: row; + height: 4em; + background-color: var(--accent); + padding: 0 0.6em 0.6em 0.6em; } -.account-header { + +.pfp { + margin-right: 1em; +} + +.pfp-wrapper { + margin-top: 1em; display: flex; - flex-direction: column; - align-items: flex-start; + flex-direction: row; + align-items: center; +} + +.displayname { + font-weight: bold; +} +.username { + margin-top: -0.75em; + font-size: 0.9em; +} +.filler { + flex-grow: 1; +} +.server-name { + border: var(--text) 1px solid; + border-radius: 0.6em; + padding: 0.2em; } diff --git a/frontend-vue/src/components/user/ProfilePicture.vue b/frontend-vue/src/components/user/ProfilePicture.vue index 23188b6..85442a0 100644 --- a/frontend-vue/src/components/user/ProfilePicture.vue +++ b/frontend-vue/src/components/user/ProfilePicture.vue @@ -8,6 +8,7 @@ import { vi } from 'vitest' const props = defineProps<{ media?: MediaMetadata username: string + size: number }>() /* async function calcBackgroundColor() { @@ -45,7 +46,7 @@ async function calcBackgroundStyle() { Get primary color of the image, invert it and set as background for higher contrast in case of transparency calcBackgroundStyle *should* do it, but async and vue no like --> - +
"+props.rawText+"

" } diff --git a/frontend-vue/src/stores/remoteServer.ts b/frontend-vue/src/stores/remoteServer.ts new file mode 100644 index 0000000..b26f4b9 --- /dev/null +++ b/frontend-vue/src/stores/remoteServer.ts @@ -0,0 +1,7 @@ +export interface RemoteServer { + id: string; + name: string; + url: string; + isSelf: boolean; + isDead: boolean; +} diff --git a/frontend-vue/src/stores/userdata.ts b/frontend-vue/src/stores/userdata.ts index 95d0397..3944c52 100644 --- a/frontend-vue/src/stores/userdata.ts +++ b/frontend-vue/src/stores/userdata.ts @@ -1,4 +1,5 @@ import type { MediaMetadata } from '@/stores/media.ts' +import type { RemoteServer } from '@/stores/remoteServer.ts' export interface User { username: string @@ -7,4 +8,5 @@ export interface User { profilePicture?: MediaMetadata bannerPicture?: MediaMetadata backgroundPicture?: MediaMetadata + server: RemoteServer } diff --git a/frontend-vue/src/views/NoteTestView.vue b/frontend-vue/src/views/NoteTestView.vue index 60b0cbd..83fb4fa 100644 --- a/frontend-vue/src/views/NoteTestView.vue +++ b/frontend-vue/src/views/NoteTestView.vue @@ -1,10 +1,13 @@