screenshots

This commit is contained in:
texm
2023-04-26 08:58:11 +08:00
parent 979475e2a8
commit 3b0f29379c
5 changed files with 18 additions and 7 deletions

View File

@@ -2,11 +2,12 @@
const features = [ const features = [
{title: "Free and Open Source", ref: "", description: "description"}, {title: "Free and Open Source", ref: "", description: "description"},
{title: "Github Integration", ref: "", description: "description"}, {title: "Github Integration", ref: "", description: "description"},
{title: "Easy Setup", ref: "", description: "description"},
{title: "Services Support", ref: "", description: "description"}, {title: "Services Support", ref: "", description: "description"},
] ]
</script> </script>
<div class="flex flex-col gap-2"> <div class="flex flex-col gap-4">
{#each features as feature} {#each features as feature}
<div class="card bg-base-100 shadow-xl"> <div class="card bg-base-100 shadow-xl">
<div class="card-body"> <div class="card-body">

View File

@@ -24,9 +24,9 @@
<button class="btn btn-primary text-primary-content">Get Started</button> <button class="btn btn-primary text-primary-content">Get Started</button>
</a> </a>
<a href={demoUrl}> <!--a href={demoUrl}>
<button class="btn btn-secondary text-secondary-content">Try the Demo</button> <button class="btn btn-secondary text-secondary-content">Try the Demo</button>
</a> </a-->
</div> </div>
</div> </div>
</div> </div>

View File

@@ -3,6 +3,7 @@
const carouselImages = [ const carouselImages = [
{alt: "dashboard screenshot", src: `${base}/images/dashboard-light.webp`}, {alt: "dashboard screenshot", src: `${base}/images/dashboard-light.webp`},
{alt: "dashboard screenshot", src: `${base}/images/dashboard-dark.webp`},
{alt: "app overview", src: `${base}/images/app-overview.webp`}, {alt: "app overview", src: `${base}/images/app-overview.webp`},
{alt: "service overview", src: `${base}/images/service-overview.webp`}, {alt: "service overview", src: `${base}/images/service-overview.webp`},
] ]
@@ -12,6 +13,15 @@
</script> </script>
<div class="mockup-window rounded-xl bg-base-200 w-auto h-fit shadow-lg shadow-secondary"> <div class="mockup-window rounded-xl bg-base-200 w-auto h-fit shadow-lg shadow-secondary">
<img class="inline dark:hidden" alt="dashboard screenshot" src="{base}/images/dashboard-dark.webp" /> <div class="w-full carousel rounded-box">
<img class="hidden dark:inline" alt="dashboard screenshot" src="{base}/images/dashboard-light.webp" /> {#each carouselImages as image, i}
<div id="img{1 + i}" class="carousel-item relative w-full">
<img src={image.src} class="w-full" alt={image.alt} />
<div class="absolute flex justify-between transform -translate-y-1/2 left-5 right-5 top-1/2">
<a href="#img{1 + prevIdx(i)}" class="btn btn-circle"></a>
<a href="#img{1 + nextIdx(i)}" class="btn btn-circle"></a>
</div>
</div>
{/each}
</div>
</div> </div>

View File

@@ -1,5 +1,5 @@
<script> <script>
const bootstrapLink = "https://shokku.app/install.sh"; const bootstrapLink = "https://shokku.dev/install.sh";
const scriptInstallCommands = [ const scriptInstallCommands = [
`wget "${bootstrapLink}"`, `wget "${bootstrapLink}"`,
`export SHOKKU_LETSENCRYPT_EMAIL="foo@example.com"`, `export SHOKKU_LETSENCRYPT_EMAIL="foo@example.com"`,

View File

@@ -6,7 +6,7 @@ const config = {
kit: { kit: {
adapter: adapter(), adapter: adapter(),
paths: { paths: {
base: process.env.NODE_ENV === "production" ? "/shokku" : "", base: process.env.NODE_ENV === "production" ? process.env.BASE_PATH : "",
relative: false, relative: false,
}, },
}, },