Skip to content

Commit

Permalink
refactor(types): update hero + homepage types
Browse files Browse the repository at this point in the history
seaerchin authored and seaerchin committed Sep 13, 2023
1 parent ecaea77 commit fd508d3
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/types/hero.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type SectionSize = "half" | "one-third"
export type SectionSize = "50%" | "33%"

export type SectionAlignment = "left" | "right"

export type SectionBackgroundColor = "black" | "white" | "translucent gray"
export type SectionBackgroundColor = "black" | "white" | "gray"
3 changes: 2 additions & 1 deletion src/types/homepage.ts
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import type { IterableElement, SetOptional } from "type-fest"

import { HERO_LAYOUTS } from "constants/homepage"

import { SectionAlignment, SectionSize } from "./hero"
import { SectionAlignment, SectionBackgroundColor, SectionSize } from "./hero"

export type DropdownOption = {
title: string
@@ -97,6 +97,7 @@ export type HomepageEditorHeroSection = EditorHeroDropdownSection &
variant: HeroBannerLayouts
alignment: SectionAlignment
size: SectionSize
backgroundColor: SectionBackgroundColor
}

export type HeroFrontmatterSection = { hero: HomepageEditorHeroSection }

0 comments on commit fd508d3

Please sign in to comment.