Fixed major error. Custom css
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user