Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Jul 1, 2024
1 parent a344bd3 commit b9f8b0d
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 58 deletions.
6 changes: 3 additions & 3 deletions resources/js/components/headers/HeaderBack.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<a class="flex-grow flex-shrink-0 px-3 py-4 cursor-pointer" id="backButton" >
<MiniIcon icon="chevron-left" fill='fill-neutral-400' class="my-0 w-4 h-4 mr-0 ml-0" />
</a>
<a class="flex-grow flex-shrink-0 px-3 py-4 cursor-pointer" id="backButton">
<MiniIcon icon="chevron-left" fill="fill-neutral-400" class="my-0 w-4 h-4 mr-0 ml-0" />
</a>
</template>
<script setup lang="ts"></script>
14 changes: 8 additions & 6 deletions resources/js/components/headers/HeaderBar.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<template>
<header id="lychee_toolbar_container"
class="px-2 w-full flex-none bg-gradient-to-b from-bg-700 to-bg-800 border-b border-b-solid border-b-neutral-900 {{ props.class }}">
<div class="flex w-full justify-between items-center box-border">
<slot/>
</div>
</header>
<header
id="lychee_toolbar_container"
class="px-2 w-full flex-none bg-gradient-to-b from-bg-700 to-bg-800 border-b border-b-solid border-b-neutral-900 {{ props.class }}"
>
<div class="flex w-full justify-between items-center box-border">
<slot />
</div>
</header>
</template>
<script setup lang="ts">
const props = defineProps<{
Expand Down
5 changes: 2 additions & 3 deletions resources/js/components/headers/HeaderButton.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<template>
<a class="flex-shrink-0 px-3 py-4 cursor-pointer {{ props.class }}" id="backButton" >
<a class="flex-shrink-0 px-3 py-4 cursor-pointer {{ props.class }}" id="backButton">
<MiniIcon :icon="props.icon" :fill="props.fill ?? 'fill-neutral-400'" class="my-0 w-4 h-4 mr-0 ml-0" />
</a>
</template>
<script setup lang="ts">
import MiniIcon from '@/components/icons/MiniIcon.vue';
import MiniIcon from "@/components/icons/MiniIcon.vue";
const props = defineProps<{
class?: string;
fill?: string;
icon: string;
}>();
</script>
10 changes: 5 additions & 5 deletions resources/js/components/headers/HeaderTitle.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<a class="absolute left-1/2 top-0 -translate-x-1/2 h-14 pointer-events-none
flex justify-center items-center overflow-hidden
w-full text-text-main-0 font-bold text-sm whitespace-nowrap text-ellipsis">
<slot/>
</a>
<a
class="absolute left-1/2 top-0 -translate-x-1/2 h-14 pointer-events-none flex justify-center items-center overflow-hidden w-full text-text-main-0 font-bold text-sm whitespace-nowrap text-ellipsis"
>
<slot />
</a>
</template>
<script setup lang="ts"></script>
2 changes: 1 addition & 1 deletion resources/js/views/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ const leftMenuOpen = ref(false);
function toggleLeftMenu() {
leftMenuOpen.value = !leftMenuOpen.value;
};
}
</script>
7 changes: 2 additions & 5 deletions resources/js/views/Gallery.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
<template>

</template>
<template></template>
<script setup lang="ts">
import { computed, ref } from "vue";
import { useRoute } from "vue-router";
const route = useRoute();
const path = computed(() => route.path)
const path = computed(() => route.path);
</script>
22 changes: 10 additions & 12 deletions resources/js/views/gallery-panels/Album.vue
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@

<template>

</template>
<template></template>
<script setup lang="ts">
import { watch } from 'vue'
import { useRoute } from 'vue-router'
import { watch } from "vue";
import { useRoute } from "vue-router";
const route = useRoute()
const route = useRoute();
watch(
() => route.params.id,
(newId, oldId) => {
// react to route changes...
}
)</script>
() => route.params.id,
(newId, oldId) => {
// react to route changes...
},
);
</script>
41 changes: 18 additions & 23 deletions resources/js/views/gallery-panels/Albums.vue
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@

<template>
<div class="w-full">
<HeaderBar>
<template v-if="!isLoggedIn">
<HeaderButton icon="account-login" :class="isLoginLeft ? 'order-0' : 'order-4'" @click=""/>

</template>
<template v-else>
<HeaderButton icon="cog" @click="openLeftMenu"/>
</template>
<HeaderTitle>{{ title }}</HeaderTitle>
<!-- <HeaderButton /> -->
</HeaderBar>
</div>
<div class="w-full">
<HeaderBar>
<template v-if="!isLoggedIn">
<HeaderButton icon="account-login" :class="isLoginLeft ? 'order-0' : 'order-4'" @click="" />
</template>
<template v-else>
<HeaderButton icon="cog" @click="openLeftMenu" />
</template>
<HeaderTitle>{{ title }}</HeaderTitle>
<!-- <HeaderButton /> -->
</HeaderBar>
</div>
</template>
<script setup lang="ts">
import HeaderBar from '@/components/headers/HeaderBar.vue';
import HeaderButton from '@/components/headers/HeaderButton.vue';
import HeaderTitle from '@/components/headers/HeaderTitle.vue';
import { ref } from 'vue';
import HeaderBar from "@/components/headers/HeaderBar.vue";
import HeaderButton from "@/components/headers/HeaderButton.vue";
import HeaderTitle from "@/components/headers/HeaderTitle.vue";
import { ref } from "vue";
const isLoggedIn = ref(false);
const isLoginLeft = ref(false);
Expand All @@ -29,8 +27,5 @@ const emit = defineEmits(["toggleLeftMenu"]);
function openLeftMenu() {
emit("toggleLeftMenu");
};
</script>
}
</script>

0 comments on commit b9f8b0d

Please sign in to comment.