diff --git a/Dockerfile b/Dockerfile index 8f885b0..4098ea6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,9 @@ -FROM node:20-alpine AS build +FROM node:20-alpine WORKDIR /app COPY package*.json ./ RUN npm install COPY . . RUN npm run build -FROM nginx:alpine -COPY --from=build /app/dist /usr/share/nginx/html EXPOSE 80 -CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file +CMD ["node", "server.js"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 62678f0..547d40e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,11 @@ services: build: . restart: unless-stopped ports: - - "8080:80" # Maps port 8080 on the host to port 80 in the container + - "8080:80" + environment: + - VITE_GEMINI_API_KEY=${VITE_GEMINI_API_KEY} + - APP_USERNAME=${APP_USERNAME} + - APP_PASSWORD=${APP_PASSWORD} deploy: resources: limits: diff --git a/index.html b/index.html index e29f32f..34ab97d 100644 --- a/index.html +++ b/index.html @@ -32,7 +32,11 @@ justify-content: center; } - .app { width: 100%; max-width: 680px; padding: 2rem 0; } + .app { display: none; width: 100%; max-width: 680px; padding: 2rem 0; } + + #login-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: var(--color-background-secondary); display: flex; align-items: center; justify-content: center; z-index: 1000; } + .login-card { background: var(--color-background-primary); padding: 2rem; border: 0.5px solid var(--color-border-secondary); border-radius: var(--border-radius-lg); width: 100%; max-width: 320px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); } + .login-card h2 { font-family: 'Lora', serif; font-size: 24px; margin-bottom: 1.25rem; text-align: center; } .header { margin-bottom: 2rem; border-bottom: 0.5px solid var(--color-border-tertiary); padding-bottom: 1.25rem; } .header h1 { font-family: 'Lora', serif; font-size: 26px; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 4px; } @@ -111,7 +115,23 @@ -
+
+ +
+ +

Recipe Generator

Tell the AI what you have and what you want — it handles the rest.

@@ -187,6 +207,45 @@