mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-02 11:16:24 -05:00
* Initial * Calendar initial * Extract EventCalendar * Events list initial * Winners * SQL fixes * List events by series * Leaderboards * Series leaderboard * Own entry peek * Edit page skeleton * RHF initial test * RHF stuff * Form etc. progress * Fix tournament series description * Fix tabs layout * Fix socials insert * Check for not removing admin * Adding series * TODOs * Allow updating org with no series * FormFieldset * Allow series without events * TextAreaFormfield accepting array syntax * Input form array field * ToggleFormField * SelectFormField * UserSearchFormField * Fetch badgeOptions * Badge editing * Progress * Use native preventScrollReset * Rename func * Fix sticky scroll * Fix translation * i18n errors * handle,meta in edit * Add ref to user search * TODOs * Done
21 lines
703 B
TypeScript
21 lines
703 B
TypeScript
import type { ImageUploadType } from "./upload-types";
|
|
|
|
export const MAX_UNVALIDATED_IMG_COUNT = 5;
|
|
|
|
export const IMAGE_TYPES = ["team-pfp", "org-pfp", "team-banner"] as const;
|
|
|
|
export const imgTypeToDimensions: Record<
|
|
ImageUploadType,
|
|
{ width: number; height: number }
|
|
> = {
|
|
"team-pfp": { width: 400, height: 400 },
|
|
"org-pfp": { width: 400, height: 400 },
|
|
"team-banner": { width: 1000, height: 500 },
|
|
};
|
|
|
|
export const imgTypeToStyle: Record<ImageUploadType, React.CSSProperties> = {
|
|
"team-pfp": { borderRadius: "100%", width: "144px", height: "144px" },
|
|
"org-pfp": { borderRadius: "100%", width: "144px", height: "144px" },
|
|
"team-banner": { borderRadius: "var(--rounded)", width: "100%" },
|
|
};
|