create-pet-adopt 0.0.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +120 -0
- package/index.js +920 -0
- package/package.json +43 -1
- package/template/.env.example +136 -0
- package/template/.pet-adopt/template.json +581 -0
- package/template/LICENSE +21 -0
- package/template/README.md +109 -0
- package/template/_gitignore +28 -0
- package/template/_pnpm-lock.yaml +9251 -0
- package/template/assets/sample-pet.png +0 -0
- package/template/components.json +25 -0
- package/template/docker-compose.yml +110 -0
- package/template/drizzle/pg/0000_initial.sql +176 -0
- package/template/drizzle/pg/0001_greedy_the_renegades.sql +1 -0
- package/template/drizzle/pg/0002_fuzzy_the_renegades.sql +1 -0
- package/template/drizzle/pg/0003_thin_multiple_man.sql +1 -0
- package/template/drizzle/pg/0004_boring_norman_osborn.sql +15 -0
- package/template/drizzle/pg/0005_bitter_proemial_gods.sql +3 -0
- package/template/drizzle/pg/0006_friendly_black_knight.sql +2 -0
- package/template/drizzle/pg/0007_wise_ozymandias.sql +11 -0
- package/template/drizzle/pg/0008_messy_human_fly.sql +2 -0
- package/template/drizzle/pg/0009_amused_lady_bullseye.sql +1 -0
- package/template/drizzle/pg/0010_cute_mauler.sql +7 -0
- package/template/drizzle/pg/0011_clear_purple_man.sql +3 -0
- package/template/drizzle/pg/0012_tiresome_gunslinger.sql +2 -0
- package/template/drizzle/pg/0013_awesome_wong.sql +18 -0
- package/template/drizzle/pg/0014_fantastic_sumo.sql +12 -0
- package/template/drizzle/pg/0015_pink_carnage.sql +12 -0
- package/template/drizzle/pg/0016_sloppy_king_bedlam.sql +2 -0
- package/template/drizzle/pg/0017_steep_warhawk.sql +15 -0
- package/template/drizzle/pg/0018_mixed_otto_octavius.sql +4 -0
- package/template/drizzle/pg/0019_talented_rocket_raccoon.sql +1 -0
- package/template/drizzle/pg/0020_worthless_zodiak.sql +19 -0
- package/template/drizzle/pg/0021_adorable_squadron_supreme.sql +1 -0
- package/template/drizzle/pg/0022_soft_pixie.sql +5 -0
- package/template/drizzle/pg/0023_fluffy_quasar.sql +1 -0
- package/template/drizzle/pg/0024_uneven_ken_ellis.sql +2 -0
- package/template/drizzle/pg/0025_rich_white_queen.sql +3 -0
- package/template/drizzle/pg/0026_spooky_komodo.sql +16 -0
- package/template/drizzle/pg/0027_big_thunderbolts.sql +2 -0
- package/template/drizzle/pg/meta/0000_snapshot.json +1265 -0
- package/template/drizzle/pg/meta/0001_snapshot.json +1272 -0
- package/template/drizzle/pg/meta/0002_snapshot.json +1278 -0
- package/template/drizzle/pg/meta/0003_snapshot.json +1284 -0
- package/template/drizzle/pg/meta/0004_snapshot.json +1401 -0
- package/template/drizzle/pg/meta/0005_snapshot.json +1401 -0
- package/template/drizzle/pg/meta/0006_snapshot.json +1414 -0
- package/template/drizzle/pg/meta/0007_snapshot.json +1485 -0
- package/template/drizzle/pg/meta/0008_snapshot.json +1504 -0
- package/template/drizzle/pg/meta/0009_snapshot.json +1510 -0
- package/template/drizzle/pg/meta/0010_snapshot.json +1556 -0
- package/template/drizzle/pg/meta/0011_snapshot.json +1574 -0
- package/template/drizzle/pg/meta/0012_snapshot.json +1586 -0
- package/template/drizzle/pg/meta/0013_snapshot.json +1730 -0
- package/template/drizzle/pg/meta/0014_snapshot.json +1805 -0
- package/template/drizzle/pg/meta/0015_snapshot.json +1883 -0
- package/template/drizzle/pg/meta/0016_snapshot.json +1897 -0
- package/template/drizzle/pg/meta/0017_snapshot.json +2013 -0
- package/template/drizzle/pg/meta/0018_snapshot.json +1988 -0
- package/template/drizzle/pg/meta/0019_snapshot.json +1994 -0
- package/template/drizzle/pg/meta/0020_snapshot.json +2108 -0
- package/template/drizzle/pg/meta/0021_snapshot.json +2114 -0
- package/template/drizzle/pg/meta/0022_snapshot.json +2126 -0
- package/template/drizzle/pg/meta/0023_snapshot.json +2132 -0
- package/template/drizzle/pg/meta/0024_snapshot.json +2151 -0
- package/template/drizzle/pg/meta/0025_snapshot.json +2169 -0
- package/template/drizzle/pg/meta/0026_snapshot.json +2294 -0
- package/template/drizzle/pg/meta/0027_snapshot.json +2330 -0
- package/template/drizzle/pg/meta/_journal.json +202 -0
- package/template/drizzle/sqlite/0000_initial.sql +176 -0
- package/template/drizzle/sqlite/0001_easy_sebastian_shaw.sql +1 -0
- package/template/drizzle/sqlite/0002_past_king_cobra.sql +1 -0
- package/template/drizzle/sqlite/0003_organic_masked_marvel.sql +1 -0
- package/template/drizzle/sqlite/0004_panoramic_inhumans.sql +15 -0
- package/template/drizzle/sqlite/0005_small_sunset_bain.sql +19 -0
- package/template/drizzle/sqlite/0006_narrow_medusa.sql +2 -0
- package/template/drizzle/sqlite/0007_gray_grandmaster.sql +10 -0
- package/template/drizzle/sqlite/0008_chief_toxin.sql +1 -0
- package/template/drizzle/sqlite/0009_vengeful_tag.sql +1 -0
- package/template/drizzle/sqlite/0010_kind_klaw.sql +7 -0
- package/template/drizzle/sqlite/0011_overrated_meltdown.sql +3 -0
- package/template/drizzle/sqlite/0012_robust_next_avengers.sql +2 -0
- package/template/drizzle/sqlite/0013_melodic_kitty_pryde.sql +18 -0
- package/template/drizzle/sqlite/0014_stormy_cyclops.sql +12 -0
- package/template/drizzle/sqlite/0015_parallel_mongu.sql +11 -0
- package/template/drizzle/sqlite/0016_grey_quicksilver.sql +2 -0
- package/template/drizzle/sqlite/0017_daily_psylocke.sql +15 -0
- package/template/drizzle/sqlite/0018_whole_redwing.sql +4 -0
- package/template/drizzle/sqlite/0019_spotty_mandroid.sql +1 -0
- package/template/drizzle/sqlite/0020_wild_wendell_rand.sql +19 -0
- package/template/drizzle/sqlite/0021_calm_lockheed.sql +1 -0
- package/template/drizzle/sqlite/0022_lonely_emma_frost.sql +5 -0
- package/template/drizzle/sqlite/0023_elite_tony_stark.sql +1 -0
- package/template/drizzle/sqlite/0024_little_lily_hollister.sql +1 -0
- package/template/drizzle/sqlite/0025_tough_shotgun.sql +3 -0
- package/template/drizzle/sqlite/0026_faithful_mephistopheles.sql +16 -0
- package/template/drizzle/sqlite/0027_rapid_arclight.sql +2 -0
- package/template/drizzle/sqlite/meta/0000_snapshot.json +1237 -0
- package/template/drizzle/sqlite/meta/0001_snapshot.json +1245 -0
- package/template/drizzle/sqlite/meta/0002_snapshot.json +1252 -0
- package/template/drizzle/sqlite/meta/0003_snapshot.json +1259 -0
- package/template/drizzle/sqlite/meta/0004_snapshot.json +1369 -0
- package/template/drizzle/sqlite/meta/0005_snapshot.json +1369 -0
- package/template/drizzle/sqlite/meta/0006_snapshot.json +1384 -0
- package/template/drizzle/sqlite/meta/0007_snapshot.json +1459 -0
- package/template/drizzle/sqlite/meta/0008_snapshot.json +1479 -0
- package/template/drizzle/sqlite/meta/0009_snapshot.json +1486 -0
- package/template/drizzle/sqlite/meta/0010_snapshot.json +1533 -0
- package/template/drizzle/sqlite/meta/0011_snapshot.json +1554 -0
- package/template/drizzle/sqlite/meta/0012_snapshot.json +1568 -0
- package/template/drizzle/sqlite/meta/0013_snapshot.json +1687 -0
- package/template/drizzle/sqlite/meta/0014_snapshot.json +1769 -0
- package/template/drizzle/sqlite/meta/0015_snapshot.json +1852 -0
- package/template/drizzle/sqlite/meta/0016_snapshot.json +1867 -0
- package/template/drizzle/sqlite/meta/0017_snapshot.json +1973 -0
- package/template/drizzle/sqlite/meta/0018_snapshot.json +1944 -0
- package/template/drizzle/sqlite/meta/0019_snapshot.json +1951 -0
- package/template/drizzle/sqlite/meta/0020_snapshot.json +2077 -0
- package/template/drizzle/sqlite/meta/0021_snapshot.json +2084 -0
- package/template/drizzle/sqlite/meta/0022_snapshot.json +2098 -0
- package/template/drizzle/sqlite/meta/0023_snapshot.json +2105 -0
- package/template/drizzle/sqlite/meta/0024_snapshot.json +2125 -0
- package/template/drizzle/sqlite/meta/0025_snapshot.json +2146 -0
- package/template/drizzle/sqlite/meta/0026_snapshot.json +2265 -0
- package/template/drizzle/sqlite/meta/0027_snapshot.json +2280 -0
- package/template/drizzle/sqlite/meta/_journal.json +202 -0
- package/template/drizzle.pg.config.ts +8 -0
- package/template/drizzle.sqlite.config.ts +8 -0
- package/template/eslint.config.mjs +22 -0
- package/template/next.config.ts +153 -0
- package/template/package.json +102 -0
- package/template/pet-adopt.blocks.ts +9 -0
- package/template/pet-adopt.config.ts +17 -0
- package/template/pnpm-workspace.yaml +19 -0
- package/template/postcss.config.mjs +5 -0
- package/template/scripts/check-routes.ts +405 -0
- package/template/scripts/check-schemas.ts +58 -0
- package/template/scripts/migrate-all.ts +25 -0
- package/template/scripts/migrate-on-build.ts +71 -0
- package/template/scripts/migrate.ts +20 -0
- package/template/scripts/plugin-generate.ts +92 -0
- package/template/scripts/reset-password.ts +45 -0
- package/template/scripts/reset-two-factor.ts +53 -0
- package/template/scripts/seed.ts +79 -0
- package/template/scripts/setup-env.ts +91 -0
- package/template/scripts/storage-check.ts +53 -0
- package/template/src/app/(admin)/admin/account/AccountForms.tsx +194 -0
- package/template/src/app/(admin)/admin/account/page.tsx +59 -0
- package/template/src/app/(admin)/admin/activity/page.tsx +76 -0
- package/template/src/app/(admin)/admin/authentication/archived/page.tsx +24 -0
- package/template/src/app/(admin)/admin/authentication/layout.tsx +20 -0
- package/template/src/app/(admin)/admin/authentication/page.tsx +36 -0
- package/template/src/app/(admin)/admin/authentication/providers/page.tsx +33 -0
- package/template/src/app/(admin)/admin/email/layout.tsx +21 -0
- package/template/src/app/(admin)/admin/email/page.tsx +43 -0
- package/template/src/app/(admin)/admin/email/templates/page.tsx +38 -0
- package/template/src/app/(admin)/admin/error.tsx +36 -0
- package/template/src/app/(admin)/admin/layout.tsx +26 -0
- package/template/src/app/(admin)/admin/loading.tsx +9 -0
- package/template/src/app/(admin)/admin/media/[id]/page.tsx +97 -0
- package/template/src/app/(admin)/admin/media/page.tsx +34 -0
- package/template/src/app/(admin)/admin/media/search-params.ts +16 -0
- package/template/src/app/(admin)/admin/page.tsx +79 -0
- package/template/src/app/(admin)/admin/pages/PageForm.tsx +604 -0
- package/template/src/app/(admin)/admin/pages/[id]/page.tsx +51 -0
- package/template/src/app/(admin)/admin/pages/new/page.tsx +19 -0
- package/template/src/app/(admin)/admin/pages/page.tsx +49 -0
- package/template/src/app/(admin)/admin/pets/PetForm.tsx +437 -0
- package/template/src/app/(admin)/admin/pets/[id]/page.tsx +41 -0
- package/template/src/app/(admin)/admin/pets/new/page.tsx +26 -0
- package/template/src/app/(admin)/admin/pets/page.tsx +70 -0
- package/template/src/app/(admin)/admin/pets/search-params.ts +16 -0
- package/template/src/app/(admin)/admin/plugins/[plugin]/[[...path]]/page.tsx +73 -0
- package/template/src/app/(admin)/admin/plugins/page.tsx +66 -0
- package/template/src/app/(admin)/admin/settings/SettingsForm.tsx +644 -0
- package/template/src/app/(admin)/admin/settings/email/page.tsx +9 -0
- package/template/src/app/(admin)/admin/settings/page.tsx +40 -0
- package/template/src/app/(admin)/admin/settings/templates/page.tsx +9 -0
- package/template/src/app/(admin)/admin/theme/[id]/page.tsx +28 -0
- package/template/src/app/(admin)/admin/theme/page.tsx +30 -0
- package/template/src/app/(admin)/admin/users/page.tsx +33 -0
- package/template/src/app/(admin)/layout.tsx +75 -0
- package/template/src/app/(admin)/providers.tsx +42 -0
- package/template/src/app/(auth)/admin/confirm-email/page.tsx +40 -0
- package/template/src/app/(auth)/admin/invite/page.tsx +38 -0
- package/template/src/app/(auth)/admin/login/DemoSignIn.tsx +69 -0
- package/template/src/app/(auth)/admin/login/page.tsx +83 -0
- package/template/src/app/(auth)/admin/reset-password/page.tsx +73 -0
- package/template/src/app/(auth)/error.tsx +9 -0
- package/template/src/app/(auth)/layout.tsx +71 -0
- package/template/src/app/(editor)/EditorToast.tsx +43 -0
- package/template/src/app/(editor)/edit/[id]/PageEditor.tsx +586 -0
- package/template/src/app/(editor)/edit/[id]/actions.ts +139 -0
- package/template/src/app/(editor)/edit/[id]/page.tsx +76 -0
- package/template/src/app/(editor)/edit/[id]/preview/page.tsx +81 -0
- package/template/src/app/(editor)/edit/email/[id]/EmailEditor.tsx +236 -0
- package/template/src/app/(editor)/edit/email/[id]/page.tsx +64 -0
- package/template/src/app/(editor)/edit/theme-preview/page.tsx +94 -0
- package/template/src/app/(editor)/editor.css +223 -0
- package/template/src/app/(editor)/error.tsx +32 -0
- package/template/src/app/(editor)/layout.tsx +67 -0
- package/template/src/app/(frontend)/[slug]/page.tsx +53 -0
- package/template/src/app/(frontend)/fonts.ts +8 -0
- package/template/src/app/(frontend)/layout.tsx +107 -0
- package/template/src/app/(frontend)/not-found.tsx +16 -0
- package/template/src/app/(frontend)/page.tsx +42 -0
- package/template/src/app/(frontend)/pets/[slug]/page.tsx +92 -0
- package/template/src/app/(frontend)/pets/page.tsx +42 -0
- package/template/src/app/(frontend)/styles.css +537 -0
- package/template/src/app/(setup)/error.tsx +9 -0
- package/template/src/app/(setup)/layout.tsx +41 -0
- package/template/src/app/(setup)/setup/page.tsx +105 -0
- package/template/src/app/(setup)/setup/storage-check.ts +43 -0
- package/template/src/app/api/auth/[...all]/route.ts +144 -0
- package/template/src/app/health/route.ts +9 -0
- package/template/src/app/media/[...path]/route.ts +45 -0
- package/template/src/app/media/email/[name]/route.ts +60 -0
- package/template/src/app/robots.ts +19 -0
- package/template/src/app/sitemap.ts +24 -0
- package/template/src/components/admin/AdminNav.tsx +153 -0
- package/template/src/components/admin/AdminShell.tsx +107 -0
- package/template/src/components/admin/DemoNotice.tsx +31 -0
- package/template/src/components/admin/EmailConfirmBanner.tsx +44 -0
- package/template/src/components/admin/EmptyState.tsx +10 -0
- package/template/src/components/admin/ErrorSummary.tsx +72 -0
- package/template/src/components/admin/MediaDetails.tsx +218 -0
- package/template/src/components/admin/MediaGrid.tsx +307 -0
- package/template/src/components/admin/MediaLibrary.tsx +103 -0
- package/template/src/components/admin/MediaPager.tsx +66 -0
- package/template/src/components/admin/PageHeader.tsx +22 -0
- package/template/src/components/admin/PhoneInput.tsx +128 -0
- package/template/src/components/admin/PluginWidgetBoundary.tsx +38 -0
- package/template/src/components/admin/PluginWidgets.tsx +51 -0
- package/template/src/components/admin/RemountOnNavigate.tsx +37 -0
- package/template/src/components/admin/StatusBadge.tsx +16 -0
- package/template/src/components/admin/UploadPhotosDialog.tsx +387 -0
- package/template/src/components/admin/UserAvatar.tsx +18 -0
- package/template/src/components/admin/UserMenu.tsx +118 -0
- package/template/src/components/admin/ViewSiteLink.tsx +24 -0
- package/template/src/components/admin/account/ConnectedProviders.tsx +91 -0
- package/template/src/components/admin/account/DeleteAccountCard.tsx +136 -0
- package/template/src/components/admin/account/EmailCard.tsx +137 -0
- package/template/src/components/admin/account/ProfilePicture.tsx +159 -0
- package/template/src/components/admin/activity/ActivityFilters.tsx +146 -0
- package/template/src/components/admin/activity/ActivityLog.tsx +159 -0
- package/template/src/components/admin/activity/RecentActivity.tsx +52 -0
- package/template/src/components/admin/demo-mode.tsx +17 -0
- package/template/src/components/admin/nav-items.ts +47 -0
- package/template/src/components/admin/pages/PageDetails.tsx +198 -0
- package/template/src/components/admin/pages/PageVersions.tsx +296 -0
- package/template/src/components/admin/pages/PagesTable.tsx +467 -0
- package/template/src/components/admin/pets/FilterBar.tsx +154 -0
- package/template/src/components/admin/pets/PetCard.tsx +170 -0
- package/template/src/components/admin/pets/PetList.tsx +112 -0
- package/template/src/components/admin/pets/PetListSkeleton.tsx +84 -0
- package/template/src/components/admin/pets/PetPagination.tsx +91 -0
- package/template/src/components/admin/pets/form/AgeFields.tsx +132 -0
- package/template/src/components/admin/pets/form/LocationFields.tsx +231 -0
- package/template/src/components/admin/pets/form/MediaPickerDialog.tsx +359 -0
- package/template/src/components/admin/pets/form/PhotosField.tsx +176 -0
- package/template/src/components/admin/pets/form/RichTextField.tsx +438 -0
- package/template/src/components/admin/pets/form/SeoImageField.tsx +87 -0
- package/template/src/components/admin/pets/form/SeoPreview.tsx +142 -0
- package/template/src/components/admin/pets/form/fields.tsx +434 -0
- package/template/src/components/admin/pets/form/rich-text-extensions.ts +45 -0
- package/template/src/components/admin/pets/timeline/PetTimeline.tsx +297 -0
- package/template/src/components/admin/pets/timeline/TimelineEntryForm.tsx +289 -0
- package/template/src/components/admin/pets/timeline/TimelinePhotosField.tsx +173 -0
- package/template/src/components/admin/plugins/PluginNotReady.tsx +28 -0
- package/template/src/components/admin/plugins/PluginOverview.tsx +121 -0
- package/template/src/components/admin/plugins/SendTestEmail.tsx +70 -0
- package/template/src/components/admin/settings/AuthProviders.tsx +373 -0
- package/template/src/components/admin/settings/AuthenticationNav.tsx +42 -0
- package/template/src/components/admin/settings/EmailNav.tsx +40 -0
- package/template/src/components/admin/settings/EmailSettingsForm.tsx +325 -0
- package/template/src/components/admin/settings/EmailTemplates.tsx +551 -0
- package/template/src/components/admin/settings/RegionFields.tsx +203 -0
- package/template/src/components/admin/site-time.tsx +26 -0
- package/template/src/components/admin/theme/ThemeEditor.tsx +467 -0
- package/template/src/components/admin/theme/ThemeLibrary.tsx +339 -0
- package/template/src/components/admin/theme/ThemeSwatches.tsx +30 -0
- package/template/src/components/admin/theme/theme-utils.ts +32 -0
- package/template/src/components/admin/two-factor/BackupCodeList.tsx +54 -0
- package/template/src/components/admin/two-factor/TwoFactorCard.tsx +237 -0
- package/template/src/components/admin/two-factor/TwoFactorRequired.tsx +52 -0
- package/template/src/components/admin/two-factor/TwoFactorSetup.tsx +180 -0
- package/template/src/components/admin/use-unsaved-changes.tsx +101 -0
- package/template/src/components/admin/users/ArchivedAccounts.tsx +159 -0
- package/template/src/components/admin/users/InviteDialogs.tsx +131 -0
- package/template/src/components/admin/users/TwoFactorRoles.tsx +80 -0
- package/template/src/components/admin/users/UserDialogs.tsx +681 -0
- package/template/src/components/admin/users/UsersTable.tsx +374 -0
- package/template/src/components/admin/view-only.tsx +43 -0
- package/template/src/components/auth/AcceptInviteForm.tsx +123 -0
- package/template/src/components/auth/AuthNav.tsx +80 -0
- package/template/src/components/auth/ConfirmEmailForm.tsx +73 -0
- package/template/src/components/auth/LoginForm.tsx +250 -0
- package/template/src/components/auth/PageError.tsx +37 -0
- package/template/src/components/auth/ProviderSignIn.tsx +53 -0
- package/template/src/components/auth/ResetPasswordForm.tsx +267 -0
- package/template/src/components/demo/DemoBanner.tsx +38 -0
- package/template/src/components/demo/SiteDemoBanner.tsx +22 -0
- package/template/src/components/demo/wording.ts +21 -0
- package/template/src/components/setup/SetupAccountForm.tsx +93 -0
- package/template/src/components/setup/SetupDone.tsx +95 -0
- package/template/src/components/setup/SetupNav.tsx +49 -0
- package/template/src/components/setup/SetupSampleContent.tsx +67 -0
- package/template/src/components/setup/SetupSiteForm.tsx +104 -0
- package/template/src/components/setup/SetupThemePicker.tsx +73 -0
- package/template/src/components/setup/SkipSetup.tsx +35 -0
- package/template/src/components/site/BuilderContent.tsx +46 -0
- package/template/src/components/site/CopyButton.tsx +28 -0
- package/template/src/components/site/ImageCarousel.tsx +52 -0
- package/template/src/components/site/PetCard.tsx +32 -0
- package/template/src/components/site/PetCatalog.tsx +106 -0
- package/template/src/components/site/PetGallery.tsx +75 -0
- package/template/src/components/site/PetTimeline.tsx +82 -0
- package/template/src/components/site/RemountOnNavigate.tsx +13 -0
- package/template/src/components/site/RichText.tsx +56 -0
- package/template/src/components/site/SmartLink.tsx +37 -0
- package/template/src/components/site/SocialIcons.tsx +26 -0
- package/template/src/components/site/ThemePreviewBridge.tsx +29 -0
- package/template/src/components/site/ThemeStyle.tsx +22 -0
- package/template/src/components/site/ThemeToggle.tsx +36 -0
- package/template/src/components/site/WhatsAppButton.tsx +27 -0
- package/template/src/components/site/timeline-format.ts +20 -0
- package/template/src/db/client.ts +702 -0
- package/template/src/db/compare-tables.ts +41 -0
- package/template/src/db/migrate.ts +28 -0
- package/template/src/db/plugin-migrations.ts +167 -0
- package/template/src/db/schema/pg.ts +484 -0
- package/template/src/db/schema/sqlite.ts +492 -0
- package/template/src/instrumentation.ts +110 -0
- package/template/src/lib/activity.ts +29 -0
- package/template/src/lib/admin/call-action.ts +19 -0
- package/template/src/lib/admin/initials.ts +9 -0
- package/template/src/lib/admin/media-cache.ts +16 -0
- package/template/src/lib/admin/media-page.ts +3 -0
- package/template/src/lib/admin/pet-form.ts +242 -0
- package/template/src/lib/admin/pets-cache.ts +22 -0
- package/template/src/lib/admin/unwrap-client.ts +11 -0
- package/template/src/lib/admin/unwrap.ts +38 -0
- package/template/src/lib/admin/use-media-list.ts +41 -0
- package/template/src/lib/admin/use-pet-list.ts +58 -0
- package/template/src/lib/age.ts +117 -0
- package/template/src/lib/auth-provider-errors.ts +38 -0
- package/template/src/lib/cache.ts +69 -0
- package/template/src/lib/color-mode.ts +48 -0
- package/template/src/lib/demo.ts +78 -0
- package/template/src/lib/email-address.ts +9 -0
- package/template/src/lib/email-template.ts +691 -0
- package/template/src/lib/links.ts +78 -0
- package/template/src/lib/mail-error.ts +38 -0
- package/template/src/lib/media-name.ts +31 -0
- package/template/src/lib/options.ts +134 -0
- package/template/src/lib/pagination.ts +28 -0
- package/template/src/lib/pet-placeholders.ts +34 -0
- package/template/src/lib/pet-seo.ts +40 -0
- package/template/src/lib/pet-timeline.ts +62 -0
- package/template/src/lib/phone.ts +129 -0
- package/template/src/lib/places.ts +84 -0
- package/template/src/lib/queries.ts +549 -0
- package/template/src/lib/revalidate.ts +32 -0
- package/template/src/lib/rich-text.ts +215 -0
- package/template/src/lib/seo.ts +121 -0
- package/template/src/lib/slugify.ts +11 -0
- package/template/src/lib/theme.ts +546 -0
- package/template/src/lib/utils.ts +2 -0
- package/template/src/lib/whatsapp.ts +29 -0
- package/template/src/lib/zod-schema/auth.ts +56 -0
- package/template/src/lib/zod-schema/page.ts +57 -0
- package/template/src/lib/zod-schema/pet-timeline.ts +118 -0
- package/template/src/lib/zod-schema/pet.ts +172 -0
- package/template/src/lib/zod-schema/settings.ts +162 -0
- package/template/src/plugins/host.ts +117 -0
- package/template/src/plugins/icon.ts +89 -0
- package/template/src/plugins/registry.ts +369 -0
- package/template/src/plugins/storage-rules.ts +87 -0
- package/template/src/plugins/storage.ts +184 -0
- package/template/src/puck/actions.ts +46 -0
- package/template/src/puck/config.tsx +1693 -0
- package/template/src/puck/data.ts +196 -0
- package/template/src/puck/demo-mode.tsx +20 -0
- package/template/src/puck/email-config.tsx +267 -0
- package/template/src/puck/icons.tsx +76 -0
- package/template/src/puck/media-picker.tsx +273 -0
- package/template/src/puck/padding.tsx +71 -0
- package/template/src/puck/pet-page-config.tsx +511 -0
- package/template/src/puck/pet-picker.tsx +40 -0
- package/template/src/puck/plugin-block-data.ts +91 -0
- package/template/src/puck/plugin-blocks.tsx +235 -0
- package/template/src/puck/plugin-choice-field.tsx +87 -0
- package/template/src/puck/sanitize.ts +107 -0
- package/template/src/puck/server.ts +36 -0
- package/template/src/puck/types.ts +41 -0
- package/template/src/server/actions/activity.ts +48 -0
- package/template/src/server/actions/auth-providers.ts +171 -0
- package/template/src/server/actions/auth.ts +217 -0
- package/template/src/server/actions/demo.ts +30 -0
- package/template/src/server/actions/email-change.ts +80 -0
- package/template/src/server/actions/email-templates.ts +144 -0
- package/template/src/server/actions/email.ts +70 -0
- package/template/src/server/actions/media.ts +127 -0
- package/template/src/server/actions/pages.ts +159 -0
- package/template/src/server/actions/password-reset.ts +80 -0
- package/template/src/server/actions/pet-timeline.ts +75 -0
- package/template/src/server/actions/pets.ts +74 -0
- package/template/src/server/actions/places.ts +36 -0
- package/template/src/server/actions/settings.ts +29 -0
- package/template/src/server/actions/setup.ts +72 -0
- package/template/src/server/actions/themes.ts +80 -0
- package/template/src/server/actions/two-factor.ts +306 -0
- package/template/src/server/actions/users.ts +200 -0
- package/template/src/server/activity.ts +409 -0
- package/template/src/server/auth-errors.ts +17 -0
- package/template/src/server/auth-providers.ts +359 -0
- package/template/src/server/auth.ts +266 -0
- package/template/src/server/avatars.ts +263 -0
- package/template/src/server/demo-site.ts +169 -0
- package/template/src/server/email-change.ts +278 -0
- package/template/src/server/email-templates.ts +350 -0
- package/template/src/server/email.ts +442 -0
- package/template/src/server/invites.ts +143 -0
- package/template/src/server/media-url.ts +20 -0
- package/template/src/server/media.ts +236 -0
- package/template/src/server/pages.ts +812 -0
- package/template/src/server/password-reset.ts +158 -0
- package/template/src/server/pending-links.ts +46 -0
- package/template/src/server/pet-timeline.ts +181 -0
- package/template/src/server/pets.ts +555 -0
- package/template/src/server/places.ts +113 -0
- package/template/src/server/privacy.ts +21 -0
- package/template/src/server/provider-endpoints.ts +94 -0
- package/template/src/server/provider-guard.ts +157 -0
- package/template/src/server/result.ts +280 -0
- package/template/src/server/sample-content.ts +368 -0
- package/template/src/server/search-text.ts +43 -0
- package/template/src/server/secret-box.ts +38 -0
- package/template/src/server/session.ts +154 -0
- package/template/src/server/settings.ts +361 -0
- package/template/src/server/setup.ts +110 -0
- package/template/src/server/sitemap.ts +88 -0
- package/template/src/server/storage.ts +267 -0
- package/template/src/server/strip-metadata.ts +357 -0
- package/template/src/server/themes.ts +195 -0
- package/template/src/server/throttle.ts +258 -0
- package/template/src/server/two-factor-codes.ts +32 -0
- package/template/src/server/two-factor.ts +158 -0
- package/template/src/server/types.ts +198 -0
- package/template/src/server/uploads.ts +137 -0
- package/template/src/server/users.ts +500 -0
- package/template/tsconfig.json +44 -0
- package/template/ui/components.json +25 -0
- package/template/ui/package.json +12 -0
- package/template/ui/src/components/alert-dialog.tsx +187 -0
- package/template/ui/src/components/avatar.tsx +108 -0
- package/template/ui/src/components/badge.tsx +51 -0
- package/template/ui/src/components/button.tsx +57 -0
- package/template/ui/src/components/card.tsx +102 -0
- package/template/ui/src/components/carousel.tsx +245 -0
- package/template/ui/src/components/checkbox.tsx +27 -0
- package/template/ui/src/components/combobox.tsx +297 -0
- package/template/ui/src/components/dialog.tsx +159 -0
- package/template/ui/src/components/dropdown-menu.tsx +265 -0
- package/template/ui/src/components/field.tsx +238 -0
- package/template/ui/src/components/input-group.tsx +158 -0
- package/template/ui/src/components/input.tsx +19 -0
- package/template/ui/src/components/label.tsx +19 -0
- package/template/ui/src/components/pagination.tsx +127 -0
- package/template/ui/src/components/popover.tsx +89 -0
- package/template/ui/src/components/radio-group.tsx +37 -0
- package/template/ui/src/components/select.tsx +200 -0
- package/template/ui/src/components/separator.tsx +24 -0
- package/template/ui/src/components/sheet.tsx +138 -0
- package/template/ui/src/components/sidebar.tsx +723 -0
- package/template/ui/src/components/skeleton.tsx +13 -0
- package/template/ui/src/components/switch.tsx +31 -0
- package/template/ui/src/components/table.tsx +115 -0
- package/template/ui/src/components/tabs.tsx +81 -0
- package/template/ui/src/components/textarea.tsx +17 -0
- package/template/ui/src/components/toggle.tsx +44 -0
- package/template/ui/src/components/tooltip.tsx +65 -0
- package/template/ui/src/hooks/use-mobile.ts +21 -0
- package/template/ui/src/lib/utils.ts +2 -0
- package/template/ui/src/styles/globals.css +145 -0
|
@@ -0,0 +1,537 @@
|
|
|
1
|
+
/* Pet Adopt: plain CSS, themed with CSS variables.
|
|
2
|
+
The :root block below is the fallback (the "Sunrise" look). The real values are written into the
|
|
3
|
+
page by src/components/site/ThemeStyle.tsx from the theme chosen in Site settings, using
|
|
4
|
+
`html:root`, which outranks this block. See src/lib/theme.ts for every variable. */
|
|
5
|
+
:root {
|
|
6
|
+
/* Colours */
|
|
7
|
+
--bg: #ffffff;
|
|
8
|
+
--surface: #ffffff;
|
|
9
|
+
--surface-alt: #fafafa;
|
|
10
|
+
--placeholder: #f3f4f6;
|
|
11
|
+
--ink: #1f2937;
|
|
12
|
+
--muted: #6b7280;
|
|
13
|
+
--line: #e5e7eb;
|
|
14
|
+
--line-strong: #d1d5db;
|
|
15
|
+
--tint: #fff7f0;
|
|
16
|
+
--primary: #e8590c;
|
|
17
|
+
--on-primary: #ffffff;
|
|
18
|
+
--primary-text: #c2410c;
|
|
19
|
+
--band-bg: #111827;
|
|
20
|
+
--band-ink: #f9fafb;
|
|
21
|
+
--band-link: #fdba74;
|
|
22
|
+
--ok-bg: #dcfce7;
|
|
23
|
+
--ok-ink: #166534;
|
|
24
|
+
--warn-bg: #fef9c3;
|
|
25
|
+
--warn-ink: #854d0e;
|
|
26
|
+
--neutral-bg: #e5e7eb;
|
|
27
|
+
--neutral-ink: #374151;
|
|
28
|
+
/* Shape and depth */
|
|
29
|
+
--radius: 12px;
|
|
30
|
+
--radius-sm: 7px;
|
|
31
|
+
--radius-btn: 999px;
|
|
32
|
+
--radius-badge: 999px;
|
|
33
|
+
--shadow-card: none;
|
|
34
|
+
--shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
|
|
35
|
+
/* Type and spacing */
|
|
36
|
+
--font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
|
37
|
+
--font-heading: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
|
38
|
+
--heading-weight: 700;
|
|
39
|
+
--font-size-root: 16px;
|
|
40
|
+
--density: 1;
|
|
41
|
+
--container: 1120px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
45
|
+
html { -webkit-text-size-adjust: 100%; font-size: var(--font-size-root); }
|
|
46
|
+
body { margin: 0; font-family: var(--font-body); color: var(--ink); line-height: 1.6; background: var(--bg); }
|
|
47
|
+
img { max-width: 100%; }
|
|
48
|
+
a { color: var(--primary-text); }
|
|
49
|
+
/* Headings. One scale, used everywhere. The size comes from the role, not the tag, because a block
|
|
50
|
+
heading can be an <h1> (the first heading on a page) or an <h2> and must look the same either way:
|
|
51
|
+
.hero-title the banner heading (h1 size)
|
|
52
|
+
.block-heading a section's heading (h2 size)
|
|
53
|
+
.item-heading a card or item title (h3 size)
|
|
54
|
+
.minor-heading a small label, "Medical history" (h4 size)
|
|
55
|
+
Plain tags get the same sizes, for headings written outside the blocks. */
|
|
56
|
+
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--heading-weight); line-height: 1.2; margin: 0 0 0.5em; }
|
|
57
|
+
h1, .hero-title { font-size: clamp(2rem, 4.5vw, 3rem); }
|
|
58
|
+
h2, .block-heading { font-size: clamp(1.5rem, 3vw, 2.1rem); }
|
|
59
|
+
h3, .item-heading { font-size: 1.2rem; }
|
|
60
|
+
h4, .minor-heading { font-size: 1.02rem; }
|
|
61
|
+
.block-heading { margin-bottom: 0.6em; }
|
|
62
|
+
p { margin: 0 0 1em; }
|
|
63
|
+
.muted { color: var(--muted); }
|
|
64
|
+
.pre-line { white-space: pre-line; }
|
|
65
|
+
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
|
|
66
|
+
|
|
67
|
+
/* Buttons */
|
|
68
|
+
.btn { display: inline-block; padding: 0.7em 1.4em; border-radius: var(--radius-btn); border: 2px solid var(--primary); font-weight: 600; text-decoration: none; cursor: pointer; font-size: 1rem; line-height: 1.2; font-family: inherit; }
|
|
69
|
+
.btn-primary { background: var(--primary); color: var(--on-primary); }
|
|
70
|
+
.btn-outline { background: transparent; color: var(--primary-text); }
|
|
71
|
+
.btn-small { padding: 0.45em 1em; font-size: 0.9rem; }
|
|
72
|
+
/* White only over a photo (which has a dark overlay). A hero without a photo sits on the light tint,
|
|
73
|
+
where white was invisible (1.06:1): there the outline button keeps the theme's link colour. */
|
|
74
|
+
.hero-has-image .btn-on-hero { color: #fff; border-color: #fff; }
|
|
75
|
+
.mode-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-btn); background: var(--surface); color: var(--ink); cursor: pointer; }
|
|
76
|
+
.mode-toggle:hover { border-color: var(--primary); color: var(--primary-text); }
|
|
77
|
+
.mode-toggle:disabled { opacity: 0.5; cursor: default; }
|
|
78
|
+
:focus-visible { outline: 2px solid var(--primary-text); outline-offset: 2px; }
|
|
79
|
+
|
|
80
|
+
/* Header and footer */
|
|
81
|
+
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
|
|
82
|
+
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
|
|
83
|
+
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 1.2rem; color: var(--ink); text-decoration: none; }
|
|
84
|
+
.brand-logo { border-radius: var(--radius-sm); object-fit: cover; }
|
|
85
|
+
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
|
|
86
|
+
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
|
|
87
|
+
.nav a:not(.btn):hover { color: var(--primary-text); }
|
|
88
|
+
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); padding: 32px 0; background: var(--surface-alt); color: var(--muted); }
|
|
89
|
+
.footer-links { margin: 8px 0 0; }
|
|
90
|
+
.footer-links a { color: inherit; }
|
|
91
|
+
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
|
|
92
|
+
.social-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
|
|
93
|
+
.social-links-large a { font-size: 1.1rem; font-weight: 600; }
|
|
94
|
+
|
|
95
|
+
/* The demo notice (PET_ADOPT_DEMO=1, src/components/demo/SiteDemoBanner.tsx): a slim band above the
|
|
96
|
+
header, in the page flow, in the theme's caution colours (a pair readable in light and dark). The
|
|
97
|
+
editor layout loads this file too, for the builders' variant (.demo-bar-editor). */
|
|
98
|
+
.demo-bar { background: var(--warn-bg); color: var(--warn-ink); border-bottom: 1px solid var(--line); font-size: 0.875rem; line-height: 1.4; }
|
|
99
|
+
.demo-bar-inner { margin-top: 0; margin-bottom: 0; padding-top: 6px; padding-bottom: 6px; }
|
|
100
|
+
.demo-bar a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
|
|
101
|
+
.demo-bar a:focus-visible { outline-color: currentColor; }
|
|
102
|
+
/* The page and email builders: full width and in Puck's font, like Puck's own header under it. */
|
|
103
|
+
.demo-bar-editor { font-family: var(--puck-font-family, var(--font-body)); }
|
|
104
|
+
.demo-bar-editor .demo-bar-inner { padding: 4px 16px; }
|
|
105
|
+
/* Puck's layout is as tall as the window (100dvh), so with the band above it the body becomes a
|
|
106
|
+
column of that height and Puck takes what is left. `_PuckLayout_` is the CSS-module name of Puck
|
|
107
|
+
0.24's layout element: if an upgrade renames it, the page only scrolls by the band's height. */
|
|
108
|
+
body:has(> .demo-bar-editor):has(> .Puck) { display: flex; flex-direction: column; height: 100dvh; }
|
|
109
|
+
body:has(> .demo-bar-editor) > .Puck { flex: 1 1 auto; min-height: 0; }
|
|
110
|
+
body:has(> .demo-bar-editor) > .Puck [class*='_PuckLayout_'] { height: 100%; }
|
|
111
|
+
/* The editor layout also draws the previews (/edit/<id>/preview, the theme preview) that the admin
|
|
112
|
+
shows in frames under its own band: they leave it out, so a frame shows only the page. */
|
|
113
|
+
body:not(:has(> .Puck)) > .demo-bar-editor { display: none; }
|
|
114
|
+
|
|
115
|
+
/* Sections. Padding scales with the theme's spacing (--density). */
|
|
116
|
+
.section { padding: calc(48px * var(--density)) 0; }
|
|
117
|
+
.spacing-sm { padding: calc(24px * var(--density)) 0; }
|
|
118
|
+
.spacing-lg { padding: calc(80px * var(--density)) 0; }
|
|
119
|
+
/* Padding above and below a block, chosen per block (src/puck/padding.tsx): overrides the padding of
|
|
120
|
+
the block's outer element. Scaled down on small screens like .section. */
|
|
121
|
+
.block-pad { --pad-scale: 1; }
|
|
122
|
+
.block-pad[data-pt='none'] > * { padding-top: 0; }
|
|
123
|
+
.block-pad[data-pt='sm'] > * { padding-top: calc(24px * var(--density) * var(--pad-scale)); }
|
|
124
|
+
.block-pad[data-pt='md'] > * { padding-top: calc(48px * var(--density) * var(--pad-scale)); }
|
|
125
|
+
.block-pad[data-pt='lg'] > * { padding-top: calc(80px * var(--density) * var(--pad-scale)); }
|
|
126
|
+
.block-pad[data-pt='xl'] > * { padding-top: calc(120px * var(--density) * var(--pad-scale)); }
|
|
127
|
+
.block-pad[data-pb='none'] > * { padding-bottom: 0; }
|
|
128
|
+
.block-pad[data-pb='sm'] > * { padding-bottom: calc(24px * var(--density) * var(--pad-scale)); }
|
|
129
|
+
.block-pad[data-pb='md'] > * { padding-bottom: calc(48px * var(--density) * var(--pad-scale)); }
|
|
130
|
+
.block-pad[data-pb='lg'] > * { padding-bottom: calc(80px * var(--density) * var(--pad-scale)); }
|
|
131
|
+
.block-pad[data-pb='xl'] > * { padding-bottom: calc(120px * var(--density) * var(--pad-scale)); }
|
|
132
|
+
@media (max-width: 800px) { .block-pad { --pad-scale: 0.75; } }
|
|
133
|
+
.section-tint { background: var(--tint); }
|
|
134
|
+
.section-dark { background: var(--band-bg); color: var(--band-ink); }
|
|
135
|
+
.section-dark a:not(.btn) { color: var(--band-link); }
|
|
136
|
+
.align-center { text-align: center; }
|
|
137
|
+
.align-center .social-links, .align-center .hero-actions { justify-content: center; }
|
|
138
|
+
.section-title { margin-bottom: 0.75em; }
|
|
139
|
+
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
|
|
140
|
+
.link-more { font-weight: 600; text-decoration: none; }
|
|
141
|
+
.prose { max-width: 720px; }
|
|
142
|
+
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
|
|
143
|
+
/* Bullets and numbers for lists of content. The live site loads Tailwind, whose reset removes them
|
|
144
|
+
(ul, ol { list-style: none }); the page builder does not, so without this they showed only there. */
|
|
145
|
+
.prose ul, .pet-profile-list ul { list-style: disc; }
|
|
146
|
+
.prose ol, .pet-profile-list ol { list-style: decimal; }
|
|
147
|
+
.prose ul ul, .pet-profile-list ul ul { list-style: circle; }
|
|
148
|
+
.prose li > p { margin: 0; }
|
|
149
|
+
.align-center .prose { margin-left: auto; margin-right: auto; }
|
|
150
|
+
.notice { padding: 12px 16px; background: var(--tint); border-radius: var(--radius); }
|
|
151
|
+
|
|
152
|
+
/* Hero */
|
|
153
|
+
.hero { position: relative; overflow: hidden; display: flex; align-items: center; background: var(--tint); min-height: 380px; }
|
|
154
|
+
.hero-lg { min-height: 560px; }
|
|
155
|
+
.hero-has-image { color: #fff; }
|
|
156
|
+
.hero-image { object-fit: cover; }
|
|
157
|
+
/* 60% black: white text stays at 4.5:1 or more even over a white photo (45% gave about 3.4:1). */
|
|
158
|
+
.hero-has-image::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 1; }
|
|
159
|
+
.hero-content { position: relative; z-index: 2; padding-top: calc(64px * var(--density)); padding-bottom: calc(64px * var(--density)); }
|
|
160
|
+
.hero-sub { font-size: 1.2rem; max-width: 640px; }
|
|
161
|
+
.align-center .hero-sub { margin-left: auto; margin-right: auto; }
|
|
162
|
+
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
|
|
163
|
+
|
|
164
|
+
/* Pets */
|
|
165
|
+
.pet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: calc(24px * var(--density)); }
|
|
166
|
+
.pet-card { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-card); transition: box-shadow 0.15s, transform 0.15s; }
|
|
167
|
+
.pet-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
|
|
168
|
+
.pet-card-image { position: relative; aspect-ratio: 4 / 3; background: var(--placeholder); }
|
|
169
|
+
.pet-card-image img { object-fit: cover; }
|
|
170
|
+
.pet-card-placeholder { display: grid; place-items: center; height: 100%; color: var(--muted); }
|
|
171
|
+
.pet-card-body { padding: 14px 16px; }
|
|
172
|
+
.pet-card-body .item-heading { margin: 0 0 4px; }
|
|
173
|
+
.pet-card-body p { margin: 0; font-size: 0.92rem; }
|
|
174
|
+
.badge { display: inline-block; padding: 2px 10px; border-radius: var(--radius-badge); font-size: 0.78rem; font-weight: 700; background: var(--ok-bg); color: var(--ok-ink); }
|
|
175
|
+
.pet-card-image .badge { position: absolute; top: 10px; left: 10px; }
|
|
176
|
+
.badge-pending { background: var(--warn-bg); color: var(--warn-ink); }
|
|
177
|
+
.badge-adopted { background: var(--neutral-bg); color: var(--neutral-ink); }
|
|
178
|
+
|
|
179
|
+
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 28px; }
|
|
180
|
+
.filter { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--muted); }
|
|
181
|
+
.filter select, .filter input { padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: var(--surface); min-width: 130px; }
|
|
182
|
+
.empty { padding: 40px 0; text-align: center; }
|
|
183
|
+
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }
|
|
184
|
+
|
|
185
|
+
.pet-detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; margin-top: 16px; align-items: start; }
|
|
186
|
+
.pet-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
|
|
187
|
+
.pet-photo { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--placeholder); }
|
|
188
|
+
.pet-photo img { object-fit: cover; }
|
|
189
|
+
.pet-photo-main { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
|
|
190
|
+
.pet-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
|
|
191
|
+
.facts { margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
|
|
192
|
+
.facts dt { font-size: 0.8rem; color: var(--muted); }
|
|
193
|
+
.facts dd { margin: 0; font-weight: 600; }
|
|
194
|
+
|
|
195
|
+
/* Blocks */
|
|
196
|
+
.gallery { display: grid; gap: 16px; }
|
|
197
|
+
.gallery-2 { grid-template-columns: repeat(2, 1fr); }
|
|
198
|
+
.gallery-3 { grid-template-columns: repeat(3, 1fr); }
|
|
199
|
+
.gallery-4 { grid-template-columns: repeat(4, 1fr); }
|
|
200
|
+
.gallery figure { margin: 0; }
|
|
201
|
+
.gallery-image { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--placeholder); }
|
|
202
|
+
.gallery-image img { object-fit: cover; }
|
|
203
|
+
.gallery figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 6px; }
|
|
204
|
+
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
|
|
205
|
+
.testimonials blockquote { margin: 0; padding: 20px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-card); color: var(--ink); }
|
|
206
|
+
.testimonials footer { font-size: 0.9rem; color: var(--muted); }
|
|
207
|
+
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
|
|
208
|
+
.faq summary { cursor: pointer; font-weight: 600; }
|
|
209
|
+
.faq details p { margin: 8px 0 0; }
|
|
210
|
+
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
|
|
211
|
+
.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }
|
|
212
|
+
|
|
213
|
+
@media (max-width: 800px) {
|
|
214
|
+
.pet-detail, .contact-grid { grid-template-columns: 1fr; }
|
|
215
|
+
.gallery-3, .gallery-4 { grid-template-columns: repeat(2, 1fr); }
|
|
216
|
+
.section { padding: calc(36px * var(--density)) 0; }
|
|
217
|
+
.spacing-lg { padding: calc(56px * var(--density)) 0; }
|
|
218
|
+
}
|
|
219
|
+
@media (max-width: 480px) {
|
|
220
|
+
.gallery-2, .gallery-3, .gallery-4 { grid-template-columns: 1fr; }
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/* --- Page builder blocks: image + text, steps, numbers, video, carousel, spacer, divider ------- */
|
|
224
|
+
.section-intro { max-width: 60ch; color: var(--muted); margin: -0.25em 0 1.5em; }
|
|
225
|
+
.align-center .section-intro { margin-inline: auto; }
|
|
226
|
+
|
|
227
|
+
.image-text { display: grid; grid-template-columns: 1fr 1fr; gap: calc(40px * var(--density)); align-items: center; }
|
|
228
|
+
.image-text-right .image-text-media { order: 2; }
|
|
229
|
+
.image-text-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--placeholder); }
|
|
230
|
+
.image-text-media img { object-fit: cover; }
|
|
231
|
+
.image-text-placeholder { position: absolute; inset: 0; }
|
|
232
|
+
|
|
233
|
+
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
|
|
234
|
+
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
|
|
235
|
+
.steps .item-heading { margin: 0 0 4px; }
|
|
236
|
+
.steps p { margin: 0; color: var(--muted); }
|
|
237
|
+
.step-number { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.2em; height: 2.2em; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 700; }
|
|
238
|
+
|
|
239
|
+
.stats { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
|
|
240
|
+
/* The number is shown first and large, the label under it; the DOM keeps label (dt) before value (dd). */
|
|
241
|
+
.stat { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; }
|
|
242
|
+
.stat dd { margin: 0; font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; color: var(--primary-text); }
|
|
243
|
+
.section-dark .stat dd { color: inherit; }
|
|
244
|
+
.stat dt { color: var(--muted); }
|
|
245
|
+
.section-dark .stat dt { color: inherit; opacity: 0.85; }
|
|
246
|
+
|
|
247
|
+
.video-block { margin: 0; }
|
|
248
|
+
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--placeholder); }
|
|
249
|
+
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
|
|
250
|
+
.video-block figcaption, .carousel-figure figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
|
|
251
|
+
|
|
252
|
+
/* shadcn Carousel, styled here (not with Tailwind) so it also works in the page builder. */
|
|
253
|
+
.carousel-block { position: relative; }
|
|
254
|
+
.carousel-block [data-slot='carousel-content'] { overflow: hidden; border-radius: var(--radius); }
|
|
255
|
+
.carousel-block [data-slot='carousel-content'] > div { display: flex; margin-left: 0; }
|
|
256
|
+
.carousel-block [data-slot='carousel-item'] { min-width: 0; flex: 0 0 100%; padding-left: 0; }
|
|
257
|
+
.carousel-figure { margin: 0; }
|
|
258
|
+
.carousel-image { position: relative; aspect-ratio: 16 / 9; background: var(--placeholder); }
|
|
259
|
+
.carousel-image img { object-fit: cover; }
|
|
260
|
+
.carousel-block [data-slot='carousel-previous'], .carousel-block [data-slot='carousel-next'] {
|
|
261
|
+
position: absolute; top: calc((100% - 2.5em) / 2); transform: translateY(-50%);
|
|
262
|
+
display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
|
|
263
|
+
border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
|
|
264
|
+
box-shadow: var(--shadow-card); cursor: pointer;
|
|
265
|
+
}
|
|
266
|
+
.carousel-block [data-slot='carousel-previous'] { left: 12px; }
|
|
267
|
+
.carousel-block [data-slot='carousel-next'] { right: 12px; }
|
|
268
|
+
.carousel-block [data-slot='carousel-previous']:disabled, .carousel-block [data-slot='carousel-next']:disabled { opacity: 0.4; cursor: default; }
|
|
269
|
+
.carousel-block [data-slot='carousel-previous'] svg, .carousel-block [data-slot='carousel-next'] svg { width: 18px; height: 18px; }
|
|
270
|
+
.carousel-block .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
|
|
271
|
+
|
|
272
|
+
.spacer-sm { height: calc(16px * var(--density)); }
|
|
273
|
+
.spacer-md { height: calc(32px * var(--density)); }
|
|
274
|
+
.spacer-lg { height: calc(64px * var(--density)); }
|
|
275
|
+
.spacer-xl { height: calc(96px * var(--density)); }
|
|
276
|
+
|
|
277
|
+
.divider-block.spacing-sm { padding: calc(8px * var(--density)) 0; }
|
|
278
|
+
.divider-block.spacing-md { padding: calc(24px * var(--density)) 0; }
|
|
279
|
+
.divider-block.spacing-lg { padding: calc(48px * var(--density)) 0; }
|
|
280
|
+
.divider { border: 0; border-top: 1px solid var(--line-strong); margin: 0 auto; }
|
|
281
|
+
.divider-narrow { max-width: 120px; }
|
|
282
|
+
|
|
283
|
+
@media (max-width: 800px) {
|
|
284
|
+
.image-text { grid-template-columns: 1fr; }
|
|
285
|
+
.image-text-right .image-text-media { order: 0; }
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/* --- Pet spotlight, team, features with icons, ways to help ------------------------------------ */
|
|
289
|
+
.spotlight-eyebrow { margin: 0 0 0.25em; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary-text); }
|
|
290
|
+
.section-dark .spotlight-eyebrow { color: inherit; }
|
|
291
|
+
|
|
292
|
+
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
|
|
293
|
+
.team { text-align: center; }
|
|
294
|
+
.team-photo { position: relative; width: 128px; aspect-ratio: 1; margin: 0 auto 12px; border-radius: 999px; overflow: hidden; background: var(--placeholder); }
|
|
295
|
+
.team-photo img { object-fit: cover; }
|
|
296
|
+
.team .item-heading { margin: 0; }
|
|
297
|
+
.team-role { margin: 2px 0 6px; font-weight: 600; color: var(--primary-text); }
|
|
298
|
+
.section-dark .team-role { color: inherit; }
|
|
299
|
+
.team p { margin-top: 0; }
|
|
300
|
+
|
|
301
|
+
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
|
|
302
|
+
.features-2 { grid-template-columns: repeat(2, 1fr); }
|
|
303
|
+
.features-3 { grid-template-columns: repeat(3, 1fr); }
|
|
304
|
+
.features-4 { grid-template-columns: repeat(4, 1fr); }
|
|
305
|
+
.features li { display: flex; flex-direction: column; gap: 6px; }
|
|
306
|
+
.align-center .features li { align-items: center; }
|
|
307
|
+
.features .item-heading { margin: 4px 0 0; }
|
|
308
|
+
.features p { margin: 0; color: var(--muted); }
|
|
309
|
+
.section-dark .features p { color: inherit; opacity: 0.85; }
|
|
310
|
+
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.75em; height: 2.75em; border-radius: var(--radius); background: var(--tint); color: var(--primary-text); font-size: 1.15rem; }
|
|
311
|
+
.section-tint .feature-icon { background: var(--surface); }
|
|
312
|
+
.section-dark .feature-icon { background: rgb(255 255 255 / 0.12); color: inherit; }
|
|
313
|
+
.help-ways li { padding: 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
|
|
314
|
+
.help-ways li p { color: var(--muted); }
|
|
315
|
+
.help-ways li .btn, .help-ways li a.btn { margin-top: auto; align-self: flex-start; }
|
|
316
|
+
.align-center .help-ways li .btn { align-self: center; }
|
|
317
|
+
|
|
318
|
+
.payment-details { margin-top: 24px; padding: 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
|
|
319
|
+
.payment-details .item-heading { margin: 0 0 6px; }
|
|
320
|
+
.payment-details p { margin: 0 0 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
|
|
321
|
+
.copy-button { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
|
322
|
+
.copy-status { font-size: 0.9rem; color: var(--muted); }
|
|
323
|
+
|
|
324
|
+
@media (max-width: 800px) {
|
|
325
|
+
.features-3, .features-4 { grid-template-columns: repeat(2, 1fr); }
|
|
326
|
+
}
|
|
327
|
+
@media (max-width: 480px) {
|
|
328
|
+
.features-2, .features-3, .features-4 { grid-template-columns: 1fr; }
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/* --- Display headings, cost table ----------------------------------------------------------- */
|
|
332
|
+
/* Visually hidden, still read by screen readers. Tailwind has one too, but the page builder does
|
|
333
|
+
not load Tailwind and blocks render there as well. */
|
|
334
|
+
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
|
|
335
|
+
|
|
336
|
+
.heading-display {
|
|
337
|
+
font-size: clamp(2.5rem, 7vw, 5.5rem); line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase;
|
|
338
|
+
color: var(--primary-text); overflow-wrap: anywhere;
|
|
339
|
+
}
|
|
340
|
+
.section-dark .heading-display { color: inherit; }
|
|
341
|
+
|
|
342
|
+
.cost-table { display: grid; grid-template-columns: 1fr 1fr; gap: calc(40px * var(--density)); align-items: start; }
|
|
343
|
+
.cost-table-right .cost-table-intro { order: 2; }
|
|
344
|
+
.cost-table-intro p { max-width: 60ch; }
|
|
345
|
+
.cost-table-image { position: relative; aspect-ratio: 4 / 3; margin-top: 16px; border-radius: calc(var(--radius) * 1.5); overflow: hidden; background: var(--placeholder); }
|
|
346
|
+
.cost-table-image img { object-fit: cover; }
|
|
347
|
+
.table-scroll { overflow-x: auto; }
|
|
348
|
+
.price-table { width: 100%; border-collapse: collapse; border: 2px solid var(--primary); background: var(--surface); color: var(--ink); }
|
|
349
|
+
.price-table th, .price-table td { border: 1px solid var(--primary); padding: 14px 18px; vertical-align: middle; }
|
|
350
|
+
.price-table thead th { font-weight: 700; text-align: left; }
|
|
351
|
+
.price-table thead th + th, .price-table td { text-align: center; white-space: nowrap; }
|
|
352
|
+
.price-table tbody th { font-weight: 400; text-align: left; }
|
|
353
|
+
.price-row-total th, .price-row-total td { background: var(--warn-bg); color: var(--warn-ink); font-weight: 600; }
|
|
354
|
+
.price-row-strong th, .price-row-strong td { background: var(--primary); color: var(--on-primary); font-weight: 600; }
|
|
355
|
+
.price-note { margin-top: 10px; font-size: 0.9rem; }
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
@media (max-width: 800px) {
|
|
359
|
+
.cost-table { grid-template-columns: 1fr; }
|
|
360
|
+
.cost-table-right .cost-table-intro { order: 0; }
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/* --- Block options: button styles, subheading, wide / paired photos, stacked hero, side list, profiles */
|
|
364
|
+
.btn-dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
|
|
365
|
+
.btn-block { display: block; width: 100%; text-align: center; }
|
|
366
|
+
|
|
367
|
+
.image-text-media { margin: 0; }
|
|
368
|
+
.image-text-subheading { font-weight: 700; margin: -0.25em 0 1em; }
|
|
369
|
+
.image-text-wide { grid-template-columns: 3fr 2fr; }
|
|
370
|
+
.image-text-wide.image-text-right { grid-template-columns: 2fr 3fr; }
|
|
371
|
+
.image-text-pair { display: grid; gap: 16px; }
|
|
372
|
+
.image-text-pair .image-text-media { aspect-ratio: 16 / 10; }
|
|
373
|
+
.image-text-right .image-text-pair { order: 2; }
|
|
374
|
+
/* A label that is part of the photo's meaning ("Before"): real text on a dark chip, readable over any photo. */
|
|
375
|
+
.photo-label {
|
|
376
|
+
position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 12px; border-radius: var(--radius-sm);
|
|
377
|
+
background: rgb(0 0 0 / 0.62); color: #ffffff; font-family: var(--font-heading); font-weight: var(--heading-weight);
|
|
378
|
+
font-size: clamp(1.1rem, 2.6vw, 1.75rem); line-height: 1.1; text-transform: uppercase;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.hero-stacked { padding: calc(32px * var(--density)) 0 calc(48px * var(--density)); }
|
|
382
|
+
.hero-stacked-image { position: relative; aspect-ratio: 16 / 7; margin-bottom: calc(24px * var(--density)); border-radius: calc(var(--radius) * 2); overflow: hidden; background: var(--placeholder); }
|
|
383
|
+
.hero-stacked-lg { aspect-ratio: 16 / 9; }
|
|
384
|
+
.hero-stacked-image img { object-fit: cover; }
|
|
385
|
+
.hero-stacked.align-center { text-align: center; }
|
|
386
|
+
.hero-stacked.align-center .hero-sub { margin-inline: auto; }
|
|
387
|
+
.hero-stacked.align-center .hero-actions { justify-content: center; }
|
|
388
|
+
|
|
389
|
+
.features-split { display: grid; grid-template-columns: 1fr 1fr; gap: calc(40px * var(--density)); align-items: start; }
|
|
390
|
+
.features-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
|
|
391
|
+
.features-list .item-heading { display: flex; align-items: center; gap: 0.4em; margin: 0 0 4px; }
|
|
392
|
+
.features-list p { margin: 0; }
|
|
393
|
+
.features-list-icon { flex: none; color: var(--primary-text); }
|
|
394
|
+
.section-dark .features-list-icon { color: inherit; }
|
|
395
|
+
|
|
396
|
+
.pet-profile { display: grid; grid-template-columns: 2fr 3fr; gap: calc(40px * var(--density)); align-items: stretch; }
|
|
397
|
+
/* A fixed rem gap: an em margin would grow with the (very large) display heading. */
|
|
398
|
+
.pet-profile-name { margin: 0 0 0.75rem; text-align: start; }
|
|
399
|
+
/* Both columns stretch to the taller one. The photo is a square (its own size), and min-height lets
|
|
400
|
+
it grow to the column's full height when the text is longer; the image is cropped, not stretched. */
|
|
401
|
+
.pet-profile-media { display: flex; flex-direction: column; }
|
|
402
|
+
.pet-profile-photo { position: relative; aspect-ratio: 1 / 1; min-height: 100%; border-radius: calc(var(--radius) * 2); overflow: hidden; background: var(--placeholder); }
|
|
403
|
+
.pet-profile-photo img { object-fit: cover; }
|
|
404
|
+
.pet-profile-body .btn-block { max-width: 420px; }
|
|
405
|
+
.pet-profile-facts { display: flex; flex-direction: column; margin: 18px 0 8px; }
|
|
406
|
+
.pet-profile-list .minor-heading { margin: 1em 0 0.25em; }
|
|
407
|
+
.pet-profile-list ul { margin: 0; padding-left: 1.25em; }
|
|
408
|
+
.pet-profile-list .rich-text p, .pet-profile-list p { margin: 0 0 0.5em; }
|
|
409
|
+
/* Rich text lists (health notes) spaced like the plain lists beside them: a list item holds a <p>. */
|
|
410
|
+
.pet-profile-list .pet-notes ul, .pet-profile-list .pet-notes ol { margin: 0 0 0.5em; padding-left: 1.25em; }
|
|
411
|
+
.pet-profile-list .pet-notes li > p { margin: 0; }
|
|
412
|
+
.pet-profiles > article + article { margin-top: calc(56px * var(--density)); padding-top: calc(56px * var(--density)); border-top: 1px solid var(--line); }
|
|
413
|
+
.section-head + .pet-profiles { margin-top: 8px; }
|
|
414
|
+
|
|
415
|
+
@media (max-width: 800px) {
|
|
416
|
+
.image-text-wide, .image-text-wide.image-text-right, .features-split, .pet-profile { grid-template-columns: 1fr; }
|
|
417
|
+
.pet-profile-photo { min-height: 0; }
|
|
418
|
+
.image-text-right .image-text-pair { order: 0; }
|
|
419
|
+
.hero-stacked-image, .hero-stacked-lg { aspect-ratio: 4 / 3; }
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/* Pet page template (src/puck/pet-page-config.tsx): the details block's lists and the adopt button. */
|
|
423
|
+
.pet-page-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 calc(24px * var(--density)); }
|
|
424
|
+
.pet-page-lists-rows { grid-template-columns: minmax(0, 1fr); }
|
|
425
|
+
/* "Gap between rows" (Pet health / Pet personality); Default keeps the headings' own spacing. */
|
|
426
|
+
.pet-page-lists[data-row-gap='sm'] { row-gap: calc(12px * var(--density)); }
|
|
427
|
+
.pet-page-lists[data-row-gap='md'] { row-gap: calc(24px * var(--density)); }
|
|
428
|
+
.pet-page-lists[data-row-gap='lg'] { row-gap: calc(40px * var(--density)); }
|
|
429
|
+
.pet-page-button { margin-top: 20px; }
|
|
430
|
+
/* Pet gallery: a large photo and a strip of thumbnails (shadcn Carousel, keyed to data-slot as above). */
|
|
431
|
+
.pet-gallery-block { display: grid; gap: 12px; }
|
|
432
|
+
.pet-gallery-main { aspect-ratio: 4 / 3; border-radius: var(--radius); }
|
|
433
|
+
.pet-gallery-strip { position: relative; }
|
|
434
|
+
.pet-gallery-strip [data-slot='carousel-content'] { overflow: hidden; }
|
|
435
|
+
.pet-gallery-strip [data-slot='carousel-content'] > div { display: flex; gap: 10px; margin-left: 0; }
|
|
436
|
+
.pet-gallery-strip [data-slot='carousel-item'] { min-width: 0; flex: 0 0 calc((100% - 40px) / 5); padding-left: 0; }
|
|
437
|
+
.pet-gallery-thumb {
|
|
438
|
+
position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden; cursor: pointer;
|
|
439
|
+
border: 2px solid transparent; border-radius: var(--radius-sm); background: var(--placeholder); opacity: 0.7;
|
|
440
|
+
}
|
|
441
|
+
.pet-gallery-thumb img { object-fit: cover; }
|
|
442
|
+
.pet-gallery-thumb:hover { opacity: 1; }
|
|
443
|
+
.pet-gallery-thumb[aria-pressed='true'] { opacity: 1; border-color: var(--primary-text); }
|
|
444
|
+
.pet-gallery-thumb:focus-visible { outline: 3px solid var(--primary-text); outline-offset: 2px; opacity: 1; }
|
|
445
|
+
.pet-gallery-strip [data-slot='carousel-previous'], .pet-gallery-strip [data-slot='carousel-next'] {
|
|
446
|
+
position: absolute; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center;
|
|
447
|
+
width: 32px; height: 32px; padding: 0; border-radius: 999px; border: 1px solid var(--line-strong);
|
|
448
|
+
background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); cursor: pointer;
|
|
449
|
+
}
|
|
450
|
+
.pet-gallery-strip [data-slot='carousel-previous'] { left: 4px; }
|
|
451
|
+
.pet-gallery-strip [data-slot='carousel-next'] { right: 4px; }
|
|
452
|
+
/* Embla disables a button when there is nothing to scroll to: hide it then (all thumbnails fit). */
|
|
453
|
+
.pet-gallery-strip [data-slot='carousel-previous']:disabled, .pet-gallery-strip [data-slot='carousel-next']:disabled { display: none; }
|
|
454
|
+
.pet-gallery-strip [data-slot='carousel-previous'] svg, .pet-gallery-strip [data-slot='carousel-next'] svg { width: 16px; height: 16px; }
|
|
455
|
+
.pet-gallery-strip .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
|
|
456
|
+
@media (max-width: 480px) {
|
|
457
|
+
.pet-gallery-strip [data-slot='carousel-item'] { flex-basis: calc((100% - 20px) / 3); }
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/* Pet summary with the main photo beside it (left or right); stacked, photo first, when narrow. */
|
|
461
|
+
.pet-summary-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(32px * var(--density)); align-items: center; }
|
|
462
|
+
.pet-summary-media[data-photo='right'] .pet-summary-photo { order: 2; }
|
|
463
|
+
.pet-summary-photo { aspect-ratio: 4 / 3; }
|
|
464
|
+
/* "Main photo shape": rounded (the theme's small corner, above), sharp, or round (a circle, so the
|
|
465
|
+
photo is cropped square, centred in its column and kept to a sensible size). */
|
|
466
|
+
.pet-summary-photo[data-shape='sharp'] { border-radius: 0; }
|
|
467
|
+
.pet-summary-photo[data-shape='round'] { aspect-ratio: 1; border-radius: 50%; width: min(100%, 420px); justify-self: center; }
|
|
468
|
+
.pet-summary-text .facts { margin-bottom: 0; }
|
|
469
|
+
@media (max-width: 800px) {
|
|
470
|
+
.pet-summary-media { grid-template-columns: minmax(0, 1fr); }
|
|
471
|
+
.pet-summary-media[data-photo='right'] .pet-summary-photo { order: 0; }
|
|
472
|
+
}
|
|
473
|
+
.pet-status-notice { margin-bottom: 0; }
|
|
474
|
+
/* Pet timeline (src/components/site/PetTimeline.tsx): a line with a point per update. Each entry
|
|
475
|
+
says which side of it the line is on (data-line); text hugs the line (left-aligned with the line on
|
|
476
|
+
its left, right-aligned with the line on its right). The line uses --muted and the point
|
|
477
|
+
--primary-text: both are kept at 4.5:1 or more on the page backgrounds by the theme (ensureContrastOnAll),
|
|
478
|
+
above the 3:1 that graphics need, in light and dark. */
|
|
479
|
+
.timeline { --timeline-point: calc(16px * var(--density)); --timeline-line: 2px; --timeline-gutter: calc(36px * var(--density)); --timeline-gap: calc(32px * var(--density)); }
|
|
480
|
+
.timeline-list { list-style: none; margin: 0; padding: 0; }
|
|
481
|
+
.timeline-entry { position: relative; padding-bottom: var(--timeline-gap); }
|
|
482
|
+
.timeline-entry::before { content: ''; position: absolute; top: 0; bottom: 0; width: var(--timeline-line); background: var(--muted); }
|
|
483
|
+
.timeline-point { position: absolute; top: 0.3em; width: var(--timeline-point); height: var(--timeline-point); border-radius: 50%; background: var(--bg); border: 3px solid var(--primary-text); }
|
|
484
|
+
.timeline-entry[data-line='left'] { padding-left: var(--timeline-gutter); text-align: left; }
|
|
485
|
+
.timeline-entry[data-line='left']::before { left: calc((var(--timeline-point) - var(--timeline-line)) / 2); }
|
|
486
|
+
.timeline-entry[data-line='left'] .timeline-point { left: 0; }
|
|
487
|
+
.timeline-entry[data-line='right'] { padding-right: var(--timeline-gutter); text-align: right; }
|
|
488
|
+
.timeline-entry[data-line='right']::before { right: calc((var(--timeline-point) - var(--timeline-line)) / 2); }
|
|
489
|
+
.timeline-entry[data-line='right'] .timeline-point { right: 0; }
|
|
490
|
+
.timeline-date { display: block; margin-bottom: 0.2em; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
|
|
491
|
+
.timeline-title { margin: 0 0 0.35em; }
|
|
492
|
+
.timeline-body p { margin: 0 0 0.5em; }
|
|
493
|
+
.timeline-body ul, .timeline-body ol { margin: 0 0 0.5em; padding-left: 1.25em; }
|
|
494
|
+
.timeline-body ul { list-style: disc; }
|
|
495
|
+
.timeline-body ol { list-style: decimal; }
|
|
496
|
+
.timeline-body li > p { margin: 0; }
|
|
497
|
+
/* Right-aligned text: the bullets sit inside the text so they do not hang on the far side. */
|
|
498
|
+
.timeline-entry[data-line='right'] .timeline-body ul, .timeline-entry[data-line='right'] .timeline-body ol { padding-left: 0; list-style-position: inside; }
|
|
499
|
+
.timeline-photos { list-style: none; display: flex; flex-wrap: wrap; gap: calc(8px * var(--density)); margin: calc(8px * var(--density)) 0 0; padding: 0; }
|
|
500
|
+
.timeline-entry[data-line='right'] .timeline-photos { justify-content: flex-end; }
|
|
501
|
+
.timeline-photo { display: block; width: calc(96px * var(--density)); aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); background: var(--placeholder); }
|
|
502
|
+
.timeline-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
|
|
503
|
+
.timeline-photo:hover img { opacity: 0.85; }
|
|
504
|
+
/* Alternate: the line in the centre, entries on either half. */
|
|
505
|
+
.timeline[data-align='alternate'] .timeline-entry { width: calc(50% + var(--timeline-point) / 2); }
|
|
506
|
+
.timeline[data-align='alternate'] .timeline-entry[data-line='left'] { margin-left: calc(50% - var(--timeline-point) / 2); }
|
|
507
|
+
/* "Show all updates": a <details>, so it works without JavaScript. */
|
|
508
|
+
/* The last entry of each list keeps no space under it, so the line stops with its text. */
|
|
509
|
+
.timeline-list > .timeline-entry:last-child { padding-bottom: 0; }
|
|
510
|
+
.timeline-more { margin-top: var(--timeline-gap); }
|
|
511
|
+
.timeline-more-toggle { display: inline-block; cursor: pointer; padding: 0.45em 1em; border: 2px solid var(--primary); border-radius: var(--radius-btn); color: var(--primary-text); font-weight: 600; font-size: 0.9rem; list-style: none; }
|
|
512
|
+
.timeline-more[open] .timeline-more-toggle { margin-bottom: var(--timeline-gap); }
|
|
513
|
+
.timeline-more-toggle::-webkit-details-marker { display: none; }
|
|
514
|
+
.timeline-more-open, .timeline-more[open] .timeline-more-closed { display: none; }
|
|
515
|
+
.timeline-more[open] .timeline-more-open { display: inline; }
|
|
516
|
+
.timeline-more { text-align: left; }
|
|
517
|
+
.timeline[data-align='right'] .timeline-more { text-align: right; }
|
|
518
|
+
.timeline[data-align='alternate'] .timeline-more { text-align: center; }
|
|
519
|
+
@media (max-width: 800px) {
|
|
520
|
+
/* Alternate falls back to the left layout on narrow screens. */
|
|
521
|
+
.timeline[data-align='alternate'] .timeline-entry { width: auto; }
|
|
522
|
+
.timeline[data-align='alternate'] .timeline-entry[data-line='left'] { margin-left: 0; }
|
|
523
|
+
.timeline[data-align='alternate'] .timeline-entry[data-line='right'] { padding-right: 0; padding-left: var(--timeline-gutter); text-align: left; }
|
|
524
|
+
.timeline[data-align='alternate'] .timeline-entry[data-line='right']::before { right: auto; left: calc((var(--timeline-point) - var(--timeline-line)) / 2); }
|
|
525
|
+
.timeline[data-align='alternate'] .timeline-entry[data-line='right'] .timeline-point { right: auto; left: 0; }
|
|
526
|
+
.timeline[data-align='alternate'] .timeline-entry[data-line='right'] .timeline-photos { justify-content: flex-start; }
|
|
527
|
+
.timeline[data-align='alternate'] .timeline-entry[data-line='right'] .timeline-body ul,
|
|
528
|
+
.timeline[data-align='alternate'] .timeline-entry[data-line='right'] .timeline-body ol { padding-left: 1.25em; list-style-position: outside; }
|
|
529
|
+
.timeline[data-align='alternate'] .timeline-more { text-align: left; }
|
|
530
|
+
}
|
|
531
|
+
@media (max-width: 480px) {
|
|
532
|
+
.timeline { --timeline-gutter: calc(28px * var(--density)); }
|
|
533
|
+
.timeline-photo { width: calc(72px * var(--density)); }
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
.pet-page-top { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; }
|
|
537
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
3
|
+
// A setup step failed to load (often the database). Without this, Next's unstyled default error
|
|
4
|
+
// page would show.
|
|
5
|
+
import { PageError } from '@/components/auth/PageError'
|
|
6
|
+
|
|
7
|
+
export default function SetupError(props: { error: Error & { digest?: string }; reset: () => void }) {
|
|
8
|
+
return <PageError {...props} />
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Metadata } from "next";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
import { ThemeStyle } from "@/components/site/ThemeStyle";
|
|
5
|
+
import { getSettings, siteIcons } from "@/lib/queries";
|
|
6
|
+
|
|
7
|
+
// First-time setup (/setup, src/server/setup.ts) gets its own root layout: it is used before any
|
|
8
|
+
// account exists and outside the admin's sidebar. Styled like the (auth) and (admin) layouts.
|
|
9
|
+
import "@pet-adopt/ui/globals.css";
|
|
10
|
+
import "../(frontend)/fonts";
|
|
11
|
+
|
|
12
|
+
// Cache Components: the setup screens are drawn per request (the setup key, the session, the
|
|
13
|
+
// database) and may wait for it. Without this the build refuses the route. The page repeats it only
|
|
14
|
+
// to keep `next dev`'s per-page check quiet.
|
|
15
|
+
export const instant = false;
|
|
16
|
+
|
|
17
|
+
export async function generateMetadata(): Promise<Metadata> {
|
|
18
|
+
return {
|
|
19
|
+
title: { default: "Set up your site", template: "%s | Setup" },
|
|
20
|
+
robots: { index: false, follow: false },
|
|
21
|
+
icons: siteIcons(await getSettings()),
|
|
22
|
+
// The setup key is in the address: never send it to another site in a Referer header.
|
|
23
|
+
referrer: "no-referrer",
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export default async function SetupLayout({ children }: { children: React.ReactNode }) {
|
|
28
|
+
// Only cached reads in this layout: it never reads the request itself (the page does).
|
|
29
|
+
const settings = await getSettings();
|
|
30
|
+
return (
|
|
31
|
+
// suppressHydrationWarning: the saved light/dark mode may be set on <html> before hydration.
|
|
32
|
+
<html lang="en" suppressHydrationWarning>
|
|
33
|
+
<head>
|
|
34
|
+
<ThemeStyle settings={settings} />
|
|
35
|
+
</head>
|
|
36
|
+
<body className="min-h-screen bg-background font-sans text-foreground antialiased">
|
|
37
|
+
<main className="mx-auto flex w-full max-w-2xl flex-col gap-6 px-4 py-10">{children}</main>
|
|
38
|
+
</body>
|
|
39
|
+
</html>
|
|
40
|
+
);
|
|
41
|
+
}
|