Re-order classes

This commit is contained in:
Oliver Davies 2019-06-27 19:11:44 +01:00
parent 38492073f7
commit 34bcdf6393
20 changed files with 94 additions and 99 deletions

View file

@ -1,31 +1,31 @@
<template>
<div class="py-1 overflow-y-scroll">
<ul class="flex -ml-3">
<li class="flex items-center ml-3">
<ul class="-ml-3 flex">
<li class="ml-3 flex items-center">
<div class="flex flex-col-reverse">
<span class="text-gray-700 uppercase text-sm">Organization</span>
<span v-if="!selectedOrganisation" class="font-bold block mb-1">All</span>
<router-link v-else :to="{ name: 'applications' }" class="font-bold block mb-1 hover:text-blue-400 whitespace-no-wrap" v-text="selectedOrganisation"></router-link>
<span v-if="!selectedOrganisation" class="mb-1 block font-bold">All</span>
<router-link v-else :to="{ name: 'applications' }" class="mb-1 block font-bold whitespace-no-wrap hover:text-blue-400" v-text="selectedOrganisation"></router-link>
</div>
<svg class="ml-3" xmlns="http://www.w3.org/2000/svg" width="20" height="20"><path d="M5.94 19.73L15.6 10 5.94.27A.88.88 0 0 0 5.3 0a.89.89 0 0 0-.65 1.51L13.06 10l-8.41 8.49a.89.89 0 0 0 1.29 1.24z"/></svg>
</li>
<li class="flex items-center ml-3">
<li class="ml-3 flex items-center">
<div class="flex flex-col-reverse">
<span class="text-gray-700 uppercase text-sm">Application</span>
<span v-if="!selectedApplication" class="font-bold block mb-1">All</span>
<span v-else-if="!selectedEnvironment" class="font-bold block mb-1" v-text="selectedApplication"></span>
<router-link v-else :to="{ name: 'environments' }" class="font-bold block mb-1 hover:text-blue-400 whitespace-no-wrap" v-text="selectedApplication"></router-link>
<span v-if="!selectedApplication" class="mb-1 block font-bold">All</span>
<span v-else-if="!selectedEnvironment" class="mb-1 block font-bold" v-text="selectedApplication"></span>
<router-link v-else :to="{ name: 'environments' }" class="mb-1 block font-bold whitespace-no-wrap hover:text-blue-400" v-text="selectedApplication"></router-link>
</div>
<svg class="ml-3" xmlns="http://www.w3.org/2000/svg" width="20" height="20"><path d="M5.94 19.73L15.6 10 5.94.27A.88.88 0 0 0 5.3 0a.89.89 0 0 0-.65 1.51L13.06 10l-8.41 8.49a.89.89 0 0 0 1.29 1.24z"/></svg>
</li>
<li class="flex items-center ml-3">
<li class="ml-3 flex items-center">
<div class="flex flex-col-reverse">
<span class="text-gray-700 uppercase text-sm">Environment</span>
<span v-if="!selectedApplication" class="font-bold block mb-1">---</span>
<span v-else-if="!selectedEnvironment" class="font-bold block mb-1">All</span>
<span v-else class="font-bold block mb-1" v-text="selectedEnvironment"></span>
<span v-if="!selectedApplication" class="mb-1 block font-bold">---</span>
<span v-else-if="!selectedEnvironment" class="mb-1 block font-bold">All</span>
<span v-else class="mb-1 block font-bold" v-text="selectedEnvironment"></span>
</div>
</li>
</ul>

View file

@ -16,27 +16,27 @@
<php-version class="mt-8" :application="application"></php-version>
</div>
<div class="flex-none w-1/6 text-right">
<div class="w-1/6 flex-none text-right">
<star-toggle :application="application" :starred="starred" @toggle="starred = !starred"></star-toggle>
</div>
</div>
</div>
<div v-if="display == 'list'" class="bg-white p-3 border-gray-400 border-b">
<div v-if="display == 'list'" class="p-3 bg-white border-gray-400 border-b">
<div class="-mx-2">
<div class="flex flex-row-reverse items-center justify-between">
<div class="flex flex-1 justify-between items-center -mx-2">
<div class="flex-1 px-2">
<div class="-mx-2 flex flex-1 justify-between items-center">
<div class="px-2 flex-1">
<router-link :to="{name: 'environments', params: { id }}" class="text-blue-300 no-underline hover:underline focus:underline">
<h2 class="text-base font-normal mb-1">{{ application.name }}</h2>
<h2 class="mb-1 text-base font-normal">{{ application.name }}</h2>
</router-link>
</div>
<div class="w-2/5 px-2">
<div class="px-2 w-2/5">
<a href="#0" class="text-blue-300 no-underline hover:underline focus:underline" v-text="prodUrl"/>
</div>
<div class="w-1/5 px-2">
<div class="px-1 w-1/5">
<php-version :application="application"/>
</div>
</div>

View file

@ -1,6 +1,6 @@
<template>
<div>
<ul class="list-reset flex flex-wrap -mr-2 -mb-2">
<ul class="list-reset -mr-2 -mb-2 flex flex-wrap">
<li class="mr-2 mb-2 py-1 px-2 text-2xs rounded uppercase border" :class="typeClasses" v-text="applicationTypeName"/>
<li class="mr-2 mb-2 py-1 px-2 text-2xs rounded uppercase border border-gray-400 bg-white">{{ application.level }}</li>
</ul>

View file

@ -1,5 +1,5 @@
<template>
<div class="text-sm flex items-center">
<div class="flex items-center text-sm">
<svg class="w-8 h-8" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M1.71 6.86h3.21A2.49 2.49 0 0 1 7 7.67a2.68 2.68 0 0 1 .42 2.19A4.1 4.1 0 0 1 7 11.1a3.55 3.55 0 0 1-.77 1.09A2.6 2.6 0 0 1 5 13a5.92 5.92 0 0 1-1.41.17H2.12l-.45 2.26H0l1.71-8.57m1.41 1.36L2.4 11.8h.31a6.55 6.55 0 0 0 1.91-.22c.52-.17.86-.75 1-1.75.14-.83 0-1.31-.44-1.44a5.52 5.52 0 0 0-1.59-.18zm11.15-1.36h3.21a2.52 2.52 0 0 1 2.05.81A2.75 2.75 0 0 1 20 9.86a4.12 4.12 0 0 1-.38 1.24 3.69 3.69 0 0 1-.76 1.09 2.65 2.65 0 0 1-1.28.79 6.07 6.07 0 0 1-1.42.17h-1.49l-.45 2.26h-1.67l1.72-8.55m1.4 1.36L15 11.8h.31a6.58 6.58 0 0 0 1.92-.22c.51-.17.85-.75 1-1.75.14-.83 0-1.31-.43-1.44a5.64 5.64 0 0 0-1.6-.18zm-7-3.63h1.65l-.44 2.27h1.49a3 3 0 0 1 1.82.51c.41.31.53.92.36 1.81l-.8 4h-1.68l.77-3.79a1.06 1.06 0 0 0-.08-.85c-.12-.17-.4-.25-.82-.25H9.61l-1 4.9H7l1.7-8.6" data-name="Layer 2"/></svg>
<span class="ml-1">{{ phpVersion }}</span>
</div>

View file

@ -1,7 +1,7 @@
<template>
<button type="button" @click="$emit('toggle')" class="focus:outline-none" :class="[starred ? 'text-orange-100 hover:text-orange-200 focus:text-orange-200' : 'text-gray-400 focus:text-orange-200 hover:text-orange-100']">
<span class="visuallyhidden">{{ !starred ? 'Star' : 'Unstar' }} {{ application.name }}</span>
<svg class="h-6 w-6 fill-current -mr-1" role="presentation"><use :xlink:href="`/img/icons.symbol.svg#state__${starred ? 'starred' : 'unstarred'}`"></use></svg>
<svg class="-mr-1 h-6 w-6 fill-current" role="presentation"><use :xlink:href="`/img/icons.symbol.svg#state__${starred ? 'starred' : 'unstarred'}`"></use></svg>
</button>
</template>

View file

@ -5,7 +5,7 @@
<div class="px-3 py-4">
<div class="flex flex-row-reverse">
<div class="flex-1">
<h2 class="text-gray-600 text-base mb-1">{{ title }}</h2>
<h2 class="mb-1 text-gray-600 text-base">{{ title }}</h2>
<div class="text-xs text-gray-600">{{ description }}</div>
</div>

View file

@ -1,5 +1,5 @@
<template>
<button type="button" class="w-full flex flex-col items-center py-3 text-blue-300 text-xs font-bold no-underline hover:underline focus:underline hover:bg-gray-200 focus:bg-gray-200 focus:outline-none block">
<button type="button" class="py-3 w-full flex flex-col items-center text-blue-300 text-xs font-bold no-underline hover:underline focus:underline hover:bg-gray-200 focus:bg-gray-200 focus:outline-none">
<slot></slot>
<span class="block" v-text="label"></span>
</button>

View file

@ -1,13 +1,13 @@
<template>
<div>
<ul class="flex flex-wrap md:hidden -mx-1 mb-5">
<li class="w-1/3 px-1"><button type="button" class="text-sm text-white w-full py-3 rounded" :class="[ active == 'code' ? 'bg-blue-400' : 'bg-blue-300' ]" @click="active = 'code'">Code</button></li>
<li class="w-1/3 px-1"><button type="button" class="text-sm text-white w-full py-3 rounded" :class="[ active == 'databases' ? 'bg-blue-400' : 'bg-blue-300' ]" @click="active = 'databases'">Databases</button></li>
<li class="w-1/3 px-1"><button type="button" class="text-sm text-white w-full py-3 rounded" :class="[ active == 'files' ? 'bg-blue-400' : 'bg-blue-300' ]" @click="active = 'files'">Files</button></li>
<li class="px-1 w-1/3"><button type="button" class="py-3 w-full text-sm text-white rounded" :class="[ active == 'code' ? 'bg-blue-400' : 'bg-blue-300' ]" @click="active = 'code'">Code</button></li>
<li class="px-1 w-1/3"><button type="button" class="py-3 w-full text-sm text-white rounded" :class="[ active == 'databases' ? 'bg-blue-400' : 'bg-blue-300' ]" @click="active = 'databases'">Databases</button></li>
<li class="px-1 w-1/3"><button type="button" class="py-3 w-full text-sm text-white rounded" :class="[ active == 'files' ? 'bg-blue-400' : 'bg-blue-300' ]" @click="active = 'files'">Files</button></li>
</ul>
<div class="flex flex-wrap -mx-4 -mb-4">
<div class="px-4 mb-4 w-full md:block md:w-1/3" :class="[ active == 'code' ? 'block' : 'hidden' ]">
<div class="-mx-4 -mb-4 flex flex-wrap">
<div class="px-4 mb-4 w-full md:w-1/3 md:block" :class="[ active == 'code' ? 'block' : 'hidden' ]">
<action-card title="Code" :description="`${ environment.name }: ${environment.label}`">
<svg slot="icon" role="presentation"><use xlink:href="/img/icons.symbol.svg#objects__code"></use></svg>

View file

@ -37,8 +37,8 @@
</span>
</button>
<button type="button" class="flex items-center text-white bg-blue-200 hover:bg-blue-400 focus:bg-blue-400 focus:outline-none focus:underline px-1 py-3 text-sm w-full text-left py-1 border-t border-gray-400">
<svg class="h-6 w-5 text-white mr-2 fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#objects__grip-handle"></use></svg>
<button type="button" class="px-1 py-3 w-full flex items-center text-white bg-blue-200 text-sm text-left border-t border-gray-400 hover:bg-blue-400 focus:bg-blue-400 focus:outline-none focus:underline">
<svg class="mr-2 h-6 w-5 text-white fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#objects__grip-handle"></use></svg>
Files
</button>
</div>

View file

@ -2,21 +2,21 @@
<div class="bg-white border-t-10 border-purple mb-6" :class="[hidden ? 'hidden' : 'block lg:flex']">
<div class="flex-none py-3 pl-3 pr-8 border-b lg:border-r border-gray-200">
<div class="flex items-center">
<svg class="h-6 w-6 mr-1 text-purple fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#actions__info"></use></svg>
<svg class="mr-1 h-6 w-6 text-purple fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#actions__info"></use></svg>
Quick help
</div>
</div>
<div class="p-4">
<div class="block lg:hidden leading-normal -mb-5">
<div class="-mb-5 block leading-normal lg:hidden">
<div v-for="item in items" :key="item.subject">
<p class="text-sm mb-3 font-bold">{{ item.subject }}</p>
<p class="text-sm mb-5">{{ item.text }}</p>
<p class="mb-3 text-sm font-bold">{{ item.subject }}</p>
<p class="mb-5 text-sm">{{ item.text }}</p>
</div>
</div>
<div class="hidden lg:block">
<div class="w-full lg:w-auto lg:flex mb-6">
<div class="mb-6 w-full lg:w-auto lg:flex">
<button
v-for="(item, i) in items"
:key="item.subject"

View file

@ -1,6 +1,6 @@
<template>
<div>
<div class="bg-gray-300 pb-4 pt-6 px-4">
<div class="pb-4 pt-6 px-4 bg-gray-300">
<h2 class="font-normal text-lg">Task Log</h2>
</div>
<div>

View file

@ -2,13 +2,13 @@
<div>
<div class="px-3 py-4 border-b border-gray-300 flex" :class="{'bg-yellow-lightest': open}">
<div class="flex-none mr-3">
<svg v-if="task.loading" class="h-5 w-5 text-gray-500 fill-current rotates" role="presentation"><use xlink:href="/img/icons.symbol.svg#feedback__loading"></use></svg>
<svg v-if="task.loading" class="rotates h-5 w-5 text-gray-500 fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#feedback__loading"></use></svg>
<svg v-if="!task.loading && task.success" class="h-5 w-5 text-green fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#feedback__success-circle"></use></svg>
<svg v-if="!task.loading && !task.success" class="h-5 w-5 text-red fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#feedback__warning"></use></svg>
</div>
<div class="flex-1">
<div class="text-sm font-bold mb-2">{{ task.text }}</div>
<div class="mb-2 text-sm font-bold">{{ task.text }}</div>
<div class="text-gray-600 text-2xs">{{ task.times.display }}</div>
</div>
@ -21,29 +21,29 @@
</div>
<div class="p-4 bg-gray-600 text-white antialiased" v-show="open">
<div class="lg:flex lg:flex-wrap -mx-4 -mb-4">
<div class="-mx-4 -mb-4 lg:flex lg:flex-wrap">
<div class="px-4 mb-4">
<div class="text-xs uppercase mb-1">Task ID</div>
<div class="mb-1 text-xs uppercase">Task ID</div>
<div class="text-sm font-bold">12345678</div>
</div>
<div class="px-4 mb-4 lg:w-1/6 lg:flex-none">
<div class="text-xs uppercase mb-1">User</div>
<div class="text-sm font-bold truncate">{{ task.user }}</div>
<div class="mb-4 px-4 lg:w-1/6 lg:flex-none">
<div class="mb-1 text-xs uppercase">User</div>
<div class="truncate text-sm font-bold">{{ task.user }}</div>
</div>
<div class="px-4 mb-4 lg:w-1/4 lg:flex-none">
<div class="text-xs uppercase mb-1">Started</div>
<div class="text-sm font-bold truncate">{{ task.times.started }}</div>
<div class="mb-1 text-xs uppercase">Started</div>
<div class="truncate text-sm font-bold">{{ task.times.started }}</div>
</div>
<div class="px-4 mb-4 lg:w-1/4 lg:flex-none">
<div class="text-xs uppercase mb-1">Completed</div>
<div class="text-sm font-bold truncate">{{ task.times.completed }}</div>
<div class="mb-1 text-xs uppercase">Completed</div>
<div class="truncate text-sm font-bold">{{ task.times.completed }}</div>
</div>
<div class="px-4 mb-4">
<div class="text-xs uppercase mb-1">Status</div>
<div class="mb-1 text-xs uppercase">Status</div>
<div class="text-sm font-bold">{{ status }}</div>
</div>
</div>

View file

@ -1,7 +1,7 @@
<template>
<div class="hidden lg:block">
<button type="button" class="text-blue-300 text-sm font-hairline flex items-end hover:underline focus:underline focus:outline-none" @click="$emit('toggle')">
<svg class="h-5 w-5 mr-1 text-blue-300 fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#actions__info"></use></svg>
<svg class="mr-1 h-5 w-5 text-blue-300 fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#actions__info"></use></svg>
{{ hidden ? 'Show quick help' : 'Hide quick help' }}
</button>
</div>

View file

@ -1,7 +1,7 @@
<template>
<div class="hidden lg:block">
<ul class="list-reset flex">
<li v-for="(link, i) in links" :key="link.title" :class="{'ml-6': i !== 0}">
<li v-for="(link, i) in links" :key="link.title" :class="{ 'ml-6': i !== 0 }">
<button
type="button"
class="text-xs no-underline hover:underline flex flex-col items-center justify-center"
@ -11,7 +11,7 @@
}"
:disabled="link.disabled"
>
<svg class="h-6 w-6 fill-current mb-2" role="presentation"><use :xlink:href="`/img/icons.symbol.svg#${link.icon}`"></use></svg>
<svg class="mb-2 h-6 w-6 fill-current" role="presentation"><use :xlink:href="`/img/icons.symbol.svg#${link.icon}`"></use></svg>
{{ link.title }}
</button>
</li>

View file

@ -7,8 +7,8 @@
<div class="flex flex-col flex-1">
<nav class="border-t-2 border-transparent flex justify-end md:justify-start">
<a href="#0" class="inline-block text-sm border-b-4 border-blue-300 mx-2 px-4 py-5 text-blue-300 uppercase no-underline hover:underline focus:underline">Develop</a>
<a href="#0" class="inline-block text-sm border-b-4 border-transparent mx-2 px-4 py-5 text-blue-300 uppercase no-underline hover:underline focus:underline">Manage</a>
<a href="#0" class="mx-2 px-4 py-5 inline-block text-sm border-b-4 border-blue-300 text-blue-300 uppercase no-underline hover:underline focus:underline">Develop</a>
<a href="#0" class="mx-2 px-4 py-5 inline-block text-sm border-b-4 border-transparent text-blue-300 uppercase no-underline hover:underline focus:underline">Manage</a>
</nav>
</div>

View file

@ -1,11 +1,11 @@
<template>
<div class="w-auto lg:w-56 bg-gray-300 text-gray-400 antialiased fixed left-0 h-full overflow-y-scroll z-30">
<div class="fixed left-0 h-full w-auto bg-gray-300 text-gray-400 overflow-y-scroll z-30 antialiased lg:w-56">
<div>
<ul class="list-reset">
<li v-for="link in links" :key="link.title">
<a
href="#0"
class="flex items-center no-underline focus:underline px-4 py-2 text-sm"
class="px-4 py-2 flex items-center no-underline text-sm focus:underline"
:class="{
'bg-gray-600 text-white hover:text-white': link.active,
'border-transparent hover:bg-gray-400': !link.active,
@ -14,7 +14,7 @@
}"
>
<svg class="h-6 w-6 fill-current" role="presentation"><use :xlink:href="`/img/icons.symbol.svg#${link.icon}`"></use></svg>
<span class="hidden lg:block lg:ml-4">{{ link.title }}</span>
<span class="hidden lg:ml-4 lg:block">{{ link.title }}</span>
</a>
</li>
</ul>

View file

@ -1,7 +1,7 @@
<template>
<div class="border-b-3 border-gray-300">
<div class="bg-white px-4 lg:px-6 py-5 border-t border-gray-200 flex justify-between items-center">
<div class="w-full md:w-auto flex flex-col">
<div class="px-4 py-5 flex justify-between items-center bg-white border-t border-gray-200 lg:px-6">
<div class="w-full flex flex-col md:w-auto">
<app-breadcrumb :application="application" :environment="environment"></app-breadcrumb>
</div>

View file

@ -1,6 +1,6 @@
<template>
<div>
<div class="fixed top-0 w-full z-30">
<div class="w-full fixed top-0 z-30">
<navbar></navbar>
<title-block>
@ -13,28 +13,28 @@
</div>
<div class="mt-48">
<div class="-mt-3 flex flex-row-reverse h-full">
<div class="flex-1 p-4 lg:p-12 ml-16 lg:ml-56 overflow-x-hidden">
<div class="-mt-3 h-full flex flex-row-reverse">
<div class="ml-16 p-4 flex-1 overflow-x-hidden lg:ml-56 lg:p-12">
<div class="mb-6">
<div class="lg:flex lg:items-baseline mb-12">
<div class="mr-16 mb-4 lg:mb-0">
<h1 class="text-4xl font-thin mb-2">Applications</h1>
<h1 class="mb-2 text-4xl font-thin">Applications</h1>
</div>
<application-display-switcher class="hidden lg:flex-1 lg:flex lg:justify-end mr-3" :mode="display" @display-changed="handleDisplay"></application-display-switcher>
<application-display-switcher class="mr-3 hidden lg:flex-1 lg:flex lg:justify-end" :mode="display" @display-changed="handleDisplay"></application-display-switcher>
<div class="lg:flex lg:flex-row-reverse justify-between items-baseline">
<div class="justify-between items-baseline lg:flex lg:flex-row-reverse">
<div class="w-full">
<form action="#">
<label for="applications" class="visuallyhidden">Filter applications</label>
<input id="applications" type="text" placeholder="Filter applications" class="w-full py-2 px-3 border border-gray-600 rounded">
<input id="applications" type="text" placeholder="Filter applications" class="py-2 px-3 w-full border border-gray-600 rounded">
</form>
</div>
</div>
</div>
</div>
<div class="flex flex-wrap -mx-3 -mb-6">
<div class="-mx-3 -mb-6 flex flex-wrap">
<application-card
v-for="application in sortedApplications"
:id="application.id"
@ -42,7 +42,7 @@
:key="application.id"
:display="display"
class="px-3 w-full"
:class="[display == 'grid' ? 'md:w-1/2 lg:w-1/3 xl:w-1/4 mb-6 flex flex-col' : '']"
:class="{ 'mb-6 flex flex-col md:w-1/2 lg:w-1/3 xl:w-1/4': display == 'grid' }"
></application-card>
</div>
</div>

View file

@ -18,10 +18,10 @@
<div class="mt-48">
<div class="-mt-3 flex flex-row-reverse h-full">
<div class="flex-1 p-4 lg:p-12 ml-16 lg:ml-56 overflow-x-hidden">
<div class="ml-16 p-4 flex-1 overflow-x-hidden lg:ml-56 lg:p-12">
<div>
<div>
<h1 class="text-4xl font-thin mb-2">Overview</h1>
<h1 class="mb-2 text-4xl font-thin">Overview</h1>
<application-tags :application="application" :types="$attrs.types"/>
</div>
@ -39,13 +39,13 @@
</div>
<div class="shadow-md overflow-hidden">
<div class="bg-white border-b-2 border-gray-300 p-3"><h2 class="text-lg">Site Health</h2></div>
<div class="bg-white p-4">
<div class="p-3 bg-white border-b-2 border-gray-300"><h2 class="text-lg">Site Health</h2></div>
<div class="p-4 bg-white">
<div class="mb-6">
<p class="text-lg font-hairline text-gray-700">Uptime monitoring</p>
</div>
<div class="text-center leading-normal mb-5">
<div class="mb-5 text-center leading-normal">
<p class="text-gray-600">
Acquia uses a specially tuned uptime monitoring solution to keep track<br class="hidden md:inline">
of whether your Drupal site is really up and running.
@ -60,47 +60,47 @@
</div>
<div class="shadow-md overflow-hidden">
<div class="bg-white border-b-2 border-gray-300 p-3"><h2 class="text-lg">Information</h2></div>
<div class="bg-white px-4 py-6">
<div class="p-3 bg-white border-b-2 border-gray-300"><h2 class="text-lg">Information</h2></div>
<div class="px-4 py-6 bg-white">
<div class="mb-6 relative">
<div class="text-xs mb-1">Git URL</div>
<div class="border border-gray-500 rounded p-3 truncate">{{ gitUrl }}</div>
<div class="mb-1 text-xs">Git URL</div>
<div class="p-3 border border-gray-500 rounded truncate">{{ gitUrl }}</div>
<div class="absolute top-0 right-0">
<button type="button" class="flex items-center text-xs text-blue-300 hover:underline focus:underline">
<svg class="h-3 w-3 fill-current mr-1" role="presentation"><use xlink:href="/img/icons.symbol.svg#actions__copy"></use></svg>
<svg class="mr-1 h-3 w-3 fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#actions__copy"></use></svg>
Copy <span class="visuallyhidden">Git URL to your clipboard</span>
</button>
</div>
</div>
<div class="mb-6 relative">
<div class="text-xs mb-1">SSH URL</div>
<div class="border border-gray-500 rounded p-3 truncate">{{ sshUrl }}</div>
<div class="mb-1 text-xs">SSH URL</div>
<div class="p-3 border border-gray-500 rounded truncate">{{ sshUrl }}</div>
<div class="absolute top-0 right-0">
<button type="button" class="flex items-center text-xs text-blue-300 hover:underline focus:underline">
<svg class="h-3 w-3 fill-current mr-1" role="presentation"><use xlink:href="/img/icons.symbol.svg#actions__copy"></use></svg>
<svg class="mr-1 h-3 w-3 fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#actions__copy"></use></svg>
Copy <span class="visuallyhidden">SSH URL to your clipboard</span>
</button>
</div>
</div>
<div class="flex flex-wrap -mx-4 -mb-4 lg:-mb-6">
<div class="w-full lg:w-1/2 px-4 mb-4 lg:mb-6">
<div class="-mx-4 -mb-4 flex flex-wrap lg:-mb-6">
<div class="mb-4 px-4 w-full lg:w-1/2 lg:mb-6">
<div class="mb-1 text-xs text-gray-600">IP Address</div>
<div>1.2.3.4</div>
</div>
<div class="w-full lg:w-1/2 px-4 mb-4 lg:mb-6">
<div class="mb-4 px-4 w-full lg:w-1/2 lg:mb-6">
<div class="mb-1 text-xs text-gray-600">Region</div>
<div>eu-west-1</div>
</div>
<div class="w-full lg:w-1/2 px-4 mb-4 lg:mb-6">
<div class="mb-4 px-4 w-full lg:w-1/2 lg:mb-6">
<div class="mb-1 text-xs text-gray-600">PHP version</div>
<div v-text="phpVersion"></div>
</div>
<div class="w-full lg:w-1/2 px-4 mb-4 lg:mb-6">
<div class="mb-4 px-4 w-full lg:w-1/2 lg:mb-6">
<div class="mb-1 text-xs text-gray-600">Live development mode</div>
<div>Off</div>
</div>
@ -135,11 +135,6 @@ import ActionCards from '@/components/Environment/ActionCards'
import ApplicationTags from '@/components/Application/ApplicationTags'
export default {
mounted () {
// console.log(this.$attrs)
// console.log(this.$props)
},
components: {
ActionCards,
ApplicationTags

View file

@ -1,13 +1,13 @@
<template>
<div>
<div class="fixed top-0 w-full z-30">
<div class="w-full fixed top-0 z-30">
<navbar></navbar>
<title-block :application="application">
<template slot="right">
<div class="flex items-center">
<div class="hidden md:block">
<button type="button" class="text-sm font-bold text-blue-300 uppercase py-2 px-6 border border-blue-300 hover:text-blue-400 hover:border-blue-400 focus:border-blue-400">
<button type="button" class="py-2 px-6 text-sm font-bold text-blue-300 uppercase border border-blue-300 hover:text-blue-400 hover:border-blue-400 focus:border-blue-400">
Steps to launch
</button>
</div>
@ -24,20 +24,20 @@
</div>
<div class="mt-48">
<div class="-mt-3 flex flex-row-reverse h-full">
<div class="flex-1 p-4 lg:p-12 ml-16 lg:ml-56 overflow-x-hidden">
<div class="-mt-3 h-full flex flex-row-reverse">
<div class="ml-16 p-4 flex-1 overflow-x-hidden lg:p-12 lg:ml-56">
<div class="mb-6">
<div class="lg:flex lg:items-baseline mb-2">
<div class="mb-2 lg:flex lg:items-baseline">
<div class="mr-16 mb-4 lg:mb-0">
<h1 class="text-4xl font-thin mb-2">Environments</h1>
<h1 class="mb-2 text-4xl font-thin">Environments</h1>
<application-tags :application="application" :types="$attrs.types"/>
</div>
<div class="lg:flex lg:flex-row-reverse flex-1 justify-between _bg-blue items-baseline">
<div class="flex-1 justify-between items-baseline lg:flex lg:flex-row-reverse">
<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-gray-600 rounded">
<input type="text" placeholder="Filter environments" class="py-2 px-3 w-full border border-gray-600 rounded">
</form>
</div>