Skip to content

Commit

Permalink
fix stuff maybe
Browse files Browse the repository at this point in the history
LimesKey committed Jun 11, 2024

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent a427d22 commit aff491b
Showing 3 changed files with 13 additions and 10 deletions.
3 changes: 2 additions & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -4,7 +4,8 @@
"beforeBuildCommand": "pnpm run build",
"beforeDevCommand": "pnpm run dev",
"devPath": "http://localhost:5173",
"distDir": "../.svelte-kit/cloudflare"
"distDir": "../.svelte-kit/cloudflare",
"withGlobalTauri": true
},
"package": {
"productName": "rustsveltewebsite",
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<link rel="icon" href="/src/assets/splash.ico" type="image/x-con">
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
</head>
18 changes: 10 additions & 8 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script lang="ts">
import { onMount } from 'svelte';
import { invoke } from '@tauri-apps/api/tauri';
let time: string;
import { onMount } from 'svelte';
import { invoke } from '@tauri-apps/api/tauri';
let services = [
{ title: "Water Analysis", description: "Comprehensive chemical analysis of your pool water to ensure safety and clarity.", image: "/src/assets/taylor-test-kit.png" },
{ title: "Filter Cleaning", description: "Cleans skimmer basket and pump filter every visit, will wash cartridge filters if required.", image: "/src/assets/cartridge-filter.png" },
@@ -14,6 +14,7 @@
{ plan: "Once a Month", price: "$30/month", description: "Basic monthly testing for low-maintenance pools.", responsibilities: "Monthly chemical testing and balancing. No cleaning tasks included." }
];
let time: string;
onMount(async () => {
try {
time = await invoke('display_time');
@@ -22,6 +23,7 @@
console.error('Error occurred:', error);
}
});
</script>

<style>
@@ -67,16 +69,18 @@
}
.button {
padding: 1rem 2rem;
opacity: 0.95;
background: white;
color: #1e88e5;
border: none;
border: 0.5px solid white;
border-radius: 25px;
cursor: pointer;
font-size: 1.2rem;
transition: background 0.3s;
transition: all 0.4s ease-out;
}
.button:hover {
background: #f1f1f1;
background: #deebcc;
opacity: 0.9;
}
.section {
padding: 4rem 2rem;
@@ -144,8 +148,6 @@
<a href="#pricing">Pricing</a>
<a href="#contact">Contact</a>
</nav>

<link rel="icon" href="/src/assets/splash.ico" type="image/x-con">
</header>

<section id="home" class="title">

0 comments on commit aff491b

Please sign in to comment.