✅ COMPLETED: 1. Dockerfile uses port 80 (astro preview) 2. BaseLayout imports globals.css 3. globals.css with Tailwind v4 @theme syntax 4. index.astro has Header, Footer, FixedContact 5. All image references fixed to existing files 6. Hero uses hdpe_pipe_main.jpg 7. Product cards use hdpe001.jpg 8. pt-20 on main for fixed header ✅ TESTED LOCALLY: - Build: 15 pages in 1.27s - Docker build successful - Port 80 working - Images load - CSS works Ready for Easypanel deployment.
21 lines
1.1 KiB
TypeScript
21 lines
1.1 KiB
TypeScript
import type * as unifont from 'unifont';
|
|
import type { CssProperties, FontType, GenericFallbackName } from './types.js';
|
|
/**
|
|
* Turns unifont font face data into generic CSS properties, to be consumed by the CSS renderer.
|
|
*/
|
|
export declare function unifontFontFaceDataToProperties(font: Partial<unifont.FontFaceData>): CssProperties;
|
|
export declare function renderFontWeight(weight: unifont.FontFaceData['weight']): string | undefined;
|
|
/**
|
|
* Turns unifont font face data src into a valid CSS property.
|
|
* Adapted from https://github.com/nuxt/fonts/blob/main/src/css/render.ts#L68-L81
|
|
*/
|
|
export declare function renderFontSrc(sources: Exclude<unifont.FontFaceData['src'][number], string>[]): string;
|
|
/**
|
|
* Removes the quotes from a string. Used for family names
|
|
*/
|
|
export declare function withoutQuotes(str: string): string;
|
|
export declare function isFontType(str: string): str is FontType;
|
|
export declare function isGenericFontFamily(str: string): str is GenericFallbackName;
|
|
export declare function dedupe<const T extends Array<any>>(arr: T): T;
|
|
export declare function sortObjectByKey<T extends Record<string, any>>(unordered: T): T;
|