From fa343649de26d2e1464601c8fcc0ebd2568e76c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich?= Date: Sun, 3 Sep 2023 23:20:19 +0200 Subject: [PATCH] Implement a cat submission form site --- src/content/config.ts | 2 +- src/pages/submit.astro | 117 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 118 insertions(+), 1 deletion(-) create mode 100644 src/pages/submit.astro diff --git a/src/content/config.ts b/src/content/config.ts index 4948336..0e77660 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -3,7 +3,7 @@ import { z, defineCollection } from 'astro:content'; const cats = defineCollection({ type: 'data', schema: z.object({ - name: z.string().max(20), + name: z.string().max(25), dateAdded: z .string() .or(z.date()) diff --git a/src/pages/submit.astro b/src/pages/submit.astro new file mode 100644 index 0000000..4726280 --- /dev/null +++ b/src/pages/submit.astro @@ -0,0 +1,117 @@ +--- +import BaseLayout from '../layouts/BaseLayout.astro'; +--- + + + + +

Submit a cat

+

+ If you work in the tech industry and own a cat that you'd like to share, + then you've come to the right place! Fill out the form below and Mac should add your feline friend. +

+
+

Guidelines

+
    +
  • Only cats, please. This is not dogsof.dev or peopleof.tech
  • +
  • + I'm fine with any resolution, orientation, and aspect ratio as along as + the photo's size doesn't exceed 1 MB +
  • +
  • + Refrain from adding artsy filters or stickers/overlays. Let your cat be + the star +
  • +
  • If you own multiple cats, please submit them separately
  • +
  • + If you wish to have your cat's entry updated (e.g. if it passed away), email Mac or open an issue on GitHub +
  • +
+
+
+
+ + + Maximum length: 25 characters +
+
+ + +
+
+ + + + Some ideas: nicknames, age, breed(s), where you adopted this cat + +
+
+ + +
+
+ + + Link to your website or a social media account +
+ +
+
+
+ +
+
+
+ +