From 479ee91c4a80aba4dbcd57bff2b25907a752b13a Mon Sep 17 00:00:00 2001 From: Freeze455 Date: Sun, 5 Sep 2021 23:18:51 +0200 Subject: [PATCH] :construction: Redesign environment --- src/components/Stats.vue | 4 +- .../documentation/base/Environment.vue | 62 ++++++++++++++++--- 2 files changed, 56 insertions(+), 10 deletions(-) diff --git a/src/components/Stats.vue b/src/components/Stats.vue index 4533362..7318ec3 100644 --- a/src/components/Stats.vue +++ b/src/components/Stats.vue @@ -6,10 +6,10 @@

- Trusted by developers from over 80 planets + Why wait to join us ?

- Lorem ipsum dolor, sit amet consectetur adipisicing elit. Repellendus repellat laudantium. + The success of our platform is reflected in our figures

diff --git a/src/templates/modules/documentation/base/Environment.vue b/src/templates/modules/documentation/base/Environment.vue index f99cd58..3b6d101 100644 --- a/src/templates/modules/documentation/base/Environment.vue +++ b/src/templates/modules/documentation/base/Environment.vue @@ -21,17 +21,51 @@

When you create a new project, you can choose between three types of environment :

+ +
-

json

- -
-
-

yaml

- +
+ + +
+
-

Retrieving environment variables

- + + + + + + + + + + + @@ -44,6 +78,18 @@ import LinkExternal from '../../../../components/LinkExternal.vue' import AlertWarn from '../../../../components/AlertWarn.vue' import AlertSuccess from '../../../../components/AlertSuccess.vue' import AlertInfo from '../../../../components/AlertInfo.vue' +import { ref } from 'vue' + +const tabs = [ + { id: 'yaml', name: 'YAML', href: '#' }, + { id: 'json', name: 'JSON', href: '#' }, +] + +const activeTab = ref('yaml') + +function changeTab (identifier: string) { + activeTab.value = identifier +} const json = ` {