mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-01-06 13:56:14 +08:00
Minor header improvements
This commit is contained in:
parent
7628b2e0a3
commit
a3ce0f2aff
@ -4,7 +4,7 @@ import { computed } from "vue";
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
username: string;
|
||||
size?: string;
|
||||
size?: "xs" | "sm" | "md" | "lg";
|
||||
}>(),
|
||||
{
|
||||
size: "md",
|
||||
@ -21,7 +21,7 @@ const sizeClass = computed(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div :class="'bg-gray-100 dark:bg-gray-900 rounded-lg ' + sizeClass">
|
||||
<div :class="'bg-light-300 dark:bg-dark-500 rounded-lg ' + sizeClass">
|
||||
<span
|
||||
>{{ username }}'s<br />
|
||||
avatar</span
|
||||
|
@ -3,6 +3,7 @@ import { PropType } from "vue";
|
||||
import { Project, User } from "hangar-api";
|
||||
import UserAvatar from "~/components/UserAvatar.vue";
|
||||
import Button from "~/components/design/Button.vue";
|
||||
import Card from "~/components/design/Card.vue";
|
||||
|
||||
defineProps({
|
||||
user: {
|
||||
@ -17,7 +18,7 @@ defineProps({
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<section class="background-header rounded-lg p-4">
|
||||
<Card>
|
||||
<div class="flex">
|
||||
<UserAvatar :username="project.namespace.owner"></UserAvatar>
|
||||
<div class="flex-grow mx-4">
|
||||
@ -32,5 +33,5 @@ defineProps({
|
||||
<Button>Download latest</Button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</Card>
|
||||
</template>
|
||||
|
Loading…
Reference in New Issue
Block a user