diff --git a/.env.example b/.env.example index 0631423..87ac666 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,30 @@ -DATABASE_URL="postgres://root:mysecretpassword@localhost:5432/local" -POSTGRES_USER=root -POSTGRES_PASSWORD=mysecretpassword -POSTGRES_DB=local -PROJECT_TOKEN=CHROMATIC_PROJECT_TOKEN +# Chromatic token +PROJECT_TOKEN=**************************** + +# Recommended for most uses +DATABASE_URL=**************************** + +# For uses requiring a connection without pgbouncer +DATABASE_URL_UNPOOLED=**************************** + +# Parameters for constructing your own connection string +PGHOST=**************************** +PGHOST_UNPOOLED=**************************** +PGUSER=**************************** +PGDATABASE=**************************** +PGPASSWORD=**************************** + +# Parameters for Vercel Postgres Templates +POSTGRES_URL=**************************** +POSTGRES_URL_NON_POOLING=**************************** +POSTGRES_USER=**************************** +POSTGRES_HOST=**************************** +POSTGRES_PASSWORDL=**************************** +POSTGRES_DATABASEL=**************************** +POSTGRES_URL_NO_SSL=**************************** +POSTGRES_PRISMA_URL=**************************** + +# Neon Auth environment variables for Next.js +NEXT_PUBLIC_STACK_PROJECT_ID=**************************** +NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY=**************************************** +STACK_SECRET_SERVER_KEY=*********************** diff --git a/Dockerfile b/Dockerfile index 1d719cd..a7b0188 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ COPY package.json ./ RUN npm install COPY . . RUN DATABASE_URL="postgres://user:pass@localhost:5432/db" npm run build - +# DATABASE_URL is only needed at build time for Prisma to generate the client. It is not needed at runtime and will be replaced by the hosted neon database. FROM node:20-alpine AS runner WORKDIR /app COPY --from=builder /app ./ diff --git a/docker-compose.yml b/docker-compose.yml index 9eb11a9..8433ee6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,26 +1,7 @@ services: - db: - image: postgres - restart: always - ports: - - 5432:5432 - env_file: - - .env - environment: - POSTGRES_USER: ${POSTGRES_USER:-root} - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-mysecretpassword} - POSTGRES_DB: ${POSTGRES_DB:-local} - volumes: - - pgdata:/var/lib/postgresql/data app: build: . ports: - 3000:3000 env_file: - .env - environment: - DATABASE_URL: postgres://${POSTGRES_USER:-root}:${POSTGRES_PASSWORD:-mysecretpassword}@db:5432/${POSTGRES_DB:-local} - depends_on: - - db -volumes: - pgdata: diff --git a/src/app.css b/src/app.css index e69de29..97e8a0f 100644 --- a/src/app.css +++ b/src/app.css @@ -0,0 +1,43 @@ +@font-face { + font-family: 'Washington'; + src: url('/fonts/Washington.ttf') format('truetype'); + font-weight: normal; + font-style: normal; +} + +* { + box-sizing: border-box; + margin: 0; + padding: 0; +} + +body { + font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; + line-height: 1.5; + background-color: #f8f8f8; + color: #333; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + font-family: 'Washington', serif; + font-weight: normal; +} + +button { + cursor: pointer; + font-family: inherit; +} + +input { + font-family: inherit; +} + +a { + color: inherit; + text-decoration: none; +} diff --git a/src/routes/login/+page.svelte b/src/routes/login/+page.svelte index a3138d7..5aa08b6 100644 --- a/src/routes/login/+page.svelte +++ b/src/routes/login/+page.svelte @@ -1,21 +1,42 @@ -
{form?.message ?? ''}
+