working docker

This commit is contained in:
2024-04-11 17:23:12 -04:00
parent fd8b8bfb04
commit 048e552f7b
7 changed files with 86 additions and 2110 deletions

View File

@@ -1,5 +1,7 @@
FROM node:latest
ENV PUBLIC_BASE_URL=http://localhost:4056
RUN mkdir -p /app
WORKDIR /app
@@ -8,6 +10,6 @@ COPY package*.json ./
ENV PATH /app/node_modules/.bin:$PATH
RUN npm install -g
RUN npm install
COPY . /app

2146
package-lock.json generated Executable file → Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,29 +1,29 @@
{
"name": "goodoilfrontend",
"name": "auburnoil",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "vite dev",
"dev": "vite dev --port 5169 --host",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/adapter-node": "^1.3.1",
"@sveltejs/adapter-static": "^2.0.3",
"@sveltejs/kit": "^1.30.4",
"@sveltejs/adapter-auto": "*",
"@sveltejs/adapter-node": "*",
"@sveltejs/adapter-static": "*",
"@sveltejs/kit": "*",
"autoprefixer": "^10.4.19",
"daisyui": "^4.7.3",
"daisyui": "^4.10.1",
"postcss": "^8.4.38",
"postcss-load-config": "^4.0.1",
"svelte": "^4.0.5",
"svelte-check": "^3.4.3",
"tailwindcss": "^3.4.1",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "^4.5.2"
"postcss-load-config": "^4.0.2",
"svelte": "*",
"svelte-check": "*",
"tailwindcss": "^3.4.3",
"tslib": "*",
"typescript": "*",
"vite": "*"
},
"type": "module",
"dependencies": {

View File

@@ -2,7 +2,7 @@
export type oilprice = {
ok: boolean
price: string;
price_for_employee: string;
}
export type company = {

View File

@@ -23,7 +23,9 @@
.then((result) => (oil_price_data = result));
if (oil_price_data["ok"] == true) {
price_of_oil = oil_price_data["price"];
console.log("here")
price_of_oil = oil_price_data["price_for_employee"];
}
});
onMount(async () => {
@@ -56,7 +58,7 @@
class="normal-case text-8xl text-white bg-primary"
href="/"
>
Good
Auburn
</a>
<a
class="normal-case text-8xl text-primary"
@@ -111,7 +113,7 @@
<li><a class="text-2xl py-2 hover:bg-base-100" href="/contact">Contact</a></li>
</ul>
</div>
<a class="btn btn-ghost text-xl">GoodOil</a>
<a href="/" class="btn btn-ghost text-xl">AuburnOil</a>
</div>
<div class="navbar-center hidden lg:flex text-white">
<ul class="menu menu-horizontal px-1 text-xl">
@@ -134,7 +136,7 @@
class="col-span-12 md:col-span-4 text-center text-white text-bold text-6xl"
>
<div class="flex justify-center pt-5">
<div class=" text-white px-1">Good</div>
<div class=" text-white px-1">Auburn</div>
<div class=" text-white px-1">Oil</div>
</div>
</div>

View File

@@ -57,7 +57,7 @@
<div class="grid grid-cols-12 gap-5 px-5 text-center mt-10">
<div class="col-span-12 font-bold text-4xl text-blue-400 mx-auto">
Why call good oil?
Why call Auburn Oil?
</div>
<div class="col-span-12 lg:col-span-2"></div>
<div class="col-span-12 lg:col-span-3 bg-base-100 p-10">

View File

@@ -62,7 +62,7 @@
Business Hours Summer
</div>
<div class="font-bold text-xl bg-primary text-white h-2 mb-2"></div>
<div class="text-xl">8:00 a.m. 5:00 p.m.</div>
<div class="text-xl">Monday: 8:00 a.m. 5:00 p.m.</div>
<div class="text-xl">Tuesday: 8:30 a.m. 5:00 p.m.</div>
<div class="text-xl">Wednesday: 8:30 a.m. 5:00 p.m.</div>
<div class="text-xl">Thursday: 8:00 a.m. 5:00 p.m.</div>
@@ -75,7 +75,7 @@
Business Hours Winter
</div>
<div class="font-bold text-xl bg-primary text-white h-2 mb-2"></div>
<div class="text-xl">8:00 a.m. 5:00 p.m.</div>
<div class="text-xl">Monday: 8:00 a.m. 5:00 p.m.</div>
<div class="text-xl">Tuesday: 8:30 a.m. 5:00 p.m.</div>
<div class="text-xl">Wednesday: 8:30 a.m. 5:00 p.m.</div>
<div class="text-xl">Thursday: 8:00 a.m. 5:00 p.m.</div>