Updating the theme selector and made things look better on mobile

This commit is contained in:
2026-03-05 01:24:20 -06:00
parent f8b9dcce8e
commit afb38aaba6
9 changed files with 109 additions and 151 deletions
+4 -6
View File
@@ -1,5 +1,4 @@
<script lang="ts">
import { RAW_COST, PROCESSED_COST } from "$lib/index";
import type { MouseEventHandler } from "svelte/elements";
let { data } = $props<{ data: { pork: Pork[] } }>();
interface Pork {
@@ -17,10 +16,12 @@
let selected = $state("Chop");
const PRICE_PER_LB = 6;
function change_photo({ target: { id } }) {
const change_photo: MouseEventHandler<HTMLLIElement> = ({
currentTarget: { id },
}) => {
console.log(id);
selected = id;
}
};
</script>
<svelte:head>
@@ -106,9 +107,6 @@
flex-basis: 50%;
text-align: center;
text-shadow: 3px 3px 3px var(--primary-7);
&.small {
flex-basis: 25%;
}
&:first-child {
text-align: left;
}