Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1a2b6b914a | |||
| 2cb0b82ee1 | |||
| 72594db8c2 | |||
| 4f3be525f9 | |||
| dd43116922 | |||
| ef57f8e1b6 | |||
| aacf7dbbba | |||
| 5d59b36ad8 |
@@ -1,28 +1,20 @@
|
||||
# Builds the slim @vynte/scheduler app against the shared Cal workspace packages.
|
||||
FROM node:20 AS builder
|
||||
# ── Incremental build: reuse installed deps from the last good image ────────────
|
||||
# Only next build runs — no yarn install needed. When dependencies genuinely
|
||||
# change, rebuild from node:20 using the full-install Dockerfile below.
|
||||
ARG BASE_IMAGE=10.0.3.6:4000/zachariahsharma/vynte-scheduler:latest
|
||||
FROM ${BASE_IMAGE}
|
||||
|
||||
WORKDIR /calcom
|
||||
|
||||
# next build evaluates @calcom/features imports, so provide the same build-time
|
||||
# secrets the root image uses. Real values are injected at runtime by compose.
|
||||
ARG NEXTAUTH_SECRET=secret
|
||||
ARG CALENDSO_ENCRYPTION_KEY=secret
|
||||
ARG DATABASE_URL=postgresql://calcom:calcom@postgres:5432/calcom
|
||||
ARG MAX_OLD_SPACE_SIZE=4096
|
||||
|
||||
# Only non-secret values persist in the image. The build-time secrets are passed
|
||||
# inline on the build RUN below so they never bake into an image layer; real
|
||||
# runtime values are injected by compose.
|
||||
ENV NODE_ENV=production \
|
||||
NODE_OPTIONS=--max-old-space-size=${MAX_OLD_SPACE_SIZE}
|
||||
ENV NODE_ENV=production
|
||||
|
||||
COPY package.json yarn.lock .yarnrc.yml turbo.json i18n.json ./
|
||||
COPY .yarn ./.yarn
|
||||
# Replace scheduler source with the updated version and rebuild
|
||||
COPY apps/scheduler ./apps/scheduler
|
||||
COPY packages ./packages
|
||||
|
||||
RUN yarn config set httpTimeout 1200000
|
||||
RUN yarn install
|
||||
RUN NEXTAUTH_SECRET=${NEXTAUTH_SECRET} \
|
||||
CALENDSO_ENCRYPTION_KEY=${CALENDSO_ENCRYPTION_KEY} \
|
||||
DATABASE_URL=${DATABASE_URL} \
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
import { cookies } from "next/headers";
|
||||
import { NextResponse } from "next/server";
|
||||
import prisma from "@calcom/prisma";
|
||||
|
||||
const AUTH_COOKIE_NAMES = [
|
||||
"next-auth.session-token",
|
||||
"__Secure-next-auth.session-token",
|
||||
"next-auth.callback-url",
|
||||
"next-auth.csrf-token",
|
||||
"__Host-next-auth.csrf-token",
|
||||
];
|
||||
|
||||
function baseUrl(): string {
|
||||
const nextAuthUrl = process.env.NEXTAUTH_URL ?? "";
|
||||
try {
|
||||
return new URL(nextAuthUrl).origin;
|
||||
} catch {
|
||||
return "/";
|
||||
}
|
||||
}
|
||||
|
||||
async function handleSignOut(): Promise<NextResponse> {
|
||||
const cookieStore = await cookies();
|
||||
|
||||
const sessionToken =
|
||||
cookieStore.get("__Secure-next-auth.session-token")?.value ??
|
||||
cookieStore.get("next-auth.session-token")?.value;
|
||||
|
||||
if (sessionToken) {
|
||||
await prisma.session.deleteMany({ where: { sessionToken } }).catch(() => null);
|
||||
}
|
||||
|
||||
const res = NextResponse.redirect(new URL("/", baseUrl()), { status: 302 });
|
||||
|
||||
const cookieDomain = process.env.NEXTAUTH_COOKIE_DOMAIN || undefined;
|
||||
for (const name of AUTH_COOKIE_NAMES) {
|
||||
res.cookies.set(name, "", {
|
||||
maxAge: 0,
|
||||
path: "/",
|
||||
...(cookieDomain ? { domain: cookieDomain } : {}),
|
||||
});
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
export const GET = handleSignOut;
|
||||
export const POST = handleSignOut;
|
||||
+732
-72
@@ -1,79 +1,739 @@
|
||||
* { box-sizing: border-box; }
|
||||
html, body { margin: 0; min-height: 100%; background: #f4f5f7; color: #202226; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
|
||||
/* ================================================================
|
||||
OBSIDIAN — Vynte Scheduler Design System
|
||||
Palette: deep charcoal · sage accent · warm off-white text
|
||||
Type: DM Serif Display · DM Sans · JetBrains Mono
|
||||
================================================================ */
|
||||
|
||||
*, *::before, *::after { box-sizing: border-box; }
|
||||
p { margin: 0; }
|
||||
|
||||
html {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
:root {
|
||||
/* Backgrounds */
|
||||
--bg: #0c0e10;
|
||||
--surface-0: #131517;
|
||||
--surface-1: #191c1f;
|
||||
--surface-2: #1f2327;
|
||||
|
||||
/* Borders */
|
||||
--border-subtle: #1e2226;
|
||||
--border: #272c33;
|
||||
--border-strong: #353c45;
|
||||
|
||||
/* Text */
|
||||
--text: #ddd8d2;
|
||||
--text-2: #808890;
|
||||
--text-3: #4d545d;
|
||||
|
||||
/* Accent — sage green */
|
||||
--accent: #52b583;
|
||||
--accent-hover: #63c994;
|
||||
--accent-bg: rgba(82, 181, 131, 0.10);
|
||||
--accent-bg-hover: rgba(82, 181, 131, 0.16);
|
||||
--accent-border: rgba(82, 181, 131, 0.28);
|
||||
--accent-text: #c8edd9;
|
||||
--accent-glow: rgba(82, 181, 131, 0.35);
|
||||
|
||||
/* States */
|
||||
--error: #e05858;
|
||||
--error-bg: rgba(224, 88, 88, 0.10);
|
||||
--warn: #d49055;
|
||||
--warn-bg: rgba(212, 144, 85, 0.10);
|
||||
|
||||
/* Typography */
|
||||
--font-display: var(--font-serif, Georgia, 'Times New Roman', serif);
|
||||
--font-sans: var(--font-dm-sans, system-ui, sans-serif);
|
||||
--font-mono: var(--font-jb-mono, 'Courier New', monospace);
|
||||
|
||||
/* Radii */
|
||||
--radius-sm: 5px;
|
||||
--radius: 8px;
|
||||
--radius-lg: 12px;
|
||||
--radius-xl: 16px;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family: var(--font-sans);
|
||||
font-size: 13px;
|
||||
line-height: 1.55;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
button, input, select, textarea { font: inherit; }
|
||||
a { color: inherit; text-decoration: none; }
|
||||
.app-frame { min-height: 100vh; display: grid; grid-template-columns: 196px minmax(0, 1fr); background: #f4f5f7; }
|
||||
.sidebar { min-height: 100vh; border-right: 1px solid #e3e5e8; background: #fafafa; padding: 18px 12px; display: flex; flex-direction: column; }
|
||||
.brand { font-size: 16px; font-weight: 750; padding: 3px 8px 20px; }
|
||||
.nav-list { display: grid; gap: 4px; }
|
||||
.nav-item { padding: 9px 10px; border-radius: 5px; color: #555a61; font-size: 13px; font-weight: 600; }
|
||||
.nav-item[data-active="true"] { background: #e9efec; color: #204d39; }
|
||||
.profile-block { margin-top: auto; border-top: 1px solid #e3e5e8; padding: 14px 8px 2px; font-size: 12px; }
|
||||
.profile-block strong { display: block; font-size: 13px; margin-bottom: 2px; }
|
||||
.profile-block span { color: #777c83; }
|
||||
.main-surface { padding: 20px; min-width: 0; }
|
||||
@media (max-width: 860px) { .app-frame { grid-template-columns: 1fr; } .sidebar { min-height: auto; border-right: 0; border-bottom: 1px solid #e3e5e8; } }
|
||||
|
||||
/* Shared primitives */
|
||||
.panel-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
|
||||
.panel-header h1 { font-size: 20px; font-weight: 700; margin: 0; }
|
||||
.panel-header h2, .panel-header h1 + * { margin: 0; }
|
||||
.muted { color: #777c83; font-size: 13px; }
|
||||
.primary-button { background: #246b48; color: #fff; border: 1px solid #1f5c3e; border-radius: 6px; padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
|
||||
.primary-button:disabled { opacity: 0.6; cursor: default; }
|
||||
.secondary-button { background: #fff; color: #333; border: 1px solid #d7dadf; border-radius: 6px; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
|
||||
.secondary-button[data-active="true"] { border-color: #246b48; color: #204d39; background: #e9efec; }
|
||||
.notice { font-size: 13px; margin: 8px 0 0; }
|
||||
.notice-error { color: #a23434; }
|
||||
.notice-warn { color: #8a6320; }
|
||||
.notice-ok { color: #246b48; }
|
||||
.field { display: grid; gap: 4px; margin: 12px 0; font-size: 13px; }
|
||||
.field input { border: 1px solid #d7dadf; border-radius: 6px; padding: 8px 10px; }
|
||||
.field-inline { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 12px 0; }
|
||||
input[type="checkbox"] {
|
||||
accent-color: var(--accent);
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Calendar */
|
||||
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
|
||||
.calendar-panel { background: #fff; border: 1px solid #e3e5e8; border-radius: 8px; padding: 16px; }
|
||||
.week-grid { display: grid; grid-template-columns: 56px repeat(5, minmax(0, 1fr)); gap: 0; }
|
||||
.time-gutter { padding-top: 26px; }
|
||||
.hour-label { font-size: 11px; color: #9aa0a6; border-top: 1px solid #f0f1f3; padding: 2px 4px; }
|
||||
.day-column { border-left: 1px solid #f0f1f3; min-width: 0; }
|
||||
.day-heading { font-size: 12px; font-weight: 600; text-align: center; padding: 6px 0; color: #555a61; }
|
||||
.day-body { position: relative; background: #fff; }
|
||||
.busy-block { position: absolute; left: 3px; right: 3px; background: #e7e9ec; border: 1px solid #d3d6db; border-radius: 4px; font-size: 11px; padding: 2px 4px; overflow: hidden; color: #555a61; }
|
||||
.busy-block[data-own="true"] { background: #dce6e0; border-color: #b9cdc2; color: #2d5a42; }
|
||||
.mutual-slot { position: absolute; left: 3px; right: 3px; background: rgba(36, 107, 72, 0.12); border: 1px solid #246b48; border-radius: 4px; font-size: 11px; color: #204d39; cursor: pointer; padding: 2px 4px; }
|
||||
.mutual-slot[data-selected="true"] { background: #246b48; color: #fff; }
|
||||
input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(0.5); }
|
||||
input[type="number"]::-webkit-inner-spin-button { filter: invert(0.5); }
|
||||
|
||||
/* Composer */
|
||||
.composer { background: #fff; border: 1px solid #e3e5e8; border-radius: 8px; padding: 16px; position: sticky; top: 20px; }
|
||||
.composer h2 { font-size: 16px; margin: 0 0 12px; }
|
||||
.composer-group { border: 1px solid #eceef0; border-radius: 6px; padding: 10px 12px; margin: 0 0 12px; }
|
||||
.composer-group legend { font-size: 12px; font-weight: 600; color: #555a61; padding: 0 4px; }
|
||||
.attendee-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 3px 0; }
|
||||
.duration-presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
|
||||
.duration-custom { width: 64px; border: 1px solid #d7dadf; border-radius: 6px; padding: 7px 8px; }
|
||||
.selected-slot { font-size: 13px; margin: 8px 0 12px; }
|
||||
::-webkit-scrollbar { width: 5px; height: 5px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
|
||||
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
|
||||
|
||||
/* Availability + settings cards */
|
||||
.availability-layout, .connections-layout { display: grid; gap: 16px; max-width: 640px; }
|
||||
.settings-card { background: #fff; border: 1px solid #e3e5e8; border-radius: 8px; padding: 16px; }
|
||||
.settings-card h2 { font-size: 16px; margin: 0 0 12px; }
|
||||
.weekly-rows { display: grid; gap: 6px; }
|
||||
.weekly-row { display: flex; align-items: center; gap: 16px; padding: 6px 0; border-top: 1px solid #f0f1f3; }
|
||||
.weekly-row[data-enabled="false"] { opacity: 0.7; }
|
||||
.weekly-toggle { min-width: 130px; }
|
||||
.time-range { display: flex; align-items: center; gap: 8px; }
|
||||
.time-range input { border: 1px solid #d7dadf; border-radius: 6px; padding: 6px 8px; }
|
||||
.dash { color: #9aa0a6; }
|
||||
.unavailable-label { font-style: italic; }
|
||||
.override-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
|
||||
.override-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid #f0f1f3; font-size: 13px; }
|
||||
.save-bar { display: flex; align-items: center; gap: 12px; }
|
||||
/* ================================================================
|
||||
APP SHELL
|
||||
================================================================ */
|
||||
|
||||
/* Connections */
|
||||
.provider-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #f0f1f3; }
|
||||
.provider-name { font-size: 13px; font-weight: 600; }
|
||||
.provider-status.connected { font-size: 12px; color: #246b48; font-weight: 600; }
|
||||
.browse-button { display: inline-block; margin-top: 12px; }
|
||||
.privacy-note { font-size: 12px; color: #777c83; }
|
||||
.app-frame {
|
||||
min-height: 100vh;
|
||||
display: grid;
|
||||
grid-template-columns: 200px minmax(0, 1fr);
|
||||
background: var(--bg);
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
min-height: 100vh;
|
||||
background: var(--surface-0);
|
||||
border-right: 1px solid var(--border-subtle);
|
||||
padding: 18px 8px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
height: 100vh;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.brand {
|
||||
font-family: var(--font-display);
|
||||
font-size: 17px;
|
||||
font-weight: 400;
|
||||
letter-spacing: -0.02em;
|
||||
color: var(--text);
|
||||
padding: 4px 12px 22px;
|
||||
opacity: 0.92;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 9px;
|
||||
}
|
||||
|
||||
|
||||
.nav-list { display: grid; gap: 2px; }
|
||||
|
||||
.nav-item {
|
||||
display: block;
|
||||
padding: 8px 14px;
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--text-2);
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.008em;
|
||||
transition: color 0.14s, background 0.14s;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.nav-item:hover {
|
||||
color: var(--text);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
|
||||
.nav-item[data-active="true"] {
|
||||
color: var(--accent-text);
|
||||
background: var(--accent-bg);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.nav-item[data-active="true"]::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
width: 3px;
|
||||
height: 18px;
|
||||
background: var(--accent);
|
||||
border-radius: 0 3px 3px 0;
|
||||
box-shadow: 2px 0 8px var(--accent-glow);
|
||||
}
|
||||
|
||||
.profile-block {
|
||||
margin-top: auto;
|
||||
border-top: 1px solid var(--border-subtle);
|
||||
padding: 16px 12px 4px;
|
||||
}
|
||||
|
||||
.profile-block strong {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
margin-bottom: 4px;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
.profile-block span {
|
||||
font-size: 10.5px;
|
||||
color: var(--text-3);
|
||||
font-family: var(--font-mono);
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
.signout-link {
|
||||
display: block;
|
||||
margin-top: 10px;
|
||||
font-size: 10.5px;
|
||||
color: var(--text-3);
|
||||
text-decoration: none;
|
||||
letter-spacing: 0.04em;
|
||||
transition: color 0.15s;
|
||||
}
|
||||
.signout-link:hover { color: var(--text-2); }
|
||||
|
||||
.main-surface {
|
||||
padding: 28px 26px;
|
||||
min-width: 0;
|
||||
animation: surface-in 0.28s ease-out;
|
||||
}
|
||||
|
||||
@keyframes surface-in {
|
||||
from { opacity: 0; transform: translateY(5px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
/* ================================================================
|
||||
SHARED PRIMITIVES
|
||||
================================================================ */
|
||||
|
||||
.panel-header {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
|
||||
.panel-header h1 {
|
||||
font-family: var(--font-display);
|
||||
font-size: 23px;
|
||||
font-weight: 400;
|
||||
letter-spacing: -0.03em;
|
||||
margin: 0;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.panel-header h2 { margin: 0; }
|
||||
|
||||
.muted {
|
||||
color: var(--text-2);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* Buttons */
|
||||
.primary-button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
background: var(--accent);
|
||||
color: #0a1f10;
|
||||
border: none;
|
||||
border-radius: var(--radius);
|
||||
padding: 9px 18px;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
letter-spacing: 0.01em;
|
||||
transition: background 0.14s, box-shadow 0.14s, transform 0.09s;
|
||||
}
|
||||
|
||||
.primary-button:hover:not(:disabled) {
|
||||
background: var(--accent-hover);
|
||||
box-shadow: 0 0 20px rgba(82, 181, 131, 0.28);
|
||||
}
|
||||
|
||||
.primary-button:active:not(:disabled) { transform: scale(0.975); }
|
||||
.primary-button:disabled { opacity: 0.35; cursor: not-allowed; }
|
||||
|
||||
.secondary-button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
background: transparent;
|
||||
color: var(--text-2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 6px 12px;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: color 0.14s, border-color 0.14s, background 0.14s;
|
||||
}
|
||||
|
||||
.secondary-button:hover {
|
||||
color: var(--text);
|
||||
border-color: var(--border-strong);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
|
||||
.secondary-button[data-active="true"] {
|
||||
border-color: var(--accent-border);
|
||||
color: var(--accent-text);
|
||||
background: var(--accent-bg);
|
||||
}
|
||||
|
||||
/* Notices */
|
||||
.notice {
|
||||
font-size: 12px;
|
||||
margin: 10px 0 0;
|
||||
padding: 8px 12px;
|
||||
border-radius: var(--radius-sm);
|
||||
border-left: 2px solid transparent;
|
||||
}
|
||||
|
||||
.notice-error { color: var(--error); background: var(--error-bg); border-left-color: var(--error); }
|
||||
.notice-warn { color: var(--warn); background: var(--warn-bg); border-left-color: var(--warn); }
|
||||
.notice-ok { color: var(--accent); background: var(--accent-bg); border-left-color: var(--accent); }
|
||||
|
||||
/* Fields */
|
||||
.field {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
margin: 14px 0;
|
||||
}
|
||||
|
||||
.field > span {
|
||||
font-size: 10.5px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--text-3);
|
||||
}
|
||||
|
||||
.field input {
|
||||
background: var(--surface-2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 9px 12px;
|
||||
color: var(--text);
|
||||
font-size: 13px;
|
||||
font-family: var(--font-sans);
|
||||
transition: border-color 0.14s, box-shadow 0.14s;
|
||||
}
|
||||
|
||||
.field input:focus {
|
||||
outline: none;
|
||||
border-color: var(--accent-border);
|
||||
box-shadow: 0 0 0 3px var(--accent-bg);
|
||||
}
|
||||
|
||||
.field input::placeholder { color: var(--text-3); }
|
||||
|
||||
.field-inline {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
font-size: 13px;
|
||||
margin: 12px 0;
|
||||
cursor: pointer;
|
||||
color: var(--text-2);
|
||||
}
|
||||
|
||||
.field-inline:hover { color: var(--text); }
|
||||
|
||||
/* ================================================================
|
||||
CALENDAR
|
||||
================================================================ */
|
||||
|
||||
.calendar-layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 288px;
|
||||
gap: 16px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.calendar-panel {
|
||||
background: var(--surface-1);
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: var(--radius-xl);
|
||||
padding: 20px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.week-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 46px repeat(5, minmax(0, 1fr));
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.time-gutter { padding-top: 30px; }
|
||||
|
||||
.hour-label {
|
||||
font-size: 9.5px;
|
||||
font-family: var(--font-mono);
|
||||
color: var(--text-3);
|
||||
border-top: 1px solid var(--border-subtle);
|
||||
padding: 3px 6px 0;
|
||||
letter-spacing: 0.06em;
|
||||
}
|
||||
|
||||
.day-column {
|
||||
border-left: 1px solid var(--border-subtle);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.day-heading {
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
padding: 5px 0 9px;
|
||||
color: var(--text-3);
|
||||
letter-spacing: 0.1em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.day-body {
|
||||
position: relative;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.day-body::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: repeating-linear-gradient(
|
||||
to bottom,
|
||||
transparent,
|
||||
transparent calc(48px - 1px),
|
||||
var(--border-subtle) calc(48px - 1px),
|
||||
var(--border-subtle) 48px
|
||||
);
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.busy-block {
|
||||
position: absolute;
|
||||
left: 3px;
|
||||
right: 3px;
|
||||
z-index: 1;
|
||||
background: var(--surface-2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
font-size: 9.5px;
|
||||
padding: 3px 5px;
|
||||
overflow: hidden;
|
||||
color: var(--text-3);
|
||||
font-family: var(--font-mono);
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
.busy-block[data-own="true"] {
|
||||
background: rgba(82, 181, 131, 0.06);
|
||||
border-color: rgba(82, 181, 131, 0.18);
|
||||
color: rgba(82, 181, 131, 0.45);
|
||||
}
|
||||
|
||||
.mutual-slot {
|
||||
position: absolute;
|
||||
left: 3px;
|
||||
right: 3px;
|
||||
z-index: 2;
|
||||
background: var(--accent-bg);
|
||||
border: 1px solid var(--accent-border);
|
||||
border-radius: 4px;
|
||||
font-size: 9.5px;
|
||||
color: var(--accent);
|
||||
cursor: pointer;
|
||||
padding: 3px 5px;
|
||||
font-family: var(--font-mono);
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.04em;
|
||||
transition: background 0.12s, box-shadow 0.12s, border-color 0.12s;
|
||||
}
|
||||
|
||||
.mutual-slot:hover {
|
||||
background: var(--accent-bg-hover);
|
||||
border-color: rgba(82, 181, 131, 0.45);
|
||||
box-shadow: 0 0 10px rgba(82, 181, 131, 0.18);
|
||||
}
|
||||
|
||||
.mutual-slot[data-selected="true"] {
|
||||
background: var(--accent);
|
||||
color: #0a1f10;
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 16px rgba(82, 181, 131, 0.4);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* ================================================================
|
||||
COMPOSER
|
||||
================================================================ */
|
||||
|
||||
.composer {
|
||||
background: var(--surface-1);
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: var(--radius-xl);
|
||||
padding: 20px;
|
||||
position: sticky;
|
||||
top: 28px;
|
||||
}
|
||||
|
||||
.composer h2 {
|
||||
font-family: var(--font-display);
|
||||
font-size: 17px;
|
||||
font-weight: 400;
|
||||
letter-spacing: -0.02em;
|
||||
margin: 0 0 16px;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.composer-group {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 11px 13px;
|
||||
margin: 0 0 14px;
|
||||
background: var(--surface-2);
|
||||
}
|
||||
|
||||
.composer-group legend {
|
||||
font-size: 9.5px;
|
||||
font-weight: 700;
|
||||
color: var(--text-3);
|
||||
padding: 0 6px;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.attendee-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
font-size: 13px;
|
||||
padding: 5px 0;
|
||||
cursor: pointer;
|
||||
color: var(--text-2);
|
||||
transition: color 0.12s;
|
||||
}
|
||||
|
||||
.attendee-row:hover { color: var(--text); }
|
||||
|
||||
.duration-presets {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.duration-custom {
|
||||
width: 58px;
|
||||
background: var(--surface-0);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 6px 8px;
|
||||
color: var(--text);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 12px;
|
||||
transition: border-color 0.14s;
|
||||
}
|
||||
|
||||
.duration-custom:focus {
|
||||
outline: none;
|
||||
border-color: var(--accent-border);
|
||||
}
|
||||
|
||||
.selected-slot {
|
||||
font-size: 13px;
|
||||
margin: 12px 0 14px;
|
||||
padding: 10px 13px;
|
||||
border-radius: var(--radius);
|
||||
background: var(--surface-2);
|
||||
border: 1px solid var(--border-subtle);
|
||||
min-height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.selected-slot > span:not(.muted) {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11.5px;
|
||||
color: var(--accent);
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
/* ================================================================
|
||||
AVAILABILITY + SETTINGS
|
||||
================================================================ */
|
||||
|
||||
.availability-layout,
|
||||
.connections-layout {
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
max-width: 600px;
|
||||
}
|
||||
|
||||
.settings-card {
|
||||
background: var(--surface-1);
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: var(--radius-xl);
|
||||
padding: 22px;
|
||||
}
|
||||
|
||||
.settings-card h2 {
|
||||
font-family: var(--font-display);
|
||||
font-size: 17px;
|
||||
font-weight: 400;
|
||||
letter-spacing: -0.02em;
|
||||
margin: 0 0 4px;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.weekly-rows {
|
||||
display: grid;
|
||||
gap: 0;
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
.weekly-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
padding: 10px 0;
|
||||
border-top: 1px solid var(--border-subtle);
|
||||
transition: opacity 0.2s;
|
||||
}
|
||||
|
||||
.weekly-row[data-enabled="false"] { opacity: 0.38; }
|
||||
|
||||
.weekly-toggle {
|
||||
min-width: 136px;
|
||||
color: var(--text);
|
||||
font-weight: 500;
|
||||
font-size: 13px;
|
||||
gap: 10px !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
.time-range {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.time-range input {
|
||||
background: var(--surface-2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 5px 8px;
|
||||
color: var(--text);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11.5px;
|
||||
letter-spacing: 0.04em;
|
||||
transition: border-color 0.14s;
|
||||
}
|
||||
|
||||
.time-range input:focus {
|
||||
outline: none;
|
||||
border-color: var(--accent-border);
|
||||
box-shadow: 0 0 0 2px var(--accent-bg);
|
||||
}
|
||||
|
||||
.dash {
|
||||
color: var(--text-3);
|
||||
font-size: 11px;
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
.unavailable-label {
|
||||
font-style: italic;
|
||||
color: var(--text-3);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.override-list {
|
||||
list-style: none;
|
||||
margin: 12px 0 0;
|
||||
padding: 0;
|
||||
display: grid;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.override-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
padding: 10px 0;
|
||||
border-top: 1px solid var(--border-subtle);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.save-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding-top: 4px;
|
||||
}
|
||||
|
||||
/* ================================================================
|
||||
CONNECTIONS
|
||||
================================================================ */
|
||||
|
||||
.provider-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
padding: 12px 0;
|
||||
border-top: 1px solid var(--border-subtle);
|
||||
}
|
||||
|
||||
.provider-name {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
text-transform: capitalize;
|
||||
}
|
||||
|
||||
.provider-status.connected {
|
||||
font-size: 10px;
|
||||
color: var(--accent);
|
||||
font-weight: 700;
|
||||
font-family: var(--font-mono);
|
||||
letter-spacing: 0.1em;
|
||||
text-transform: uppercase;
|
||||
background: var(--accent-bg);
|
||||
padding: 4px 10px;
|
||||
border-radius: 20px;
|
||||
border: 1px solid var(--accent-border);
|
||||
}
|
||||
|
||||
.browse-button {
|
||||
display: inline-flex;
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
.privacy-note {
|
||||
font-size: 10.5px;
|
||||
color: var(--text-3);
|
||||
font-family: var(--font-mono);
|
||||
letter-spacing: 0.04em;
|
||||
padding: 14px 0 2px;
|
||||
border-top: 1px solid var(--border-subtle);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* ================================================================
|
||||
RESPONSIVE
|
||||
================================================================ */
|
||||
|
||||
@media (max-width: 960px) {
|
||||
.calendar-layout { grid-template-columns: 1fr; }
|
||||
.composer { position: static; }
|
||||
}
|
||||
|
||||
@media (max-width: 860px) {
|
||||
.app-frame { grid-template-columns: 1fr; }
|
||||
.sidebar { min-height: auto; height: auto; position: static; border-right: 0; border-bottom: 1px solid var(--border-subtle); }
|
||||
}
|
||||
|
||||
@@ -1,14 +1,39 @@
|
||||
import type { Metadata } from "next";
|
||||
import { DM_Sans, DM_Serif_Display, JetBrains_Mono } from "next/font/google";
|
||||
import "./globals.css";
|
||||
|
||||
const dmSans = DM_Sans({
|
||||
subsets: ["latin"],
|
||||
variable: "--font-dm-sans",
|
||||
display: "swap",
|
||||
});
|
||||
|
||||
const dmSerifDisplay = DM_Serif_Display({
|
||||
subsets: ["latin"],
|
||||
weight: "400",
|
||||
style: ["normal", "italic"],
|
||||
variable: "--font-serif",
|
||||
display: "swap",
|
||||
});
|
||||
|
||||
const jetbrainsMono = JetBrains_Mono({
|
||||
subsets: ["latin"],
|
||||
weight: ["400", "500"],
|
||||
variable: "--font-jb-mono",
|
||||
display: "swap",
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Vynte Schedule",
|
||||
description: "Internal Vynte team scheduling",
|
||||
icons: {
|
||||
icon: [{ url: "/favicon.svg", type: "image/svg+xml" }],
|
||||
},
|
||||
};
|
||||
|
||||
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<html lang="en" className={`${dmSans.variable} ${dmSerifDisplay.variable} ${jetbrainsMono.variable}`}>
|
||||
<body>{children}</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
@@ -21,7 +21,17 @@ export function AppShell({
|
||||
return (
|
||||
<div className="app-frame">
|
||||
<aside className="sidebar">
|
||||
<div className="brand">Vynte Schedule</div>
|
||||
<div className="brand">
|
||||
<svg width="22" height="22" viewBox="0 0 32 32" aria-hidden="true" style={{ flexShrink: 0 }}>
|
||||
<rect width="32" height="32" rx="7.5" fill="#0d0f11"/>
|
||||
<rect x="6" y="7" width="4" height="4" rx="1" fill="#52b583" opacity="0.5"/>
|
||||
<rect x="22" y="7" width="4" height="4" rx="1" fill="#52b583" opacity="0.5"/>
|
||||
<line x1="8" y1="11" x2="16" y2="22.5" stroke="#52b583" strokeWidth="2.5" strokeLinecap="round"/>
|
||||
<line x1="24" y1="11" x2="16" y2="22.5" stroke="#52b583" strokeWidth="2.5" strokeLinecap="round"/>
|
||||
<circle cx="16" cy="22.5" r="2.5" fill="#52b583"/>
|
||||
</svg>
|
||||
Vynte Schedule
|
||||
</div>
|
||||
<nav className="nav-list" aria-label="Scheduler navigation">
|
||||
{navItems.map((item) => (
|
||||
<Link key={item.id} className="nav-item" data-active={item.id === active} href={item.href}>
|
||||
@@ -32,6 +42,7 @@ export function AppShell({
|
||||
<div className="profile-block">
|
||||
<strong>{user.name}</strong>
|
||||
<span>{user.timeZone}</span>
|
||||
<a href="/api/auth/signout" className="signout-link">Sign out</a>
|
||||
</div>
|
||||
</aside>
|
||||
<main className="main-surface">{children}</main>
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
// Strips "husky install && " from the root postinstall script so yarn install
|
||||
// succeeds in Docker where .git is absent (excluded by .dockerignore).
|
||||
const fs = require("fs");
|
||||
const pkg = JSON.parse(fs.readFileSync("package.json", "utf8"));
|
||||
pkg.scripts.postinstall = pkg.scripts.postinstall.replace("husky install && ", "");
|
||||
fs.writeFileSync("package.json", JSON.stringify(pkg, null, 2));
|
||||
@@ -0,0 +1,25 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
||||
<defs>
|
||||
<filter id="glow" x="-50%" y="-50%" width="200%" height="200%">
|
||||
<feGaussianBlur stdDeviation="1.5" result="blur"/>
|
||||
<feMerge>
|
||||
<feMergeNode in="blur"/>
|
||||
<feMergeNode in="SourceGraphic"/>
|
||||
</feMerge>
|
||||
</filter>
|
||||
</defs>
|
||||
|
||||
<!-- Background -->
|
||||
<rect width="32" height="32" rx="7.5" fill="#0d0f11"/>
|
||||
|
||||
<!-- Calendar squares at the V tips — events to be scheduled -->
|
||||
<rect x="6" y="7" width="4" height="4" rx="1" fill="#52b583" opacity="0.5"/>
|
||||
<rect x="22" y="7" width="4" height="4" rx="1" fill="#52b583" opacity="0.5"/>
|
||||
|
||||
<!-- V arms — the convergence path -->
|
||||
<line x1="8" y1="11" x2="16" y2="22.5" stroke="#52b583" stroke-width="2.5" stroke-linecap="round"/>
|
||||
<line x1="24" y1="11" x2="16" y2="22.5" stroke="#52b583" stroke-width="2.5" stroke-linecap="round"/>
|
||||
|
||||
<!-- Convergence dot — the meeting point -->
|
||||
<circle cx="16" cy="22.5" r="2.5" fill="#52b583" filter="url(#glow)"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1015 B |
@@ -0,0 +1,56 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 210 52" width="210" height="52">
|
||||
<defs>
|
||||
<style>
|
||||
.wm { font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif; }
|
||||
.sub { font-family: system-ui, -apple-system, 'Helvetica Neue', sans-serif; }
|
||||
</style>
|
||||
<filter id="dot-glow" x="-100%" y="-100%" width="300%" height="300%">
|
||||
<feGaussianBlur stdDeviation="2.5" result="blur"/>
|
||||
<feMerge>
|
||||
<feMergeNode in="blur"/>
|
||||
<feMergeNode in="SourceGraphic"/>
|
||||
</feMerge>
|
||||
</filter>
|
||||
</defs>
|
||||
|
||||
<!-- ── Mark icon (48 × 48) centred vertically in 52px height ── -->
|
||||
<g transform="translate(0, 2)">
|
||||
<!-- Background tile -->
|
||||
<rect width="48" height="48" rx="11" fill="#0d0f11"/>
|
||||
|
||||
<!-- Subtle inner border -->
|
||||
<rect x="0.5" y="0.5" width="47" height="47" rx="10.5"
|
||||
fill="none" stroke="#1e2226" stroke-width="1"/>
|
||||
|
||||
<!-- Calendar squares at the top of each arm -->
|
||||
<rect x="9" y="10" width="6" height="6" rx="1.5" fill="#52b583" opacity="0.45"/>
|
||||
<rect x="33" y="10" width="6" height="6" rx="1.5" fill="#52b583" opacity="0.45"/>
|
||||
|
||||
<!-- V arms -->
|
||||
<line x1="12" y1="16" x2="24" y2="33"
|
||||
stroke="#52b583" stroke-width="3.2" stroke-linecap="round"/>
|
||||
<line x1="36" y1="16" x2="24" y2="33"
|
||||
stroke="#52b583" stroke-width="3.2" stroke-linecap="round"/>
|
||||
|
||||
<!-- Convergence dot with glow -->
|
||||
<circle cx="24" cy="33" r="3.5" fill="#52b583" filter="url(#dot-glow)"/>
|
||||
</g>
|
||||
|
||||
<!-- ── Wordmark ── -->
|
||||
<!-- "Vynte" in DM Serif Display -->
|
||||
<text x="62" y="34"
|
||||
class="wm"
|
||||
font-family="'DM Serif Display', Georgia, serif"
|
||||
font-size="28"
|
||||
fill="#ddd8d2"
|
||||
letter-spacing="-0.6">Vynte</text>
|
||||
|
||||
<!-- "SCHEDULE" small-caps label -->
|
||||
<text x="63" y="47"
|
||||
class="sub"
|
||||
font-family="system-ui, -apple-system, sans-serif"
|
||||
font-size="8.5"
|
||||
fill="#4d545d"
|
||||
letter-spacing="3.2"
|
||||
font-weight="600">SCHEDULE</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
@@ -150,6 +150,7 @@ services:
|
||||
NODE_ENV: production
|
||||
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
|
||||
NEXTAUTH_URL: ${NEXTAUTH_URL}
|
||||
NEXTAUTH_COOKIE_DOMAIN: ${NEXTAUTH_COOKIE_DOMAIN:-}
|
||||
DATABASE_URL: postgresql://${POSTGRES_USER:-calcom}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-calcom}
|
||||
DATABASE_DIRECT_URL: postgresql://${POSTGRES_USER:-calcom}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-calcom}
|
||||
CALENDSO_ENCRYPTION_KEY: ${CALENDSO_ENCRYPTION_KEY}
|
||||
|
||||
Reference in New Issue
Block a user