mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Revert "PH promo studio"
This commit is contained in:
+1
-4
@@ -100,10 +100,7 @@
|
||||
"@sentry/cli",
|
||||
"esbuild",
|
||||
"svelte-preprocess"
|
||||
],
|
||||
"overrides": {
|
||||
"seroval": "^1.4.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"packageManager": "pnpm@10.25.0"
|
||||
}
|
||||
|
||||
Generated
+8
-11
@@ -4,9 +4,6 @@ settings:
|
||||
autoInstallPeers: true
|
||||
excludeLinksFromLockfile: false
|
||||
|
||||
overrides:
|
||||
seroval: ^1.4.1
|
||||
|
||||
importers:
|
||||
|
||||
.:
|
||||
@@ -3012,10 +3009,10 @@ packages:
|
||||
resolution: {integrity: sha512-16OL3NnUBw8JG1jBLUoZJsLnQq0n5Ua6aHalhJK4fMQkz1lqR7Osz1sA30trBtd9VUDc2NgkuRCn8+/pBwqZ+w==}
|
||||
engines: {node: '>=10'}
|
||||
peerDependencies:
|
||||
seroval: ^1.4.1
|
||||
seroval: ^1.0
|
||||
|
||||
seroval@1.5.0:
|
||||
resolution: {integrity: sha512-OE4cvmJ1uSPrKorFIH9/w/Qwuvi/IMcGbv5RKgcJ/zjA/IohDLU6SVaxFN9FwajbP7nsX0dQqMDes1whk3y+yw==}
|
||||
seroval@1.3.2:
|
||||
resolution: {integrity: sha512-RbcPH1n5cfwKrru7v7+zrZvjLurgHhGyso3HTyGtRivGWgYjbOmGuivCQaORNELjNONoK35nj28EoWul9sb1zQ==}
|
||||
engines: {node: '>=10'}
|
||||
|
||||
set-cookie-parser@2.7.2:
|
||||
@@ -6586,11 +6583,11 @@ snapshots:
|
||||
|
||||
semver@7.7.3: {}
|
||||
|
||||
seroval-plugins@1.3.3(seroval@1.5.0):
|
||||
seroval-plugins@1.3.3(seroval@1.3.2):
|
||||
dependencies:
|
||||
seroval: 1.5.0
|
||||
seroval: 1.3.2
|
||||
|
||||
seroval@1.5.0: {}
|
||||
seroval@1.3.2: {}
|
||||
|
||||
set-cookie-parser@2.7.2: {}
|
||||
|
||||
@@ -6668,8 +6665,8 @@ snapshots:
|
||||
solid-js@1.9.10:
|
||||
dependencies:
|
||||
csstype: 3.2.3
|
||||
seroval: 1.5.0
|
||||
seroval-plugins: 1.3.3(seroval@1.5.0)
|
||||
seroval: 1.3.2
|
||||
seroval-plugins: 1.3.3(seroval@1.3.2)
|
||||
|
||||
solid-swr-store@0.10.7(solid-js@1.9.10)(swr-store@0.10.6):
|
||||
dependencies:
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
@@ -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%);
|
||||
}
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
<svg width="136" height="32" viewBox="0 0 136 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_2167_2328)">
|
||||
<path d="M31.718 15.857C31.718 24.6153 24.6172 31.716 15.859 31.716C7.09966 31.716 0 24.6153 0 15.857C0 7.09771 7.1002 -0.00195312 15.859 -0.00195312C24.6172 -0.00195312 31.718 7.09825 31.718 15.857Z" fill="#DA552F"/>
|
||||
<path d="M17.9734 15.8562H13.4804V11.0986H17.9734C18.2858 11.0986 18.5951 11.1601 18.8838 11.2796C19.1724 11.3992 19.4346 11.5744 19.6555 11.7953C19.8764 12.0162 20.0516 12.2784 20.1712 12.5671C20.2907 12.8557 20.3523 13.165 20.3523 13.4774C20.3523 13.7898 20.2907 14.0991 20.1712 14.3877C20.0516 14.6764 19.8764 14.9386 19.6555 15.1595C19.4346 15.3804 19.1724 15.5556 18.8838 15.6752C18.5951 15.7947 18.2858 15.8562 17.9734 15.8562ZM17.9734 7.92676H10.3086V23.7857H13.4804V19.028H17.9734C21.0389 19.028 23.5241 16.5429 23.5241 13.4774C23.5241 10.4119 21.0389 7.92676 17.9734 7.92676Z" fill="white"/>
|
||||
<path d="M48.3781 13.9184C48.3781 13.0457 47.7077 12.5169 46.8367 12.5169H44.5018V15.3036H46.8372C47.7083 15.3036 48.3781 14.7748 48.3781 13.9184ZM42.2905 21.1428V10.5703H47.1475C49.4059 10.5703 50.6349 12.0965 50.6349 13.9184C50.6349 15.7245 49.3902 17.2502 47.1475 17.2502H44.5018V21.1428H42.2905ZM51.9811 21.1428V13.4351H53.957V14.4472C54.5021 13.7931 55.4214 13.2485 56.3559 13.2485V15.1789C56.2149 15.1479 56.044 15.1328 55.8108 15.1328C55.1567 15.1328 54.284 15.5059 53.957 15.9897V21.1428H51.9811ZM63.0075 17.1878C63.0075 16.0201 62.3209 15.008 61.0756 15.008C59.845 15.008 59.161 16.0201 59.161 17.1883C59.161 18.3713 59.845 19.3833 61.0756 19.3833C62.3209 19.3833 63.0075 18.3713 63.0075 17.1878ZM57.1049 17.1878C57.1049 15.0552 58.5997 13.2485 61.0756 13.2485C63.5673 13.2485 65.0621 15.0547 65.0621 17.1878C65.0621 19.321 63.5673 21.1428 61.0756 21.1428C58.5997 21.1428 57.1049 19.321 57.1049 17.1878ZM71.7159 18.5269V15.8644C71.3888 15.3654 70.6729 15.008 70.0183 15.008C68.8825 15.008 68.1037 15.8953 68.1037 17.1883C68.1037 18.4955 68.8825 19.3833 70.0183 19.3833C70.6729 19.3833 71.3888 19.0259 71.7159 18.5269ZM71.7159 21.1428V19.9908C71.1236 20.7376 70.3149 21.1428 69.3956 21.1428C67.512 21.1428 66.0638 19.7109 66.0638 17.1878C66.0638 14.7439 67.481 13.2485 69.3956 13.2485C70.2829 13.2485 71.1236 13.6228 71.7159 14.4005V10.5703H73.7086V21.1428H71.7159ZM80.7518 21.1428V20.006C80.2387 20.5668 79.3357 21.1428 78.105 21.1428C76.4551 21.1428 75.6768 20.2397 75.6768 18.7759V13.4351H77.6532V17.9976C77.6532 19.0411 78.1983 19.3833 79.039 19.3833C79.8016 19.3833 80.4096 18.963 80.7518 18.5264V13.4351H82.7293V21.1428H80.7518ZM84.2143 17.1878C84.2143 14.8838 85.8957 13.2485 88.2008 13.2485C89.7422 13.2485 90.6762 13.9184 91.1746 14.6034L89.8816 15.8172C89.5242 15.2879 88.9791 15.008 88.2941 15.008C87.0949 15.008 86.2547 15.8801 86.2547 17.1883C86.2547 18.4955 87.0949 19.3833 88.2941 19.3833C88.9791 19.3833 89.5242 19.072 89.8816 18.5578L91.1746 19.7728C90.6762 20.4578 89.7422 21.1428 88.2008 21.1428C85.8957 21.1428 84.2143 19.5081 84.2143 17.1878ZM92.8749 19.072V15.1637H91.6296V13.4351H92.8749V11.3795H94.853V13.4351H96.3776V15.1637H94.853V18.5427C94.853 19.0254 95.1008 19.3833 95.5374 19.3833C95.8325 19.3833 96.1145 19.2743 96.2219 19.1501L96.6433 20.6595C96.3478 20.9253 95.8178 21.1428 94.9924 21.1428C93.6066 21.1428 92.8749 20.4269 92.8749 19.072ZM109.044 21.1428V16.5803H104.139V21.1428H101.929V10.5703H104.139V14.6495H109.044V10.5709H111.271V21.1428H109.044ZM118.347 21.1428V20.006C117.833 20.5668 116.93 21.1428 115.7 21.1428C114.05 21.1428 113.271 20.2397 113.271 18.7759V13.4351H115.248V17.9976C115.248 19.0411 115.793 19.3833 116.634 19.3833C117.397 19.3833 118.005 18.963 118.347 18.5264V13.4351H120.324V21.1428H118.347ZM127.366 21.1428V16.41C127.366 15.3665 126.822 15.0086 125.98 15.0086C125.202 15.0086 124.611 15.4446 124.267 15.8807V21.1433H122.291V13.4351H124.267V14.4005C124.751 13.8403 125.685 13.2485 126.899 13.2485C128.565 13.2485 129.359 14.1825 129.359 15.6458V21.1428H127.366H127.366ZM131.715 19.072V15.1637H130.471V13.4351H131.716V11.3795H133.694V13.4351H135.219V15.1637H133.694V18.5427C133.694 19.0254 133.942 19.3833 134.378 19.3833C134.674 19.3833 134.955 19.2743 135.064 19.1501L135.484 20.6595C135.189 20.9253 134.658 21.1428 133.833 21.1428C132.448 21.1428 131.715 20.4269 131.715 19.072Z" fill="white"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_2167_2328">
|
||||
<rect width="135.593" height="32" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.3 KiB |
@@ -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'
|
||||
@@ -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
|
||||
},
|
||||
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user