stuff and things
This commit is contained in:
parent
225a9f9701
commit
fce514ff54
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
||||
node_modules
|
15
Dockerfile
15
Dockerfile
@ -1,3 +1,12 @@
|
||||
FROM nginx:1.19.5
|
||||
COPY build /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
FROM node:12 AS build
|
||||
|
||||
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
|
@ -15,11 +15,11 @@
|
||||
},
|
||||
{
|
||||
name: "portfolio",
|
||||
subPages: ["project a", "project, b", "project c"],
|
||||
subPages: ["project_a", "project_b", "project_c"],
|
||||
},
|
||||
{
|
||||
name: "contact",
|
||||
subPages: ["get in touch", "socials"],
|
||||
subPages: ["get_in_touch", "socials"],
|
||||
},
|
||||
{
|
||||
name: "login",
|
||||
@ -35,6 +35,7 @@
|
||||
selected = nav[event.srcElement.id];
|
||||
intSelected = event.srcElement.id;
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<nav class="nav-container h-32 w-full">
|
||||
@ -53,7 +54,7 @@
|
||||
{#key selected}
|
||||
<ul in:blur={{ delay: 250 }} out:blur={{ duration: 250 }} class="text-center h-4 my-1">
|
||||
{#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}
|
||||
</ul>
|
||||
{/key}
|
||||
|
1
src/routes/get_in_touch/+page.svelte
Normal file
1
src/routes/get_in_touch/+page.svelte
Normal file
@ -0,0 +1 @@
|
||||
<h1> does it work?</h1>
|
Loading…
Reference in New Issue
Block a user