Init commit
This commit is contained in:
10
resources/js/Components/Layout/AppLogo.vue
Normal file
10
resources/js/Components/Layout/AppLogo.vue
Normal file
@ -0,0 +1,10 @@
|
||||
<script setup>
|
||||
import { appName } from '@/app.ts'
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<router-link class="flex justify-center items-center gap-3" to="/">
|
||||
<img src="@/Assets/logo.png" alt="logo DatBrowser" class="h-20" />
|
||||
<h1 class="text-xl font-display select-none">{{ appName }}</h1>
|
||||
</router-link>
|
||||
</template>
|
@ -0,0 +1,4 @@
|
||||
<template>
|
||||
<h2 class="text-xl"><slot name="title" /></h2>
|
||||
<p class="text-dark-green"><slot name="description" /></p>
|
||||
</template>
|
21
resources/js/Components/Layout/MainNav/MainNavItem.vue
Normal file
21
resources/js/Components/Layout/MainNav/MainNavItem.vue
Normal file
@ -0,0 +1,21 @@
|
||||
<script setup lang="ts">
|
||||
import Card from "@/Components/ui/card/Card.vue";
|
||||
import CardContent from "@/Components/ui/card/CardContent.vue";
|
||||
import { Link } from "@inertiajs/vue3";
|
||||
|
||||
defineProps<{
|
||||
link: string;
|
||||
}>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<li>
|
||||
<Link :href="link">
|
||||
<Card :class="{ 'bg-secondary': $page.url === link, 'hover:bg-gray': $page.url !== link ,'w-full transition': true }">
|
||||
<CardContent class="p-3">
|
||||
<slot />
|
||||
</CardContent>
|
||||
</Card>
|
||||
</Link>
|
||||
</li>
|
||||
</template>
|
14
resources/js/Components/Layout/MainNav/MainNavJobLink.vue
Normal file
14
resources/js/Components/Layout/MainNav/MainNavJobLink.vue
Normal file
@ -0,0 +1,14 @@
|
||||
<script setup lang="ts">
|
||||
import MainNavItem from "@/Components/Layout/MainNav/MainNavItem.vue";
|
||||
import { Job } from "@/types/Jobs/job";
|
||||
|
||||
defineProps<{
|
||||
job: Job;
|
||||
}>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<MainNavItem :link="`/job/${job.id}`">
|
||||
{{ job.name }}
|
||||
</MainNavItem>
|
||||
</template>
|
Reference in New Issue
Block a user