Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion apps/web/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
// @ts-check
import { defineConfig } from "astro/config";
import tailwindcss from "@tailwindcss/vite";
import sitemap from "@astrojs/sitemap";
import { site } from "./src/lib/site.ts";

// https://astro.build/config
export default defineConfig({});
export default defineConfig({
site: site.url,
integrations: [sitemap()],
vite: {
plugins: [tailwindcss()],
},
});
7 changes: 5 additions & 2 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"check:types": "astro check",
"check:types": "astro check --minimumFailingSeverity hint",
"check:lint": "eslint --max-warnings 0"
},
"dependencies": {
"@astrojs/sitemap": "^3.7.2",
"@midwifes-notebook/server": "workspace:*",
"@tailwindcss/vite": "^4.3.0",
"@trpc/client": "^11.12.0",
"astro": "^6.3.5"
"astro": "^6.3.5",
"tailwindcss": "^4.2.1"
},
"devDependencies": {
"@astrojs/check": "^0.9.9",
Expand Down
Binary file modified apps/web/public/favicon.ico
Binary file not shown.
Binary file added apps/web/public/holding-baby.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
292 changes: 292 additions & 0 deletions apps/web/public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/web/public/mockup-client-detail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/web/public/mockup-client-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/web/public/og-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions apps/web/src/assets/apple-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions apps/web/src/assets/google-play-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions apps/web/src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---

---

<footer class="border-t border-border bg-background py-8">
<div
class="mx-auto flex max-w-6xl flex-col items-center justify-between gap-4 px-6 sm:flex-row"
>
<div class="flex items-center gap-2">
<img
src="/logo.svg"
alt="Midwife's Notebook logo"
width="22"
height="22"
/>
<span class="font-heading text-sm font-medium text-foreground"
>Midwife's Notebook</span
>
</div>
<p class="text-xs text-muted-foreground">
A client management app for midwives and doulas. Launching August 2026.
</p>
<p class="text-xs text-muted-foreground">
Created by{" "}
<a
href="https://davidasix.com?utm_source=midwifes-notebook&utm_medium=footer&utm_campaign=created-by"
aria-label="Developers Website (Opens in new tab)"
target="_blank"
rel="noopener noreferrer"
class="underline underline-offset-2 transition-colors hover:text-foreground"
>
davidasix
</a>{" "}
in <span role="img" aria-label="Canada">🇨🇦</span>
</p>
</div>
</footer>
22 changes: 22 additions & 0 deletions apps/web/src/components/Navigation.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---

---

<header
class="sticky top-0 z-50 border-b border-border/60 bg-background/90 backdrop-blur-sm"
>
<div class="mx-auto flex max-w-6xl items-center justify-between px-6 py-4">
<div class="flex items-center gap-2.5">
<img
src="/logo.svg"
alt="Midwife's Notebook logo"
width="28"
height="28"
/>
<span class="font-heading text-lg font-semibold text-primary">
Midwife's Notebook
</span>
</div>
<span class="text-sm text-muted-foreground">Coming August 2026</span>
</div>
</header>
28 changes: 28 additions & 0 deletions apps/web/src/components/PhoneFrame.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
interface Props {
src: string;
alt: string;
class?: string;
}
const { src, alt, class: className } = Astro.props;
---

<div class:list={["relative mx-auto w-55", className]}>
<div
class="relative overflow-hidden rounded-[2.5rem] border-4 border-foreground/15 bg-foreground/5 shadow-2xl"
>
<div class="relative overflow-hidden rounded-[2.2rem]">
<img
src={src}
alt={alt}
width="600"
height="1200"
class="w-full object-cover object-top"
/>
</div>
</div>
<div
class="pointer-events-none absolute inset-0 rounded-[2.5rem] ring-1 ring-inset ring-white/10"
>
</div>
</div>
15 changes: 15 additions & 0 deletions apps/web/src/components/SectionLabel.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
interface Props {
class?: string;
}
const { class: className } = Astro.props;
---

<p
class:list={[
"text-xs font-semibold uppercase tracking-[0.15em] text-muted-foreground",
className,
]}
>
<slot />
</p>
46 changes: 46 additions & 0 deletions apps/web/src/components/StoreButton.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
import AppleLogo from "../assets/apple-logo.svg";
import GooglePlayIcon from "../assets/google-play-icon.svg";

interface Props {
store: "apple" | "google";
href?: string;
}

const { store, href } = Astro.props;

const data = {
apple: { label: "Download on the", storeName: "App Store" },
google: { label: "Get it on", storeName: "Google Play" },
} as const;

const { label, storeName } = data[store];
const disabled = !href;
---

<a
href={disabled ? undefined : href}
aria-disabled={disabled}
aria-label={disabled ? `${storeName} — coming soon` : `${label} ${storeName}`}
class:list={[
"flex h-14 w-48 select-none items-center gap-3 rounded-xl bg-foreground px-4",
disabled
? "pointer-events-none grayscale opacity-80"
: "transition-opacity hover:opacity-80",
]}
>
{
store === "apple" && (
<AppleLogo class="h-7 w-auto shrink-0" fill="white" aria-hidden="true" />
)
}
{
store === "google" && (
<GooglePlayIcon class="h-7 w-auto shrink-0" aria-hidden="true" />
)
}
<div class="flex flex-col leading-none text-background">
<span class="text-[10px] opacity-80">{label}</span>
<span class="text-base font-semibold">{storeName}</span>
</div>
</a>
Loading
Loading