Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,7 @@
"@sentry/cli",
"esbuild",
"svelte-preprocess"
],
"overrides": {
"seroval": "^1.4.1"
}
]
},
"packageManager": "pnpm@10.25.0"
}
19 changes: 8 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 2 additions & 8 deletions src/lib/components/promos/imagine.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { NoToneMapping } from 'three';
import { Canvas } from '@threlte/core';
import ProductHuntSvg from './product-hunt.svg';
import ImagineSvg from './imagine.svg';
import ImaginationShader from './shader.svelte';
</script>

Expand All @@ -12,11 +12,7 @@
</Canvas>
</div>

<!--- Hidden logo
<img src={ImagineSvg} alt="Imagine" class="imagine-logo" />
-->

<img src={ProductHuntSvg} alt="Product Hunt" class="imagine-logo" />
</div>

<style>
Expand All @@ -26,19 +22,17 @@
position: relative;
background-color: #000000;
border: 0.795px solid var(--border-neutral-strong);
overflow: hidden;
}

.imagine-canvas {
position: absolute;
inset: 0;
}

.imagine-logo {
top: 50%;
left: 50%;
width: auto;
height: 40px;
height: 24px;
position: absolute;
transform: translate(-50%, -50%);
}
Expand Down
12 changes: 0 additions & 12 deletions src/lib/components/promos/product-hunt.svg

This file was deleted.

14 changes: 7 additions & 7 deletions src/routes/(console)/bottomAlerts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ import {
showBottomModalAlert
} from '$lib/stores/bottom-alerts';

const SHOW_IMAGINE_PROMO = true;
const SHOW_IMAGINE_PROMO = false;
import { ProfileMode, resolvedProfile } from '$lib/profiles/index.svelte';

const listOfPromotions: BottomModalAlertItem[] = [];

if (isCloud && SHOW_IMAGINE_PROMO) {
const imaginePromo: BottomModalAlertItem = {
id: 'modal:imagine-ph-launch-studio',
id: 'modal:imagine.dev',
backgroundComponent: Imagine,
title: 'Imagine is live on Product Hunt',
message: 'Ask questions, share feedback, and support the launch',
title: 'Introducing Imagine',
message: 'the most complete AI builder to date',
importance: 8,
scope: 'everywhere',
plan: 'free',
cta: {
text: 'Head to Product Hunt',
text: 'Try it now',
color: {
light: '#FFFFFF',
dark: '#000000'
Expand All @@ -35,7 +35,7 @@ if (isCloud && SHOW_IMAGINE_PROMO) {
light: '#333333',
dark: '#CCCCCC'
},
link: () => 'https://apwr.dev/imagine-ph-studio',
link: () => 'https://cloud.appwrite.io',
external: true,
hideOnClick: true
},
Expand All @@ -47,7 +47,7 @@ if (isCloud && SHOW_IMAGINE_PROMO) {

export function addBottomModalAlerts() {
// fast path: not the valid profile to show this!
if (resolvedProfile.id !== ProfileMode.STUDIO) return;
if (resolvedProfile.id !== ProfileMode.CONSOLE) return;

listOfPromotions.forEach((promotion) => showBottomModalAlert(promotion));

Expand Down
Loading