diff --git a/public/assets/header-1x4.png b/public/assets/header-1x4.png index 5882602..c40ebc3 100644 Binary files a/public/assets/header-1x4.png and b/public/assets/header-1x4.png differ diff --git a/public/assets/header-2x2.png b/public/assets/header-2x2.png index 35864c6..ab9eaa8 100644 Binary files a/public/assets/header-2x2.png and b/public/assets/header-2x2.png differ diff --git a/src/views/FrameView.vue b/src/views/FrameView.vue index 6fd7f6a..f5263b0 100644 --- a/src/views/FrameView.vue +++ b/src/views/FrameView.vue @@ -5,6 +5,7 @@ import { useRouter } from 'vue-router' const router = useRouter() const selectedLayout = ref<'1x4' | '2x2'>('1x4') const selectedFrame = ref(0) +const selectedFilter = ref<'normal' | 'black&white'>('normal') const layouts = [ { id: '1x4', name: '1x4 แนวตั้ง', cols: 1, rows: 4 }, @@ -19,6 +20,11 @@ const frames = [ { id: 4, name: 'กรอบมินิมอล', preview: '/frame-minimal.svg' } ] +const filters = [ + { id: 'normal', name: '🎨Color' }, + { id: 'black&white', name: '🐈‍⬛Black & White' } +] + const selectLayout = (layoutId: string) => { selectedLayout.value = layoutId as '1x4' | '2x2' } @@ -27,11 +33,17 @@ const selectFrame = (frameId: number) => { selectedFrame.value = frameId } +const selectFilter = (filterId: string) => { + + selectedFilter.value = filterId as 'normal' | 'black&white' + +} + const proceedToSource = () => { // เก็บข้อมูล layout และ frame ที่เลือกไว้ใน localStorage หรือ state management localStorage.setItem('photobooth-layout', selectedLayout.value) localStorage.setItem('photobooth-frame', selectedFrame.value.toString()) - + localStorage.setItem('photobooth-filter', selectedFilter.value) router.push('/selectsource') } @@ -70,6 +82,32 @@ const goBack = () => { +
+ + + +
+ +
+ + {{ filter.name }} + +
+ +
+ +
+