Fixed major error. Custom css

This commit is contained in:
2024-08-27 09:34:29 -04:00
parent 0d7ab472ca
commit 2a1b61b79a
10 changed files with 123 additions and 59 deletions

View File

@@ -1,3 +1,33 @@
<script lang='ts'>
import "../../../app.postcss";
import { onMount } from "svelte";
import { PUBLIC_BASE_URL } from "$env/static/public";
import type { company } from '$lib/types/types'
export let company_data: company;
let company_name: string = '';
let tel_number: string = '';
onMount(async () => {
await fetch(PUBLIC_BASE_URL + "/info/company", {
method: "get",
credentials: "include",
headers: {
"Content-Type": "application/json",
},
})
.then((response) => response.json())
.then((result) => (company_data = result));
if (company_data["ok"] == true) {
company_name = company_data["company_name"];
tel_number = company_data["company_phone_number"];
}
});
</script>
<title>Auburn Oil: Heating Oil Delivery Service in Southern Worcester County</title>
<div class="bg-secondary px-10">