stuff and things

This commit is contained in:
ChrQR 2024-04-13 23:34:10 +02:00
parent 225a9f9701
commit fce514ff54
4 changed files with 18 additions and 6 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
node_modules

View File

@ -1,3 +1,12 @@
FROM nginx:1.19.5 FROM node:12 AS build
COPY build /usr/share/nginx/html
EXPOSE 80 WORKDIR /app
COPY package.json ./
COPY package-lock.json ./
RUN npm install
COPY . ./
RUN npm run build
FROM nginx:1.19-alpine
COPY --from=build /app/public /usr/share/nginx/html

View File

@ -15,11 +15,11 @@
}, },
{ {
name: "portfolio", name: "portfolio",
subPages: ["project a", "project, b", "project c"], subPages: ["project_a", "project_b", "project_c"],
}, },
{ {
name: "contact", name: "contact",
subPages: ["get in touch", "socials"], subPages: ["get_in_touch", "socials"],
}, },
{ {
name: "login", name: "login",
@ -35,6 +35,7 @@
selected = nav[event.srcElement.id]; selected = nav[event.srcElement.id];
intSelected = event.srcElement.id; intSelected = event.srcElement.id;
} }
</script> </script>
<nav class="nav-container h-32 w-full"> <nav class="nav-container h-32 w-full">
@ -53,7 +54,7 @@
{#key selected} {#key selected}
<ul in:blur={{ delay: 250 }} out:blur={{ duration: 250 }} class="text-center h-4 my-1"> <ul in:blur={{ delay: 250 }} out:blur={{ duration: 250 }} class="text-center h-4 my-1">
{#each selected.subPages as subPage} {#each selected.subPages as subPage}
<li class="sub-nav-item inline-block font-jose"><a class="sub-nav-link text-xl p-2"href={subPage}>{subPage}</a></li> <li class="sub-nav-item inline-block font-jose"><a class="sub-nav-link text-xl p-2"href={(subPage)}>{subPage.replace("_", " ")}</a></li>
{/each} {/each}
</ul> </ul>
{/key} {/key}

View File

@ -0,0 +1 @@
<h1> does it work?</h1>