Initial import
This commit is contained in:
204
test/layout-google-contact.html
Normal file
204
test/layout-google-contact.html
Normal file
@@ -0,0 +1,204 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Test Vue</title>
|
||||
<link rel="stylesheet" href="../libs/vendor/css/google-fonts.css">
|
||||
<link rel="stylesheet" href="../libs/vendor/css/vuetify.min.css">
|
||||
<style>
|
||||
[v-cloak] {
|
||||
display: none
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div v-cloak id="app">
|
||||
|
||||
<v-app id="inspire">
|
||||
<v-navigation-drawer :clipped="$vuetify.breakpoint.lgAndUp" v-model="drawer" fixed app>
|
||||
<v-list dense>
|
||||
<template v-for="item in items">
|
||||
<v-layout v-if="item.heading" :key="item.heading" row align-center>
|
||||
<v-flex xs6>
|
||||
<v-subheader v-if="item.heading">
|
||||
{{ item.heading }}
|
||||
</v-subheader>
|
||||
</v-flex>
|
||||
<v-flex xs6 class="text-xs-center">
|
||||
<a href="#!" class="body-2 black--text">EDIT</a>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
<v-list-group v-else-if="item.children" v-model="item.model" :key="item.text" :prepend-icon="item.model ? item.icon : item['icon-alt']"
|
||||
append-icon="">
|
||||
<v-list-tile slot="activator">
|
||||
<v-list-tile-content>
|
||||
<v-list-tile-title>
|
||||
{{ item.text }}
|
||||
</v-list-tile-title>
|
||||
</v-list-tile-content>
|
||||
</v-list-tile>
|
||||
<v-list-tile v-for="(child, i) in item.children" :key="i" @click="">
|
||||
<v-list-tile-action v-if="child.icon">
|
||||
<v-icon>{{ child.icon }}</v-icon>
|
||||
</v-list-tile-action>
|
||||
<v-list-tile-content>
|
||||
<v-list-tile-title>
|
||||
{{ child.text }}
|
||||
</v-list-tile-title>
|
||||
</v-list-tile-content>
|
||||
</v-list-tile>
|
||||
</v-list-group>
|
||||
<v-list-tile v-else :key="item.text" @click="">
|
||||
<v-list-tile-action>
|
||||
<v-icon>{{ item.icon }}</v-icon>
|
||||
</v-list-tile-action>
|
||||
<v-list-tile-content>
|
||||
<v-list-tile-title>
|
||||
{{ item.text }}
|
||||
</v-list-tile-title>
|
||||
</v-list-tile-content>
|
||||
</v-list-tile>
|
||||
</template>
|
||||
</v-list>
|
||||
</v-navigation-drawer>
|
||||
<v-toolbar :clipped-left="$vuetify.breakpoint.lgAndUp" color="blue darken-3" dark app fixed>
|
||||
<v-toolbar-title style="width: 300px" class="ml-0 pl-3">
|
||||
<v-toolbar-side-icon @click.stop="drawer = !drawer"></v-toolbar-side-icon>
|
||||
<span class="hidden-sm-and-down">Google Contacts</span>
|
||||
</v-toolbar-title>
|
||||
<v-text-field flat solo-inverted hide-details prepend-inner-icon="search" label="Search" class="hidden-sm-and-down"></v-text-field>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn icon>
|
||||
<v-icon>apps</v-icon>
|
||||
</v-btn>
|
||||
<v-btn icon>
|
||||
<v-icon>notifications</v-icon>
|
||||
</v-btn>
|
||||
<v-btn icon large>
|
||||
<v-avatar size="32px" tile>
|
||||
<img src="https://cdn.vuetifyjs.com/images/logos/logo.svg" alt="Vuetify">
|
||||
</v-avatar>
|
||||
</v-btn>
|
||||
</v-toolbar>
|
||||
<v-content>
|
||||
<v-container fluid fill-height>
|
||||
<v-layout justify-center align-center>
|
||||
<v-tooltip right>
|
||||
<v-btn slot="activator" :href="source" icon large target="_blank">
|
||||
<v-icon large>code</v-icon>
|
||||
</v-btn>
|
||||
<span>Source</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip right>
|
||||
<v-btn slot="activator" icon large href="https://codepen.io/johnjleider/pen/EQOYVV" target="_blank">
|
||||
<v-icon large>mdi-codepen</v-icon>
|
||||
</v-btn>
|
||||
<span>Codepen</span>
|
||||
</v-tooltip>
|
||||
</v-layout>
|
||||
</v-container>
|
||||
</v-content>
|
||||
<v-btn fab bottom right color="pink" dark fixed @click.stop="dialog = !dialog">
|
||||
<v-icon>add</v-icon>
|
||||
</v-btn>
|
||||
<v-dialog v-model="dialog" width="800px">
|
||||
<v-card>
|
||||
<v-card-title class="grey lighten-4 py-4 title">
|
||||
Create contact
|
||||
</v-card-title>
|
||||
<v-container grid-list-sm class="pa-4">
|
||||
<v-layout row wrap>
|
||||
<v-flex xs12 align-center justify-space-between>
|
||||
<v-layout align-center>
|
||||
<v-avatar size="40px" class="mr-3">
|
||||
<img src="//ssl.gstatic.com/s2/oz/images/sge/grey_silhouette.png" alt="">
|
||||
</v-avatar>
|
||||
<v-text-field placeholder="Name"></v-text-field>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
<v-flex xs6>
|
||||
<v-text-field prepend-icon="business" placeholder="Company"></v-text-field>
|
||||
</v-flex>
|
||||
<v-flex xs6>
|
||||
<v-text-field placeholder="Job title"></v-text-field>
|
||||
</v-flex>
|
||||
<v-flex xs12>
|
||||
<v-text-field prepend-icon="mail" placeholder="Email"></v-text-field>
|
||||
</v-flex>
|
||||
<v-flex xs12>
|
||||
<v-text-field type="tel" prepend-icon="phone" placeholder="(000) 000 - 0000" mask="phone"></v-text-field>
|
||||
</v-flex>
|
||||
<v-flex xs12>
|
||||
<v-text-field prepend-icon="notes" placeholder="Notes"></v-text-field>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-container>
|
||||
<v-card-actions>
|
||||
<v-btn flat color="primary">More</v-btn>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn flat color="primary" @click="dialog = false">Cancel</v-btn>
|
||||
<v-btn flat @click="dialog = false">Save</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
</v-app>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="../libs/vendor/vue.min.js"></script>
|
||||
<script src="../libs/vendor/vuetify.js"></script>
|
||||
<!-- App Script -->
|
||||
<script>
|
||||
new Vue({
|
||||
el: '#app',
|
||||
data: {
|
||||
dialog: false,
|
||||
drawer: null,
|
||||
items: [
|
||||
{ icon: 'contacts', text: 'Contacts' },
|
||||
{ icon: 'history', text: 'Frequently contacted' },
|
||||
{ icon: 'content_copy', text: 'Duplicates' },
|
||||
{
|
||||
icon: 'keyboard_arrow_up',
|
||||
'icon-alt': 'keyboard_arrow_down',
|
||||
text: 'Labels',
|
||||
model: true,
|
||||
children: [
|
||||
{ icon: 'add', text: 'Create label' }
|
||||
]
|
||||
},
|
||||
{
|
||||
icon: 'keyboard_arrow_up',
|
||||
'icon-alt': 'keyboard_arrow_down',
|
||||
text: 'More',
|
||||
model: false,
|
||||
children: [
|
||||
{ text: 'Import' },
|
||||
{ text: 'Export' },
|
||||
{ text: 'Print' },
|
||||
{ text: 'Undo changes' },
|
||||
{ text: 'Other contacts' }
|
||||
]
|
||||
},
|
||||
{ icon: 'settings', text: 'Settings' },
|
||||
{ icon: 'chat_bubble', text: 'Send feedback' },
|
||||
{ icon: 'help', text: 'Help' },
|
||||
{ icon: 'phonelink', text: 'App downloads' },
|
||||
{ icon: 'keyboard', text: 'Go to the old version' }
|
||||
]
|
||||
|
||||
},
|
||||
props: {
|
||||
source: String
|
||||
}
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user