sendou.ink/app/features/img-upload/upload-constants.ts
Kalle 9312fad90f
Tournament organization page (#1811)
* 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
2024-07-25 23:06:29 +03:00

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%" },
};