reboot alterflixhub
This commit is contained in:
commit
1e84023a44
188 files changed
+31629
No files matched your search
@@ -0,0 +1,26 @@
|
||||
import { LOGO_SPEC, type LogoSize } from "@/lib/design-tokens";
|
||||
|
||||
type LogoProps = {
|
||||
className?: string;
|
||||
/** sm = footer (24px) · md = header (36px) */
|
||||
size?: LogoSize;
|
||||
};
|
||||
|
||||
/**
|
||||
* โลโก้ AlterFlixHub — ตาม DESIGN.md หัวข้อ "โลโก้ (ห้ามเปลี่ยนแปลง)"
|
||||
* ฟอนต์ Jersey 15 สี #8F0808 และมีสองขนาดเท่านั้น (sm/md)
|
||||
*/
|
||||
export function logoClasses(size: LogoSize = "md"): string {
|
||||
return `font-['Jersey_15'] leading-none ${LOGO_SPEC.sizes[size]}`;
|
||||
}
|
||||
|
||||
export function Logo({ className = "", size = "md" }: LogoProps) {
|
||||
return (
|
||||
<span
|
||||
className={`${logoClasses(size)} ${className}`}
|
||||
style={{ fontFamily: LOGO_SPEC.fontFamily, color: LOGO_SPEC.color }}
|
||||
>
|
||||
{LOGO_SPEC.wordmark}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user