Skip to content

Commit c1a24cc

Browse files
committed
Merge remote-tracking branch 'origin/feat-profiles' into remove-product-hunt-promp-studio
2 parents e000f22 + 1dd2860 commit c1a24cc

3 files changed

Lines changed: 27 additions & 9 deletions

File tree

src/lib/components/promos/imagine.svelte

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script lang="ts">
22
import { NoToneMapping } from 'three';
33
import { Canvas } from '@threlte/core';
4-
import ImagineSvg from './imagine.svg';
4+
import ProductHuntSvg from './product-hunt.svg';
55
import ImaginationShader from './shader.svelte';
66
</script>
77

@@ -12,7 +12,11 @@
1212
</Canvas>
1313
</div>
1414

15+
<!--- Hidden logo
1516
<img src={ImagineSvg} alt="Imagine" class="imagine-logo" />
17+
-->
18+
19+
<img src={ProductHuntSvg} alt="Product Hunt" class="imagine-logo" />
1620
</div>
1721

1822
<style>
@@ -22,17 +26,19 @@
2226
position: relative;
2327
background-color: #000000;
2428
border: 0.795px solid var(--border-neutral-strong);
29+
overflow: hidden;
2530
}
2631
2732
.imagine-canvas {
2833
position: absolute;
34+
inset: 0;
2935
}
3036
3137
.imagine-logo {
3238
top: 50%;
3339
left: 50%;
3440
width: auto;
35-
height: 24px;
41+
height: 40px;
3642
position: absolute;
3743
transform: translate(-50%, -50%);
3844
}
Lines changed: 12 additions & 0 deletions
Loading

src/routes/(console)/bottomAlerts.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@ import {
77
showBottomModalAlert
88
} from '$lib/stores/bottom-alerts';
99

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

1313
const listOfPromotions: BottomModalAlertItem[] = [];
1414

1515
if (isCloud && SHOW_IMAGINE_PROMO) {
1616
const imaginePromo: BottomModalAlertItem = {
17-
id: 'modal:imagine.dev',
17+
id: 'modal:imagine-ph-launch-studio',
1818
backgroundComponent: Imagine,
19-
title: 'Introducing Imagine',
20-
message: 'the most complete AI builder to date',
19+
title: 'Imagine is live on Product Hunt',
20+
message: 'Ask questions, share feedback, and support the launch',
2121
importance: 8,
2222
scope: 'everywhere',
2323
plan: 'free',
2424
cta: {
25-
text: 'Try it now',
25+
text: 'Head to Product Hunt',
2626
color: {
2727
light: '#FFFFFF',
2828
dark: '#000000'
@@ -35,7 +35,7 @@ if (isCloud && SHOW_IMAGINE_PROMO) {
3535
light: '#333333',
3636
dark: '#CCCCCC'
3737
},
38-
link: () => 'https://cloud.appwrite.io',
38+
link: () => 'https://apwr.dev/imagine-ph-studio',
3939
external: true,
4040
hideOnClick: true
4141
},
@@ -47,7 +47,7 @@ if (isCloud && SHOW_IMAGINE_PROMO) {
4747

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

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

0 commit comments

Comments
 (0)