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-bartik/src/App.vue

110 lines
3.6 KiB
Vue
Raw Normal View History

2018-11-19 19:54:46 +00:00
<template>
<div id="app" class="min-h-screen font-sans bg-black text-white text-sm leading-normal">
2018-12-20 01:39:33 +00:00
<skip-link></skip-link>
2018-12-20 00:32:16 +00:00
<header class="bg-blue-300">
2019-05-07 18:10:58 +01:00
<div class="py-4 text-white">
<div id="header" class="xl:max-w-6xl mx-auto px-4 relative">
<div class="flex flex-col-reverse">
<div class="flex items-center">
2019-06-11 23:13:46 +01:00
<img src="@/assets/img/logo.svg" alt="" class="mr-4">
2019-05-07 18:10:58 +01:00
<div class="text-2xl">
<a href="#0">{{ title }}</a>
</div>
</div>
<div class="text-sm flex justify-end">
<a href="#0">Log in</a>
</div>
</div>
</div>
</div>
2019-05-07 18:10:58 +01:00
<main-menu></main-menu>
</header>
2019-05-07 18:10:58 +01:00
<div class="bg-white text-black">
<div class="max-w-6xl mx-auto px-4 py-6">
2019-05-07 18:10:58 +01:00
<drupal-message type="status">
<p>
A Bartik clone, built with
<a href="https://vuejs.org" class="text-blue-300 hover:text-blue-200 no-underline border-b border-dotted hover:border-solid border-blue-300">Vue.js</a>
and <a href="https://tailwindcss.com" class="text-blue-300 hover:text-blue-200 no-underline border-b border-dotted hover:border-solid border-blue-300">Tailwind CSS</a>.
</p>
</drupal-message>
<div class="md:flex md:flex-row-reverse -mx-6">
<main id="main" class="flex-1 px-6 pb-8 lg:pb-12">
2019-05-07 18:10:58 +01:00
<div class="font-serif">
<h1 class="text-3xl font-normal leading-tight mb-1">Welcome to {{ title }}</h1>
<p>No front page content has been created yet.</p>
<p>Follow the <a href="#0">User Guide</a> to start building your site.</p>
2019-05-07 18:10:58 +01:00
</div>
2019-06-11 23:13:46 +01:00
<div class="mt-6 lg:mt-10"><a href="#0"><img src="@/assets/img/feed.svg" alt=""></a></div>
</main>
2019-05-07 18:10:58 +01:00
<aside class="w-full md:w-1/3 lg:w-1/4 px-6 -mb-4">
2019-05-07 18:10:58 +01:00
<sidebar-block>
<h2 class="font-serif font-normal text-base text-grey-600 border-b border-solid border-grey-300 mb-3">Search</h2>
<div>
<form action="#" class="flex">
<input type="text" class="border border-solid border-grey-400 py-1 px-2 w-full xl:w-auto">
<button type="submit" class="bg-grey-200 px-3 rounded-full border-b border-solid border-grey-500 ml-2 flex-none">
2019-06-11 23:13:46 +01:00
<img src="@/assets/img/search.svg" class="block">
2019-05-07 18:10:58 +01:00
</button>
</form>
</div>
</sidebar-block>
</aside>
2019-05-07 18:10:58 +01:00
</div>
</div>
</div>
<footer id="footer" class="bg-black text-white text-xs">
<div class="max-w-6xl mx-auto px-4 pt-16 pb-8 bg-grey-700">
<div class="border-t border-solid border-grey-600 pt-6">
<div>
2019-05-07 18:10:58 +01:00
<p><a href="#0">Contact</a></p>
</div>
<div class="mt-6">
2019-05-07 18:10:58 +01:00
<p>
A clone of <a href="https://www.drupal.org">Drupal</a>s default theme (Bartik).
Built by <a href="https://www.oliverdavies.uk">Oliver Davies</a>
using <a href="https://vuejs.org">Vue.js</a>
and <a href="https://tailwindcss.com">Tailwind CSS</a>.
</p>
</div>
</div>
</div>
</footer>
2018-11-19 19:54:46 +00:00
</div>
</template>
<script>
2019-05-07 18:10:58 +01:00
import MainMenu from '@/components/MainMenu'
import SidebarBlock from '@/components/SidebarBlock'
import SkipLink from '@/components/SkipLink'
2018-11-19 19:54:46 +00:00
export default {
name: 'app',
2019-05-07 18:10:58 +01:00
2018-11-19 19:54:46 +00:00
components: {
2019-05-07 18:10:58 +01:00
MainMenu,
SidebarBlock,
SkipLink
},
data () {
return {
title: 'Rebuilding Bartik'
}
2018-11-19 19:54:46 +00:00
}
}
</script>
2019-06-11 23:13:46 +01:00
<style src="@/assets/css/tailwind.css"/>