✅ 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.
45 lines
1.8 KiB
TypeScript
45 lines
1.8 KiB
TypeScript
import type * as unifont from 'unifont';
|
|
import type { FontFileReader } from '../definitions.js';
|
|
import type { FamilyProperties, FontProvider, FontProviderInitContext, ResolveFontOptions, Style, Weight } from '../types.js';
|
|
type RawSource = string | URL | {
|
|
url: string | URL;
|
|
tech?: string | undefined;
|
|
};
|
|
interface Variant extends FamilyProperties {
|
|
/**
|
|
* Font [sources](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/src). It can be a path relative to the root, a package import or a URL. URLs are particularly useful if you inject local fonts through an integration.
|
|
*/
|
|
src: [RawSource, ...Array<RawSource>];
|
|
/**
|
|
* A [font weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight). If the associated font is a [variable font](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_fonts/Variable_fonts_guide), you can specify a range of weights:
|
|
*
|
|
* ```js
|
|
* weight: "100 900"
|
|
* ```
|
|
*/
|
|
weight?: Weight | undefined;
|
|
/**
|
|
* A [font style](https://developer.mozilla.org/en-US/docs/Web/CSS/font-style).
|
|
*/
|
|
style?: Style | undefined;
|
|
}
|
|
export interface LocalFamilyOptions {
|
|
/**
|
|
* Each variant represents a [`@font-face` declaration](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/).
|
|
*/
|
|
variants: [Variant, ...Array<Variant>];
|
|
}
|
|
export declare class LocalFontProvider implements FontProvider<LocalFamilyOptions> {
|
|
#private;
|
|
name: string;
|
|
config?: Record<string, any> | undefined;
|
|
constructor({ fontFileReader, }: {
|
|
fontFileReader: FontFileReader;
|
|
});
|
|
init(context: Pick<FontProviderInitContext, 'root'>): void;
|
|
resolveFont(options: ResolveFontOptions<LocalFamilyOptions>): {
|
|
fonts: Array<unifont.FontFaceData>;
|
|
};
|
|
}
|
|
export {};
|