Fixed header and sidebar
This commit is contained in:
parent
fb739b336a
commit
f4a4ec8131
|
@ -7,8 +7,8 @@
|
||||||
|
|
||||||
<div class="flex flex-col flex-1">
|
<div class="flex flex-col flex-1">
|
||||||
<nav class="border-t-2 border-transparent flex justify-end md:justify-start">
|
<nav class="border-t-2 border-transparent flex justify-end md:justify-start">
|
||||||
<a href="#0" class="inline-block text-xs sm:text-sm border-b-4 border-blue-dark mx-2 px-4 py-4 md:py-5 text-blue-dark uppercase no-underline hover:underline focus:underline">Develop</a>
|
<a href="#0" class="inline-block text-sm border-b-4 border-blue-dark mx-2 px-4 py-4 md:py-5 text-blue-dark uppercase no-underline hover:underline focus:underline">Develop</a>
|
||||||
<a href="#0" class="inline-block text-xs sm:text-sm border-b-4 border-transparent mx-2 px-4 py-4 md:py-5 text-blue-dark uppercase no-underline hover:underline focus:underline">Manage</a>
|
<a href="#0" class="inline-block text-sm border-b-4 border-transparent mx-2 px-4 py-4 md:py-5 text-blue-dark uppercase no-underline hover:underline focus:underline">Manage</a>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="w-auto lg:w-64 bg-grey-darkest text-white antialiased">
|
<div class="w-auto lg:w-64 bg-grey-darkest text-white antialiased fixed pin-l h-full">
|
||||||
<div>
|
<div>
|
||||||
<ul class="list-reset">
|
<ul class="list-reset">
|
||||||
<li v-for="link in links" :key="link.title">
|
<li v-for="link in links" :key="link.title">
|
||||||
|
|
|
@ -1,55 +1,61 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<navbar></navbar>
|
<div class="fixed pin-t w-full z-30">
|
||||||
|
<navbar></navbar>
|
||||||
|
|
||||||
<div class="px-4 py-5 border-b-2 border-grey flex justify-between items-center">
|
<title-block>
|
||||||
<div class="w-full md:w-auto flex flex-col">
|
<template slot="left">
|
||||||
<div class="text-2xl font-hairline mr-2">Applications</div>
|
<div class="text-2xl font-hairline mr-2">Applications</div>
|
||||||
</div>
|
</template>
|
||||||
|
|
||||||
<header-buttons :links="[
|
<template slot="right">
|
||||||
{ title: 'Add Application', icon: 'alpha__new-app', disabled: false },
|
<header-buttons :links="[
|
||||||
]"></header-buttons>
|
{ title: 'Add Application', icon: 'alpha__new-app', disabled: false },
|
||||||
|
]"></header-buttons>
|
||||||
|
</template>
|
||||||
|
</title-block>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-row-reverse flex-1 h-full">
|
<div class="mt-48">
|
||||||
<div class="flex-1 p-4 lg:p-12">
|
<div class="-mt-10 md:-mt-4 flex flex-row-reverse h-full">
|
||||||
<div class="mb-6">
|
<div class="flex-1 p-4 lg:p-12 ml-16 lg:ml-64">
|
||||||
<div class="lg:flex lg:items-baseline mb-12">
|
<div class="mb-6">
|
||||||
<div class="mr-16 mb-4 lg:mb-0">
|
<div class="lg:flex lg:items-baseline mb-12">
|
||||||
<h1 class="text-4xl font-hairline mb-2">Applications</h1>
|
<div class="mr-16 mb-4 lg:mb-0">
|
||||||
</div>
|
<h1 class="text-4xl font-hairline mb-2">Applications</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
<application-switcher class="hidden lg:flex-1 lg:flex lg:justify-end mr-3" :mode="display" @display-changed="handleDisplay"></application-switcher>
|
<application-switcher class="hidden lg:flex-1 lg:flex lg:justify-end mr-3" :mode="display" @display-changed="handleDisplay"></application-switcher>
|
||||||
|
|
||||||
<div class="lg:flex lg:flex-row-reverse justify-between items-baseline">
|
<div class="lg:flex lg:flex-row-reverse justify-between items-baseline">
|
||||||
<div class="w-full">
|
<div class="w-full">
|
||||||
<form action="#">
|
<form action="#">
|
||||||
<input type="text" placeholder="Filter applications" class="w-full py-2 px-3 border border-grey-darker rounded">
|
<input type="text" placeholder="Filter applications" class="w-full py-2 px-3 border border-grey-darker rounded">
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-wrap -mx-3 -mb-6">
|
||||||
|
<application-card
|
||||||
|
v-for="application in applications"
|
||||||
|
:id="application.id"
|
||||||
|
:application="application"
|
||||||
|
:key="application.id"
|
||||||
|
:display="display"
|
||||||
|
class="px-3 w-full"
|
||||||
|
:class="[display == 'grid' ? 'lg:w-1/3 xl:w-1/4 mb-6 flex flex-col' : '']"
|
||||||
|
></application-card>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-wrap -mx-3 -mb-6">
|
<sidebar :links="[
|
||||||
<application-card
|
{ title: 'All', icon: 'alpha__grid', active: true, disabled: false },
|
||||||
v-for="application in applications"
|
{ title: 'Starred', icon: 'state__starred', active: false, disabled: false },
|
||||||
:id="application.id"
|
{ title: 'Recents', icon: 'objects__recent', active: false, disabled: false },
|
||||||
:application="application"
|
]"></sidebar>
|
||||||
:key="application.id"
|
|
||||||
:display="display"
|
|
||||||
class="px-3 w-full"
|
|
||||||
:class="[display == 'grid' ? 'lg:w-1/3 xl:w-1/4 mb-6 flex flex-col' : '']"
|
|
||||||
></application-card>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<sidebar :links="[
|
|
||||||
{ title: 'All', icon: 'alpha__grid', active: true, disabled: false },
|
|
||||||
{ title: 'Starred', icon: 'state__starred', active: false, disabled: false },
|
|
||||||
{ title: 'Recents', icon: 'objects__recent', active: false, disabled: false },
|
|
||||||
]"></sidebar>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -1,67 +1,73 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<navbar></navbar>
|
<div class="fixed pin-t w-full z-30">
|
||||||
|
<navbar></navbar>
|
||||||
|
|
||||||
<div class="px-4 py-5 border-b-2 border-grey flex justify-between items-center">
|
<title-block>
|
||||||
<div class="w-full md:w-auto flex flex-col">
|
<template slot="left">
|
||||||
<div class="text-xs mb-3">
|
<div class="text-xs mb-3">
|
||||||
<ol class="list-reset flex">
|
<ol class="list-reset flex">
|
||||||
<li class="flex items-center pr-1">
|
<li class="flex items-center pr-1">
|
||||||
<router-link to="/" class="text-blue-dark no-underline hover:underline mr-1">Applications</router-link>
|
<router-link to="/" class="text-blue-dark no-underline hover:underline mr-1">Applications</router-link>
|
||||||
<svg class="w-3 h-3 fill-current text-grey" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.95 10.707l.707-.707L8 4.343 6.586 5.757 10.828 10l-4.242 4.243L8 15.657l4.95-4.95z" fill-rule="evenodd"/></svg>
|
<svg class="w-3 h-3 fill-current text-grey" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.95 10.707l.707-.707L8 4.343 6.586 5.757 10.828 10l-4.242 4.243L8 15.657l4.95-4.95z" fill-rule="evenodd"/></svg>
|
||||||
</li>
|
</li>
|
||||||
<li>{{ application.name }}</li>
|
<li>{{ application.name }}</li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button class="flex flex-1 items-center justify-between md:justify-start">
|
<button class="flex flex-1 items-center justify-between md:justify-start">
|
||||||
<div class="text-2xl font-hairline mr-2">{{ application.name }}</div>
|
<div class="text-2xl font-hairline mr-2">{{ application.name }}</div>
|
||||||
<svg class="h-6 w-6 text-blue-dark fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#actions__down-arrow"></use></svg>
|
<svg class="h-6 w-6 text-blue-dark fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#actions__down-arrow"></use></svg>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</template>
|
||||||
|
|
||||||
<header-buttons :links="[
|
<template slot="right">
|
||||||
{ title: 'Add database', icon: 'actions__new-database', disabled: false },
|
<header-buttons :links="[
|
||||||
{ title: 'Git Info', icon: 'actions__info', disabled: false },
|
{ title: 'Add database', icon: 'actions__new-database', disabled: false },
|
||||||
{ title: 'Rename', icon: 'actions__edit', disabled: true },
|
{ title: 'Git Info', icon: 'actions__info', disabled: false },
|
||||||
]"></header-buttons>
|
{ title: 'Rename', icon: 'actions__edit', disabled: true },
|
||||||
|
]"></header-buttons>
|
||||||
|
</template>
|
||||||
|
</title-block>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-row-reverse h-full">
|
<div class="mt-48">
|
||||||
<div class="flex-1 p-4 lg:p-12">
|
<div class="-mt-4 md:-mt-2 flex flex-row-reverse h-full">
|
||||||
<div class="mb-6">
|
<div class="flex-1 p-4 lg:p-12 ml-16 lg:ml-64">
|
||||||
<div class="lg:flex lg:items-baseline mb-2">
|
<div class="mb-6">
|
||||||
<div class="mr-16 mb-4 lg:mb-0">
|
<div class="lg:flex lg:items-baseline mb-2">
|
||||||
<h1 class="text-4xl font-hairline mb-2">Environments</h1>
|
<div class="mr-16 mb-4 lg:mb-0">
|
||||||
|
<h1 class="text-4xl font-hairline mb-2">Environments</h1>
|
||||||
|
|
||||||
<application-tags :type="application.type" :level="application.level"></application-tags>
|
<application-tags :type="application.type" :level="application.level"></application-tags>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="lg:flex lg:flex-row-reverse flex-1 justify-between _bg-blue items-baseline">
|
|
||||||
<div class="w-full lg:w-1/2 xl:w-1/3">
|
|
||||||
<form action="#">
|
|
||||||
<input type="text" placeholder="Filter environments" class="w-full py-2 px-3 border border-grey-darker rounded">
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex-1">
|
<div class="lg:flex lg:flex-row-reverse flex-1 justify-between _bg-blue items-baseline">
|
||||||
<toggle-help @toggle="help.hidden = !help.hidden"></toggle-help>
|
<div class="w-full lg:w-1/2 xl:w-1/3">
|
||||||
|
<form action="#">
|
||||||
|
<input type="text" placeholder="Filter environments" class="w-full py-2 px-3 border border-grey-darker rounded">
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex-1">
|
||||||
|
<toggle-help @toggle="help.hidden = !help.hidden"></toggle-help>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<quick-help :hidden="help.hidden"></quick-help>
|
||||||
|
<environment-cards :environments="application.environments"></environment-cards>
|
||||||
|
<task-log></task-log>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<quick-help :hidden="help.hidden"></quick-help>
|
<sidebar :links="[
|
||||||
<environment-cards :environments="application.environments"></environment-cards>
|
{ title: 'Environments', icon: 'alpha__grid', active: true, disabled: false },
|
||||||
<task-log></task-log>
|
{ title: 'Product Keys', icon: 'locations__keys', active: false, disabled: true },
|
||||||
|
{ title: 'Security', icon: 'alpha__security', active: false, disabled: true },
|
||||||
|
{ title: 'Acquia Search', icon: 'actions__search', active: false, disabled: false },
|
||||||
|
]"></sidebar>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<sidebar :links="[
|
|
||||||
{ title: 'Environments', icon: 'alpha__grid', active: true, disabled: false },
|
|
||||||
{ title: 'Product Keys', icon: 'locations__keys', active: false, disabled: true },
|
|
||||||
{ title: 'Security', icon: 'alpha__security', active: false, disabled: true },
|
|
||||||
{ title: 'Acquia Search', icon: 'actions__search', active: false, disabled: false },
|
|
||||||
]"></sidebar>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -733,6 +733,8 @@ module.exports = {
|
||||||
'20': '5rem',
|
'20': '5rem',
|
||||||
'24': '6rem',
|
'24': '6rem',
|
||||||
'32': '8rem',
|
'32': '8rem',
|
||||||
|
'48': '10rem',
|
||||||
|
'64': '16rem',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue