mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-16 22:09:57 +02:00
chore: update UI as per suggestion
This commit is contained in:
@@ -10,6 +10,7 @@ interface EditorColumn {
|
|||||||
title: string;
|
title: string;
|
||||||
description: string;
|
description: string;
|
||||||
redirectUrl: string;
|
redirectUrl: string;
|
||||||
|
buttonText: string;
|
||||||
highlighted?: boolean;
|
highlighted?: boolean;
|
||||||
proTrialUrl?: string;
|
proTrialUrl?: string;
|
||||||
features: Feature[];
|
features: Feature[];
|
||||||
@@ -21,6 +22,7 @@ const editorColumns: EditorColumn[] = [
|
|||||||
description: 'Basic features, no login',
|
description: 'Basic features, no login',
|
||||||
redirectUrl:
|
redirectUrl:
|
||||||
'https://www.mermaidchart.com/play?utm_source=mermaid_js&utm_medium=editor_selection&utm_campaign=playground',
|
'https://www.mermaidchart.com/play?utm_source=mermaid_js&utm_medium=editor_selection&utm_campaign=playground',
|
||||||
|
buttonText: 'Start free',
|
||||||
features: [
|
features: [
|
||||||
{ iconUrl: '/icons/public.svg', featureName: 'Diagram stored in URL' },
|
{ iconUrl: '/icons/public.svg', featureName: 'Diagram stored in URL' },
|
||||||
{ iconUrl: '/icons/terminal.svg', featureName: 'Code editor' },
|
{ iconUrl: '/icons/terminal.svg', featureName: 'Code editor' },
|
||||||
@@ -28,10 +30,11 @@ const editorColumns: EditorColumn[] = [
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Free',
|
title: 'Free or Pro',
|
||||||
description: 'Advanced features, free account',
|
description: 'Advanced features, Free or Pro account',
|
||||||
redirectUrl:
|
redirectUrl:
|
||||||
'https://www.mermaidchart.com/app/sign-up?utm_source=mermaid_js&utm_medium=editor_selection&utm_campaign=mermaid_chart&redirect=%2Fapp%2Fdiagrams%2Fnew',
|
'https://www.mermaidchart.com/app/sign-up?utm_source=mermaid_js&utm_medium=editor_selection&utm_campaign=mermaid_chart&redirect=%2Fapp%2Fdiagrams%2Fnew',
|
||||||
|
buttonText: 'Start Free',
|
||||||
highlighted: true,
|
highlighted: true,
|
||||||
proTrialUrl:
|
proTrialUrl:
|
||||||
'https://www.mermaidchart.com/app/sign-up?utm_source=mermaid_js&utm_medium=editor_selection&utm_campaign=mermaid_chart_trial&redirect=%2Fapp%2Fuser%2Fbilling%2Fcheckout',
|
'https://www.mermaidchart.com/app/sign-up?utm_source=mermaid_js&utm_medium=editor_selection&utm_campaign=mermaid_chart_trial&redirect=%2Fapp%2Fuser%2Fbilling%2Fcheckout',
|
||||||
@@ -53,6 +56,7 @@ const editorColumns: EditorColumn[] = [
|
|||||||
title: 'Open Source',
|
title: 'Open Source',
|
||||||
description: 'Code only, no login',
|
description: 'Code only, no login',
|
||||||
redirectUrl: 'https://mermaid.live/edit',
|
redirectUrl: 'https://mermaid.live/edit',
|
||||||
|
buttonText: 'Start free',
|
||||||
features: [
|
features: [
|
||||||
{ iconUrl: '/icons/public.svg', featureName: 'Diagram stored in URL' },
|
{ iconUrl: '/icons/public.svg', featureName: 'Diagram stored in URL' },
|
||||||
{ iconUrl: '/icons/terminal.svg', featureName: 'Code editor' },
|
{ iconUrl: '/icons/terminal.svg', featureName: 'Code editor' },
|
||||||
@@ -87,15 +91,17 @@ onUnmounted(() => {
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
v-if="isVisible"
|
v-if="isVisible"
|
||||||
class="fixed top-0 left-0 z-50 flex h-screen w-screen backdrop-blur-sm items-center justify-center"
|
class="fixed top-0 left-0 z-50 flex h-screen w-screen backdrop-blur-sm items-center justify-center bg-[#8585A4]/40"
|
||||||
@click.self="isVisible = false"
|
@click.self="isVisible = false"
|
||||||
>
|
>
|
||||||
<div class="flex flex-row rounded-3xl shadow relative gap-5 pt-20 pb-10 px-10 bg-[#F1F8FA]">
|
<div
|
||||||
|
class="flex flex-col sm:flex-row rounded-3xl shadow relative gap-5 pt-10 sm:pt-20 pb-10 px-4 sm:px-10 bg-[#F1F8FA] overflow-y-auto max-h-full"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
v-for="column in editorColumns"
|
v-for="column in editorColumns"
|
||||||
class="w-80 flex relative flex-col justify-start items-center bg-[#dceef1] p-8 text-gray-800 shadow"
|
class="sm:w-80 flex relative flex-col justify-start items-center p-6 sm:p-8 text-gray-800 shadow w-full"
|
||||||
:class="
|
:class="
|
||||||
column.highlighted ? 'bg-white rounded-b-3xl shadow-xl' : 'bg-[#DCEEF1] rounded-3xl'
|
column.highlighted ? 'bg-white rounded-b-3xl mt-10 sm:mt-0' : 'bg-[#DCEEF1] rounded-3xl'
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@@ -115,20 +121,15 @@ onUnmounted(() => {
|
|||||||
<a
|
<a
|
||||||
:href="column.redirectUrl"
|
:href="column.redirectUrl"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
class="mb-6 flex h-10 w-full items-center justify-center rounded-xl hover:bg-[#272040] hover:text-white hover:shadow-md"
|
class="mb-6 flex h-10 w-full bg-[#BEDDE3] hover:bg-[#5CA3B4] text-[#1E1A2E] items-center justify-center rounded-xl hover:text-white hover:shadow-md"
|
||||||
:class="
|
|
||||||
column.highlighted
|
|
||||||
? 'bg-[#1e1a2e] text-[#BEDDE3] hover:text-[#5CA3B4]'
|
|
||||||
: 'bg-[#BEDDE3] hover:bg-[#5CA3B4] text-[#1E1A2E]'
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
Start free
|
{{ column.buttonText }}
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
v-if="column.proTrialUrl"
|
v-if="column.proTrialUrl"
|
||||||
:href="column.proTrialUrl"
|
:href="column.proTrialUrl"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
class="mb-6 flex h-10 w-full text-white items-center justify-center rounded-xl bg-[#E0095F] hover:shadow-md"
|
class="mb-6 flex h-10 w-full text-white items-center justify-center rounded-xl bg-[#1e1a2e] text-[#BEDDE3] hover:text-[#5CA3B4] hover:shadow-md"
|
||||||
>
|
>
|
||||||
Start Pro trial
|
Start Pro trial
|
||||||
</a>
|
</a>
|
||||||
|
Reference in New Issue
Block a user