-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: persist theme on view transitions
- Loading branch information
Showing
33 changed files
with
575 additions
and
494 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,45 @@ | ||
import type { CapitalizeKeys, SeoMetadata, WorldGlobeConfig } from './types.ts'; | ||
|
||
export const DEFAULT_SEO_PARAMS: CapitalizeKeys<SeoMetadata> = { | ||
TITLE:"Bianca Fiore", | ||
DESCRIPTION: "Welcome to my website!", | ||
ROBOTS: { | ||
index: true, follow: true | ||
} | ||
} | ||
|
||
export const CONTACT_DETAILS: Record<string, string> = { | ||
NAME: "Bianca Fiore", | ||
EMAIL_SUBJECT: "Contact form submission", | ||
ENCODED_EMAIL_FROM: btoa("[email protected]"), | ||
ENCODED_EMAIL_BIANCA: btoa(import.meta.env.PUBLIC_BIANCA_EMAIL), | ||
}; | ||
|
||
export const WORLD_GLOBE_CONFIG: WorldGlobeConfig = { | ||
ANIMATION_DURATION: 500, | ||
MOVEMENT_OFFSET: 20, | ||
ZOOM_OFFSET: 0.1, | ||
POINTS_MERGE: true, | ||
ANIMATE_IN: true, | ||
SHOW_ATMOSPHERE: false, | ||
BACKGROUND_COLOR: "#FFFFFF00", | ||
HEXAGON_POLYGON_COLOR: "#d4a259", | ||
MESH_PHONG_MATERIAL_CONFIG: { | ||
TRANSPARENT: true, | ||
COLOR: "#f7ecd6", | ||
OPACITY: 0.7, | ||
}, | ||
}; | ||
|
||
export const DEFAULT_DATE_FORMAT: Intl.DateTimeFormatOptions = { | ||
weekday: "long", | ||
year: "numeric", | ||
month: "long", | ||
day: "numeric", | ||
}; | ||
|
||
export const THEME_STORAGE_KEY = "theme"; | ||
|
||
export const DEFAULT_LOCALE_STRING: Intl.LocalesArgument = "es-ES"; | ||
|
||
import type { CapitalizeKeys, SeoMetadata, WorldGlobeConfig } from "./types.ts"; | ||
|
||
export const DEFAULT_SEO_PARAMS: CapitalizeKeys<SeoMetadata> = { | ||
TITLE: "Bianca Fiore", | ||
DESCRIPTION: "Welcome to my website!", | ||
ROBOTS: { | ||
index: true, | ||
follow: true, | ||
}, | ||
IMAGE: "/blog-placeholder-1.jpg", | ||
}; | ||
|
||
export const CONTACT_DETAILS: Record<string, string> = { | ||
NAME: "Bianca Fiore", | ||
EMAIL_SUBJECT: "Contact form submission", | ||
ENCODED_EMAIL_FROM: btoa("[email protected]"), | ||
ENCODED_EMAIL_BIANCA: btoa(import.meta.env.PUBLIC_BIANCA_EMAIL), | ||
}; | ||
|
||
export const WORLD_GLOBE_CONFIG: WorldGlobeConfig = { | ||
ANIMATION_DURATION: 500, | ||
MOVEMENT_OFFSET: 20, | ||
ZOOM_OFFSET: 0.1, | ||
POINTS_MERGE: true, | ||
ANIMATE_IN: true, | ||
SHOW_ATMOSPHERE: false, | ||
BACKGROUND_COLOR: "#FFFFFF00", | ||
HEXAGON_POLYGON_COLOR: "#d4a259", | ||
MESH_PHONG_MATERIAL_CONFIG: { | ||
TRANSPARENT: true, | ||
COLOR: "#f7ecd6", | ||
OPACITY: 0.7, | ||
}, | ||
}; | ||
|
||
export const DEFAULT_DATE_FORMAT: Intl.DateTimeFormatOptions = { | ||
weekday: "long", | ||
year: "numeric", | ||
month: "long", | ||
day: "numeric", | ||
}; | ||
|
||
export const THEME_STORAGE_KEY = "theme"; | ||
|
||
export const DEFAULT_LOCALE_STRING: Intl.LocalesArgument = "es-ES"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,31 @@ | ||
export type CapitalizeKeys<T> = { | ||
[K in keyof T as Uppercase<K & string>]: T[K] extends object ? CapitalizeKeys<T[K]> : T[K]; | ||
}; | ||
|
||
interface MeshPhongMaterialConfig { | ||
TRANSPARENT: boolean; | ||
COLOR: string; | ||
OPACITY: number; | ||
} | ||
|
||
export interface WorldGlobeConfig { | ||
ANIMATION_DURATION: number; | ||
MOVEMENT_OFFSET: number; | ||
ZOOM_OFFSET: number; | ||
POINTS_MERGE: boolean; | ||
ANIMATE_IN: boolean; | ||
SHOW_ATMOSPHERE: boolean; | ||
BACKGROUND_COLOR: string; | ||
HEXAGON_POLYGON_COLOR: string; | ||
MESH_PHONG_MATERIAL_CONFIG: MeshPhongMaterialConfig; | ||
} | ||
|
||
export interface SeoMetadata { | ||
title: string; | ||
description: string; | ||
robots?: { | ||
index?: boolean; | ||
follow?: boolean; | ||
} | ||
} | ||
export type CapitalizeKeys<T> = { | ||
[K in keyof T as Uppercase<K & string>]: T[K] extends object ? CapitalizeKeys<T[K]> : T[K]; | ||
}; | ||
|
||
interface MeshPhongMaterialConfig { | ||
TRANSPARENT: boolean; | ||
COLOR: string; | ||
OPACITY: number; | ||
} | ||
|
||
export interface WorldGlobeConfig { | ||
ANIMATION_DURATION: number; | ||
MOVEMENT_OFFSET: number; | ||
ZOOM_OFFSET: number; | ||
POINTS_MERGE: boolean; | ||
ANIMATE_IN: boolean; | ||
SHOW_ATMOSPHERE: boolean; | ||
BACKGROUND_COLOR: string; | ||
HEXAGON_POLYGON_COLOR: string; | ||
MESH_PHONG_MATERIAL_CONFIG: MeshPhongMaterialConfig; | ||
} | ||
|
||
export interface SeoMetadata { | ||
title: string; | ||
description: string; | ||
robots?: { | ||
index?: boolean; | ||
follow?: boolean; | ||
}; | ||
image: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.