Skip to content

Commit

Permalink
CR + Scout
Browse files Browse the repository at this point in the history
  • Loading branch information
mirhamasala committed Oct 10, 2024
1 parent 2490c92 commit 2ee22ac
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 11 additions & 9 deletions public/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ image_config: &image_config
label: "Image"
widget: "object"
required: false
collapsed: true
hint: Adding an image is optional. If no image is added, a default fallback image will be used automatically. Simply leave the image field empty to use the fallback.
fields:
- name: "src"
Expand All @@ -88,7 +89,6 @@ event_sponsor_config: &event_sponsor_config
- name: "website"
label: "website"
widget: "string"
required: false
- name: "image"
label: "Image"
widget: "object"
Expand Down Expand Up @@ -737,6 +737,7 @@ collections:
- name: "external-link"
label: "External Link URL"
widget: "object"
collapsed: true
required: false
fields:
- name: "url"
Expand All @@ -754,23 +755,25 @@ collections:
widget: "string"
required: false
hint: "Luma Calendar URL for the event. Include relevant tags when appropriate, e.g., https://lu.ma/filecoin-events?tag=fil%20bangkok%202024"
- *image_config
- name: luma-events-section
label: "Luma Events Section"
widget: "object"
collapsed: true
required: false
hint: Both the section title and the embed URL must be filled out for this section to appear on the page.
hint: The embed URL must be filled out for this section to appear on the page.
fields:
- name: "title"
label: "Section Title"
widget: "string"
required: false
hint: This is the title for the section header. For example, "FIL Bangkok 2024 Events."
default: "Events"
hint: This is the title for the Luma Events section header. For example, "FIL Bangkok 2024 Main Stage Events. Defaults to 'Events'"
- name: "embed-link"
label: "Luma Embed URL"
widget: "string"
required: false
hint: Paste the embed URL for your Luma event here to display the events directly on the page. Include relevant tags when appropriate, e.g., https://lu.ma/embed/calendar/cal-nlDvL4B7Ko1swF0/events?lt=light&tag=FIL%20Bangkok%202024.
- *image_config
- name: "schedule"
label: "Schedule"
widget: "object"
Expand All @@ -781,10 +784,10 @@ collections:
label: "Section Title"
widget: "string"
required: false
hint: This is the title for the section header. For example, "FIL Bangkok 2024 Main Stage Schedule. Defaults to 'Schedule.'"
default: "Schedule"
hint: This is the title for the Schedule section header. For example, "FIL Bangkok 2024 Main Stage Schedule. Defaults to 'Schedule.'"
- name: "days"
widget: "list"
required: false
fields:
- name: "date"
label: "Date"
Expand All @@ -806,17 +809,16 @@ collections:
- name: "end"
label: "End Time"
widget: "datetime"
required: false
- name: "location"
label: "Location"
widget: "string"
- name: "url"
label: "URL"
widget: "string"
required: false
- name: "speakers"
label: "Speakers"
widget: "list"
collapsed: true
required: false
fields:
- name: "name"
Expand All @@ -834,7 +836,6 @@ collections:
- name: "image"
label: "Image"
widget: "object"
required: false
fields:
- name: "src"
label: "URL"
Expand All @@ -846,6 +847,7 @@ collections:
- name: "sponsors"
label: "Sponsors"
widget: "object"
collapsed: true
required: false
fields:
- name: "first-tier"
Expand Down
2 changes: 1 addition & 1 deletion src/app/_schemas/event/SponsorSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ImagePropsSchema } from '@/schemas/imagePropsSchema'

const sponsorSchema = z.object({
name: z.string(),
website: z.string().url().optional(),
website: z.string().url(),
image: ImagePropsSchema,
})

Expand Down

0 comments on commit 2ee22ac

Please sign in to comment.