feat(projects): load projects from content/
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
// TODO: handle mouse wheel
|
||||
|
||||
import gsap from "gsap";
|
||||
import SELECTOR_IMAGE from "/assets/images/projects/bottom-screen/selector.webp";
|
||||
import PROJECT_SQUARE_IMAGE from "/assets/images/projects/bottom-screen/project-square.webp";
|
||||
import { useKeyDown } from "~/composables/useKeyDown";
|
||||
|
||||
const store = useProjectsStore();
|
||||
|
||||
@@ -68,7 +65,7 @@ useRender((ctx) => {
|
||||
|
||||
ctx.font = "10px NDS10";
|
||||
|
||||
const lines = store.projects[store.currentProject]!.description.split("\n");
|
||||
const lines = store.projects[store.currentProject]!.description.split("\\n");
|
||||
const textY = lines.length === 1 ? 35 : 28;
|
||||
for (let i = 0; i < lines.length; i += 1) {
|
||||
const { actualBoundingBoxRight: width } = ctx.measureText(lines[i]!);
|
||||
|
||||
Reference in New Issue
Block a user