Skip to content

Commit

Permalink
제발 끝나
Browse files Browse the repository at this point in the history
  • Loading branch information
andire120 committed Jan 11, 2025
1 parent 9be9b35 commit 41f0236
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { goto } from '$app/navigation';
import img from "/src/public/illustration/미사용/심사위원배경.png";
import pieimg from"/src/public/element/pie/goodpie/apple-pie.png";
import pieimg from"/src/public/element/pie/goodpie/blueberry-pie.png";
import tu from"/src/public/illustration/미사용/투명.png";
import img2 from "/src/public/illustration/미사용/검은사진.jpeg";
Expand Down
58 changes: 30 additions & 28 deletions src/routes/oven/(time)/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,20 @@ import { onMount } from 'svelte';
const BASE_PATH = '/src/public/element/otherthing/otherelement';
// 이미지 경로 설정 - /src/public 유지
const background = `${BASE_PATH}/background.png`;
const next = `${BASE_PATH}/nextbotten.png`;
const chep = `${BASE_PATH}/파이굽기 간판.png`;
const oven = `${BASE_PATH}/oven.png`;
const danger = `${BASE_PATH}/choseoven.png`;
import background from '/src/public/element/otherthing/otherelement/background.png';
import next from '/src/public/element/otherthing/otherelement/nextbotten.png';
import chep from '/src/public/element/otherthing/otherelement/파이굽기 간판.png';
import oven from '/src/public/element/otherthing/otherelement/oven.png';
import danger from '/src/public/element/otherthing/otherelement/choseoven.png';
const getImagePath = (filename) => `${BASE_PATH}/${filename}`;
// ovenImages 객체 수정 - 전체 경로 포함
const ovenImages = {
'thr': `${BASE_PATH}/oven1.png`,
'one': `${BASE_PATH}/oven2.png`,
'onethr': `${BASE_PATH}/oven3.png`,
'eig': `${BASE_PATH}/oven4.png`
'thr': getImagePath('oven1.png'),
'one': getImagePath('oven2.png'),
'onethr': getImagePath('oven3.png'),
'eig': getImagePath('oven4.png')
};
const timeMapping = {
Expand All @@ -45,25 +47,25 @@ function select(timeId: string) {
}
onMount(() => {
const queryParams = new URLSearchParams($page.url.search);
id = queryParams.get('id');
id_liquid = queryParams.get('id_liquid');
main_ingredient = queryParams.get('main_ingredient');
sessionStorage.setItem('currentURL', window.location.href);
});
async function showDan() {
if (selectedtime && timeMapping[selectedtime]) {
await goto(
`result?id=${id}&id_liquid=${id_liquid}&main_ingredient=${main_ingredient}&selectedtime=${timeMapping[selectedtime]}`
);
} else {
showWarning = true;
setTimeout(() => {
showWarning = false;
}, 3000);
}
}
const queryParams = new URLSearchParams($page.url.search);
id = queryParams.get('id');
id_liquid = queryParams.get('id_liquid');
main_ingredient = queryParams.get('main_ingredient');
sessionStorage.setItem('currentURL', window.location.href);
});
async function showDan() {
if (selectedtime && timeMapping[selectedtime]) {
await goto(
`result?id=${id}&id_liquid=${id_liquid}&main_ingredient=${main_ingredient}&selectedtime=${timeMapping[selectedtime]}`
);
} else {
showWarning = true;
setTimeout(() => {
showWarning = false;
}, 3000);
}
}
</script>

<link rel="preconnect" href="https://fonts.googleapis.com">
Expand Down

0 comments on commit 41f0236

Please sign in to comment.