This repository has been archived on 2025-01-07. You can view files and clone it, but cannot push or open issues or pull requests.
rebuilding-acquia/src/components/Environments.vue

168 lines
8.5 KiB
Vue
Raw Normal View History

2018-12-21 21:58:12 +00:00
<template>
<div>
<div class="bg-white">
2018-12-21 23:45:34 +00:00
<div class="mx-1 px-4 flex items-center leading-none justify-between">
<div class="flex-none md:mr-24">
2018-12-21 21:58:12 +00:00
<a href="#0"><img src="img/logo.png" alt="" class="h-10"></a>
</div>
<div class="flex flex-col flex-1">
2018-12-21 23:45:34 +00:00
<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-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>
2018-12-21 21:58:12 +00:00
</nav>
</div>
2018-12-21 23:45:34 +00:00
<div class="hidden md:flex md:items-center">
2018-12-21 21:58:12 +00:00
<div><a class="text-sm text-blue-dark no-underline hover:underline uppercase" href="#0">Help</a></div>
<div class="ml-6"><button type="button">
<span class="hidden">Menu</span>
<svg class="fill-current text-blue-dark" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="20" height="20"><path id="select-product" class="cls-1" d="M.77,0h4A.76.76,0,0,1,5.5.77v4a.76.76,0,0,1-.77.77h-4A.76.76,0,0,1,0,4.73v-4A.76.76,0,0,1,.77,0ZM7.25.77v4A.76.76,0,0,0,8,5.5h4a.76.76,0,0,0,.77-.77v-4A.76.76,0,0,0,12,0H8A.76.76,0,0,0,7.25.77Zm7.25,0v4a.76.76,0,0,0,.77.77h4A.76.76,0,0,0,20,4.73v-4A.76.76,0,0,0,19.23,0h-4A.76.76,0,0,0,14.5.77ZM0,8v4a.76.76,0,0,0,.77.77h4A.76.76,0,0,0,5.5,12V8a.76.76,0,0,0-.77-.77h-4A.76.76,0,0,0,0,8ZM7.25,8v4a.76.76,0,0,0,.77.77h4a.76.76,0,0,0,.77-.77V8A.76.76,0,0,0,12,7.25H8A.76.76,0,0,0,7.25,8ZM14.5,8v4a.76.76,0,0,0,.77.77h4A.76.76,0,0,0,20,12V8a.76.76,0,0,0-.77-.77h-4A.76.76,0,0,0,14.5,8ZM0,15.27v4A.76.76,0,0,0,.77,20h4a.76.76,0,0,0,.77-.77v-4a.76.76,0,0,0-.77-.77h-4A.76.76,0,0,0,0,15.27Zm7.25,0v4A.76.76,0,0,0,8,20h4a.76.76,0,0,0,.77-.77v-4A.76.76,0,0,0,12,14.5H8A.76.76,0,0,0,7.25,15.27Zm7.25,0v4a.76.76,0,0,0,.77.77h4a.76.76,0,0,0,.77-.77v-4a.76.76,0,0,0-.77-.77h-4A.76.76,0,0,0,14.5,15.27Z"></path></svg>
</button></div>
<div class="ml-6"><button type="button">
<span class="hidden">Activity</span>
<svg class="h-6 w-6 text-blue-dark fill-current" role="presentation"><use xlink:href="icons.symbol.svg#objects__notification"></use></svg>
</button></div>
<div class="ml-6">
<img class="w-5 h-5 rounded-full" src="https://accounts.acquia.com/images/users/04950d70-7265-4ca7-9a52-2108961edb65/style/avatar" alt="">
</div>
</div>
</div>
</div>
2018-12-21 23:45:34 +00:00
<div class="px-4 py-5 border-b-2 border-grey flex justify-between items-center">
<div class="w-full md:w-auto flex flex-col">
2018-12-21 21:58:12 +00:00
<div class="text-xs mb-3">
<ol class="list-reset flex">
<li class="mr-6"><a href="#0" class="text-blue-dark no-underline hover:underline">Applications</a></li>
2018-12-21 23:58:35 +00:00
<li>{{ project.name }}</li>
2018-12-21 21:58:12 +00:00
</ol>
</div>
2018-12-22 00:36:38 +00:00
<button class="flex flex-1 items-center justify-between md:justify-start">
2018-12-21 23:58:35 +00:00
<div class="text-2xl font-hairline mr-2">{{ project.name }}</div>
2018-12-21 21:58:12 +00:00
<svg class="h-6 w-6 text-blue-dark fill-current" role="presentation"><use xlink:href="icons.symbol.svg#actions__down-arrow"></use></svg>
2018-12-22 00:36:38 +00:00
</button>
2018-12-21 21:58:12 +00:00
</div>
2018-12-21 23:45:34 +00:00
<div class="hidden md:block">
2018-12-21 21:58:12 +00:00
<ul class="list-reset flex">
<li>
<button type="button" class="text-xs text-blue-dark no-underline hover:underline flex flex-col items-center justify-center">
<svg class="h-6 w-6 text-blue-dark fill-current mb-2" role="presentation"><use xlink:href="icons.symbol.svg#actions__new-database"></use></svg>
Add database
</button>
</li>
<li class="ml-6">
<button type="button" class="text-xs text-blue-dark no-underline hover:underline flex flex-col items-center justify-center">
<svg class="h-6 w-6 text-blue-dark fill-current mb-2" role="presentation"><use xlink:href="icons.symbol.svg#actions__info"></use></svg>
Git Info
</button>
</li>
<li class="ml-6">
2018-12-22 00:27:09 +00:00
<button type="button" class="text-xs text-grey-dark no-underline flex flex-col items-center justify-center cursor-not-allowed" disabled>
<svg class="h-6 w-6 fill-current text-grey-dark mb-2" role="presentation"><use xlink:href="icons.symbol.svg#actions__edit"></use></svg>
2018-12-21 21:58:12 +00:00
Rename
</button>
</li>
</ul>
</div>
</div>
<div class="flex flex-row-reverse h-full">
2018-12-21 23:45:34 +00:00
<div class="flex-1 p-4 lg:p-12">
2018-12-21 21:58:12 +00:00
<div class="mb-6">
2018-12-22 01:17:47 +00:00
<div class="lg:flex lg:items-baseline mb-2">
<div class="mr-16 mb-4 lg:mb-0">
<h1 class="text-4xl font-hairline mb-2">Environments</h1>
2018-12-21 21:58:12 +00:00
2018-12-22 01:17:47 +00:00
<div>
<ul class="list-reset flex -mr-2">
<li class="text-2xs uppercase py-1 px-2 rounded border border-transparent bg-blue-light text-white mr-2">{{ project.type }}</li>
<li class="text-2xs uppercase py-1 px-2 rounded border border-grey bg-white mr-2">{{ project.level }}</li>
</ul>
2018-12-21 21:58:12 +00:00
</div>
</div>
2018-12-22 01:17:47 +00:00
<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>
2018-12-21 21:58:12 +00:00
2018-12-22 01:17:47 +00:00
<div class="flex-1">
<toggle-help @toggle="help.hidden = !help.hidden"></toggle-help>
</div>
</div>
2018-12-21 21:58:12 +00:00
</div>
</div>
2018-12-21 23:02:15 +00:00
<quick-help :hidden="help.hidden"></quick-help>
2018-12-21 23:58:35 +00:00
<environment-cards :environments="project.environments"></environment-cards>
2018-12-21 21:58:12 +00:00
<task-log></task-log>
</div>
2018-12-21 23:45:34 +00:00
<div class="w-auto lg:w-64 bg-grey-darkest text-white antialiased">
2018-12-21 21:58:12 +00:00
<div>
<ul class="list-reset">
2018-12-22 00:27:09 +00:00
<li class="border-r-6 border-b border-grey-darker">
2018-12-21 23:45:34 +00:00
<a href="#0" class="flex items-center text-white no-underline hover:underline focus:underline border-l-6 border-blue px-4 py-5 bg-grey-darker">
<svg class="h-6 w-6 text-white fill-current" role="presentation"><use xlink:href="icons.symbol.svg#alpha__grid"></use></svg>
<span class="hidden lg:block lg:ml-4">Environments</span>
2018-12-21 21:58:12 +00:00
</a>
</li>
2018-12-21 23:45:34 +00:00
<li class="border-r-6 border-grey-darkest hover:border-grey-darker">
2018-12-21 21:58:12 +00:00
<div class="flex items-center text-grey no-underline hover:underline focus:underline border-l-6 border-transparent px-4 py-5 cursor-not-allowed hover:bg-grey-darker">
2018-12-21 23:45:34 +00:00
<svg class="h-6 w-6 text-grey fill-current" role="presentation"><use xlink:href="icons.symbol.svg#locations__keys"></use></svg>
<span class="hidden lg:block lg:ml-4">Product Keys</span>
2018-12-21 21:58:12 +00:00
</div>
2018-12-21 23:45:34 +00:00
</li class="border-r-6 border-grey-darkest hover:border-grey-darker">
2018-12-21 21:58:12 +00:00
<div class="flex items-center text-grey no-underline hover:underline focus:underline border-l-6 border-transparent px-4 py-5 cursor-not-allowed hover:bg-grey-darker">
2018-12-21 23:45:34 +00:00
<svg class="h-6 w-6 text-grey fill-current" role="presentation"><use xlink:href="icons.symbol.svg#alpha__security"></use></svg>
<span class="hidden lg:block lg:ml-4">Security</span>
2018-12-21 21:58:12 +00:00
</div>
</li>
2018-12-21 23:45:34 +00:00
<li class="border-r-6 border-grey-darkest hover:border-grey-darker">
2018-12-21 21:58:12 +00:00
<a href="#0" class="flex items-center text-white no-underline hover:underline focus:underline border-l-6 border-transparent px-4 py-5 hover:bg-grey-darker">
2018-12-21 23:45:34 +00:00
<svg class="h-6 w-6 text-white fill-current" role="presentation"><use xlink:href="icons.symbol.svg#actions__search"></use></svg>
<span class="hidden lg:block lg:ml-4">Acquia Search</span>
2018-12-21 21:58:12 +00:00
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</template>
<script>
import EnvironmentCards from './EnvironmentCards'
2018-12-21 23:02:15 +00:00
import QuickHelp from './QuickHelp'
2018-12-21 21:58:12 +00:00
import TaskLog from './TaskLog'
2018-12-21 23:02:15 +00:00
import ToggleHelp from './ToggleHelp'
2018-12-21 21:58:12 +00:00
export default {
components: {
EnvironmentCards,
QuickHelp,
TaskLog,
2018-12-21 23:02:15 +00:00
ToggleHelp,
2018-12-21 21:58:12 +00:00
},
2018-12-21 23:58:35 +00:00
props: {
project: Object,
},
2018-12-21 21:58:12 +00:00
data() {
return {
2018-12-21 23:02:15 +00:00
help: {
hidden: false,
}
2018-12-21 21:58:12 +00:00
}
}
}
</script>