fix: Final restoration with port 80

 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.
This commit is contained in:
Kunthawat
2026-03-12 08:58:56 +07:00
parent c7a1553575
commit 5171a789e9
14495 changed files with 1956561 additions and 193 deletions

View File

@@ -0,0 +1,53 @@
import { isValidPlacement } from "./ui-library/window.js";
const defaultSettings = {
disableAppNotification: false,
verbose: false,
placement: "bottom-center"
};
const settings = getSettings();
function getSettings() {
let _settings = { ...defaultSettings };
const configPlacement = globalThis.__astro_dev_toolbar__?.placement;
if (configPlacement && isValidPlacement(configPlacement)) {
_settings.placement = configPlacement;
}
const toolbarSettings = localStorage.getItem("astro:dev-toolbar:settings");
if (toolbarSettings) {
_settings = { ..._settings, ...JSON.parse(toolbarSettings) };
}
function updateSetting(key, value) {
_settings[key] = value;
localStorage.setItem("astro:dev-toolbar:settings", JSON.stringify(_settings));
}
function log(message, level = "log") {
console[level](
`%cAstro`,
"background: linear-gradient(66.77deg, #D83333 0%, #F041FF 100%); color: white; padding-inline: 4px; border-radius: 2px; font-family: monospace;",
message
);
}
return {
get config() {
return _settings;
},
updateSetting,
logger: {
log,
warn: (message) => {
log(message, "warn");
},
error: (message) => {
log(message, "error");
},
verboseLog: (message) => {
if (_settings.verbose) {
log(message);
}
}
}
};
}
export {
defaultSettings,
settings
};