Skip to content

Commit

Permalink
feat(page): introduce Platform Overview (#1035)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-chatoyan authored Mar 15, 2024
1 parent da7ff1f commit 09c74dd
Show file tree
Hide file tree
Showing 30 changed files with 59,105 additions and 240 deletions.
243 changes: 3 additions & 240 deletions components/enterprise/BusinessDetails.vue
Original file line number Diff line number Diff line change
@@ -1,251 +1,14 @@
<template>
<div class="container" data-aos="fade-left">
<div class="business-details-container">
<ul class="nav nav-tabs w-100 d-md-flex d-none">
<li class="nav-item w-25" v-for="(navLink, index) in navLinks" :key="navLink.id">
<button :class="`nav-link ${activeTabIndex === index ? 'active' : ''}`" @click="setTab(index)">
{{ navLink.tabText }}
</button>
</li>
</ul>
<div class="dropdown d-md-none d-block w-100">
<button class="btn btn-secondary dropdown-toggle w-100" type="button" data-bs-toggle="dropdown" aria-expanded="false">
{{ navLinks[activeTabIndex].tabText }}
</button>
<ul class="dropdown-menu dropdown-menu-bar">
<li class="nav-item" v-for="(navLink, index) in navLinks" :key="navLink.id">
<button :class="`nav-link ${activeTabIndex === index ? 'active' : ''}`" @click="setTab(index)">
{{ navLink.tabText }}
</button>
</li>
</ul>
</div>
<div class="tab-content">
<div class="active-tab-content">
<img :src="navLinks[activeTabIndex].imgHref" :alt="navLinks[activeTabIndex].imgAlt">
<p>{{ navLinks[activeTabIndex].text }}</p>
</div>
</div>
</div>
<LayoutTabContent :navLinks="businessDetails.navLinks" />
</div>
</template>

<script>
export default {
data() {
return {
activeTabIndex: 1,
navLinks: [
{
id: 1,
active: false,
text: 'Secrets',
tabText: 'Vault Integration & Secret Management',
imgHref: '/landing/ee/company-stories/secrets.svg',
imgAlt: 'Secrets',
},
{
id: 2,
active: false,
text: 'SSO',
tabText: 'SSO Support',
imgHref: '/landing/ee/company-stories/sso-support.svg',
imgAlt: 'SSO',
},
{
id: 3,
active: false,
text: 'Audit Log',
tabText: 'Detailed Audit Logs',
imgHref: '/landing/ee/company-stories/audit-log.svg',
imgAlt: 'Audit Log',
},
{
id: 4,
active: false,
text: 'Tenants',
tabText: 'Multi-Tenant Architecture',
imgHref: '/landing/ee/company-stories/tenants.svg',
imgAlt: 'Tenants',
},
]
}
},
methods: {
setTab(index) {
if (this.activeTabIndex !== index) {
this.activeTabIndex = index
}
},
}
}
<script setup>
import businessDetails from "~/data/business-details.js";
</script>

<style lang="scss" scoped>
@import "../../assets/styles/variable";
.business-details-container {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background-color: $black-2;
border-radius: calc($spacer * 0.5);
border: $block-border;
background: url("landing/home/container-bg.svg") no-repeat 213% 47%;
background-size: 102% 267%;
margin-bottom: calc($spacer * 2.875);
overflow: hidden;
@include media-breakpoint-down(md) {
border: none;
overflow: unset;
}
ul {
background-color: $black-2;
overflow: hidden;
flex-wrap: nowrap;
justify-content: center;
border: none;
border-bottom: $block-border;
li {
border-right: $block-border;
padding: 0;
.active {
color: $white;
background: #4B0AAA;
border: none;
border-radius: 0;
}
button {
width: 100%;
height: 100%;
color: $white;
padding: 2rem;
border: none;
&:hover, &:focus {
border: none;
}
@include media-breakpoint-down(lg) {
padding: 1rem;
}
@include media-breakpoint-down(md) {
padding: calc($spacer * 0.5);
font-size: calc($font-size-base * 0.8);
}
@include media-breakpoint-down(sm) {
padding: calc($spacer * 0.1);
font-size: calc($font-size-base * 0.8);
}
}
}
li:last-child {
border: none;
}
}
.tab-content {
width: 100%;
display: flex;
justify-content: center;
padding: calc($spacer * 1.813);
position: relative;
z-index: 10;
overflow: hidden;
&::before,
&::after
{
content: "";
position: absolute;
width: calc($spacer * 12.5);
height: calc($spacer * 12.5);
background: linear-gradient(140deg, rgba(70, 24, 255, 0) -41.95%, #7e1cfa 77.28%);
filter: blur(100px);
z-index: -5;
}
&::before {
left: 41rem;
top: 20rem;
}
&::after {
right: 40rem;
bottom: 22rem;
}
@include media-breakpoint-down(md) {
padding: $spacer 0;
overflow: unset;
&::before {
left: 18rem;
top: 9rem;
}
&::after {
right: 18rem;
bottom: 9rem;
}
}
.active-tab-content {
display: flex;
flex-direction: column;
align-items: center;
gap: calc($spacer * 1.813);
p {
font-size: $h6-font-size;
font-weight: 300;
color: $white;
margin: 0;
}
img {
max-width: 100%;
}
}
}
.dropdown {
.dropdown-toggle {
position: relative;
background-color: $black-4;
z-index: 14;
color: $white;
font-style: $font-size-base;
line-height: calc($spacer * 1.625);
border-radius: calc($spacer * 0.5);
border: 1px solid $black-6;
&::after {
width: calc($spacer * 12.5);
height: calc($spacer * 12.5);
right: calc($spacer * -10.313);
top: calc($spacer * 0.688);
position: absolute;
content: "";
border: none;
background: url("/landing/ee/business-details/keyboard_arrow_down.svg");
background-repeat: no-repeat;
}
}
.dropdown-menu-bar {
width: 100%;
color: $white;
background-color: $black-4;
border-radius: calc($spacer * 0.5);
border: 1px solid $black-6;
}
}
}
</style>
12 changes: 12 additions & 0 deletions components/layout/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@
Separate your Business Logic from Orchestration Logic
</p>
</NuxtLink>
</li>
<li>
<NuxtLink class="dropdown-item" href="/features/api-first" @click="globalClick(true)">
<Earth />
<p>
Expand All @@ -76,6 +78,15 @@
</p>
</NuxtLink>
</li>
<li>
<NuxtLink class="dropdown-item" href="/overview" @click="globalClick(true)">
<ViewDashboardOutline />
<p>
<span>Platform Overview</span><br />
Powerful capabilities from the UI
</p>
</NuxtLink>
</li>
</ul>
</li>

Expand Down Expand Up @@ -327,6 +338,7 @@ import Sync from "vue-material-design-icons/Sync.vue"
import BasketOutline from "vue-material-design-icons/BasketOutline.vue"
import Translate from "vue-material-design-icons/Translate.vue"
import Earth from "vue-material-design-icons/Earth.vue"
import ViewDashboardOutline from "vue-material-design-icons/ViewDashboardOutline.vue"
</script>

<script>
Expand Down
Loading

0 comments on commit 09c74dd

Please sign in to comment.