You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

HelloWorld.vue 7.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <template>
  2. <v-app id="inspire">
  3. <v-navigation-drawer
  4. v-model="drawer"
  5. :clipped="$vuetify.breakpoint.lgAndUp"
  6. app
  7. >
  8. <v-list dense>
  9. <template v-for="item in items">
  10. <v-row v-if="item.heading" :key="item.heading" align="center">
  11. <v-col cols="6">
  12. <v-subheader v-if="item.heading">
  13. {{ item.heading }}
  14. </v-subheader>
  15. </v-col>
  16. <v-col cols="6" class="text-center">
  17. <a href="#!" class="body-2 black--text">EDIT</a>
  18. </v-col>
  19. </v-row>
  20. <v-list-group
  21. v-else-if="item.children"
  22. :key="item.text"
  23. v-model="item.model"
  24. :prepend-icon="item.model ? item.icon : item['icon-alt']"
  25. append-icon=""
  26. >
  27. <template v-slot:activator>
  28. <v-list-item-content>
  29. <v-list-item-title>
  30. {{ item.text }}
  31. </v-list-item-title>
  32. </v-list-item-content>
  33. </template>
  34. <v-list-item v-for="(child, i) in item.children" :key="i" link>
  35. <v-list-item-action v-if="child.icon">
  36. <v-icon>{{ child.icon }}</v-icon>
  37. </v-list-item-action>
  38. <v-list-item-content>
  39. <v-list-item-title>
  40. {{ child.text }}
  41. </v-list-item-title>
  42. </v-list-item-content>
  43. </v-list-item>
  44. </v-list-group>
  45. <v-list-item v-else :key="item.text" link>
  46. <v-list-item-action>
  47. <v-icon>{{ item.icon }}</v-icon>
  48. </v-list-item-action>
  49. <v-list-item-content>
  50. <v-list-item-title>
  51. {{ item.text }}
  52. </v-list-item-title>
  53. </v-list-item-content>
  54. </v-list-item>
  55. </template>
  56. </v-list>
  57. </v-navigation-drawer>
  58. <v-app-bar :clipped-left="$vuetify.breakpoint.lgAndUp" app color="red" dark>
  59. <v-app-bar-nav-icon @click.stop="drawer = !drawer" />
  60. <v-btn to="/about" text color="blue">
  61. <span class="mr-2">Panda</span>
  62. <!-- <v-icon>mdi-open-in-new</v-icon> -->
  63. </v-btn>
  64. <v-btn to="/home" text color="blue">
  65. <span class="mr-2">Home</span>
  66. <!-- <v-icon>mdi-open-in-new</v-icon> -->
  67. </v-btn>
  68. <v-btn to="/HelloWorld" text color="blue">
  69. <span class="mr-2">HelloWorld</span>
  70. <!-- <v-icon>mdi-open-in-new</v-icon> -->
  71. </v-btn>
  72. <v-btn to="/apply" text color="blue">
  73. <span class="mr-2">Apply</span>
  74. <!-- <v-icon>mdi-open-in-new</v-icon> -->
  75. </v-btn>
  76. <v-toolbar-title style="width: 300px" class="ml-0 pl-4">
  77. <span class="hidden-sm-and-down">Google Contacts</span>
  78. </v-toolbar-title>
  79. <v-text-field
  80. flat
  81. solo-inverted
  82. hide-details
  83. prepend-inner-icon="mdi-magnify"
  84. label="Search"
  85. class="hidden-sm-and-down"
  86. />
  87. <v-spacer />
  88. <v-btn icon>
  89. <v-icon>mdi-apps</v-icon>
  90. </v-btn>
  91. <v-btn icon>
  92. <v-icon>mdi-bell</v-icon>
  93. </v-btn>
  94. <v-btn icon large>
  95. <v-avatar size="32px" item>
  96. <v-img
  97. src="https://cdn.vuetifyjs.com/images/logos/logo.svg"
  98. alt="Vuetify"
  99. /></v-avatar>
  100. </v-btn>
  101. </v-app-bar>
  102. <v-content>
  103. <!-- <About /> -->
  104. </v-content>
  105. <!-- <v-content>
  106. <v-container
  107. class="fill-height"
  108. fluid
  109. >
  110. <v-row
  111. align="center"
  112. justify="center"
  113. >
  114. <v-tooltip right>
  115. <template v-slot:activator="{ on }">
  116. <v-btn
  117. :href="source"
  118. icon
  119. large
  120. target="_blank"
  121. v-on="on"
  122. >
  123. <v-icon large>mdi-code-tags</v-icon>
  124. </v-btn>
  125. </template>
  126. <span>Source</span>
  127. </v-tooltip>
  128. <v-tooltip right>
  129. <template v-slot:activator="{ on }">
  130. <v-btn
  131. icon
  132. large
  133. href="https://codepen.io/johnjleider/pen/MNYLdL"
  134. target="_blank"
  135. v-on="on"
  136. >
  137. <v-icon large>mdi-codepen</v-icon>
  138. </v-btn>
  139. </template>
  140. <span>Codepen</span>
  141. </v-tooltip>
  142. </v-row>
  143. </v-container>
  144. </v-content> -->
  145. <v-btn bottom color="pink" dark fab fixed right @click="dialog = !dialog">
  146. <v-icon>mdi-plus</v-icon>
  147. </v-btn>
  148. <!-- // --------------------------------------------------------------------------------------- // -->
  149. <v-dialog v-model="dialog" width="800px">
  150. <v-card>
  151. <v-card-title class="grey darken-2">
  152. Create contact
  153. </v-card-title>
  154. <v-container>
  155. <v-row class="mx-2">
  156. <v-col class="align-center justify-space-between" cols="12">
  157. <v-row align="center" class="mr-0">
  158. <v-avatar size="40px" class="mx-3">
  159. <img
  160. src="//ssl.gstatic.com/s2/oz/images/sge/grey_silhouette.png"
  161. alt=""
  162. />
  163. </v-avatar>
  164. <v-text-field placeholder="Name" />
  165. </v-row>
  166. </v-col>
  167. <v-col cols="6">
  168. <v-text-field
  169. prepend-icon="mdi-account-card-details-outline"
  170. placeholder="Company"
  171. />
  172. </v-col>
  173. <v-col cols="6">
  174. <v-text-field placeholder="Job title" />
  175. </v-col>
  176. <v-col cols="12">
  177. <v-text-field prepend-icon="mdi-mail" placeholder="Email" />
  178. </v-col>
  179. <v-col cols="12">
  180. <v-text-field
  181. type="tel"
  182. prepend-icon="mdi-phone"
  183. placeholder="(000) 000 - 0000"
  184. />
  185. </v-col>
  186. <v-col cols="12">
  187. <v-text-field prepend-icon="mdi-text" placeholder="Notes" />
  188. </v-col>
  189. </v-row>
  190. </v-container>
  191. <v-card-actions>
  192. <v-btn text color="primary">More</v-btn>
  193. <v-spacer />
  194. <v-btn text color="primary" @click="dialog = false">Cancel</v-btn>
  195. <v-btn text @click="dialog = false">Save</v-btn>
  196. </v-card-actions>
  197. </v-card>
  198. </v-dialog>
  199. </v-app>
  200. </template>
  201. <script>
  202. import About from "@/views/About";
  203. export default {
  204. name: "Apply",
  205. components: {
  206. About
  207. },
  208. props: {
  209. source: String
  210. },
  211. data: () => ({
  212. dialog: false,
  213. drawer: null,
  214. items: [
  215. { icon: "mdi-contacts", text: "Contacts" },
  216. { icon: "mdi-history", text: "Frequently contacted" },
  217. { icon: "mdi-content-copy", text: "Duplicates" },
  218. {
  219. icon: "mdi-chevron-up",
  220. "icon-alt": "mdi-chevron-down",
  221. text: "Labels",
  222. model: true,
  223. children: [{ icon: "mdi-plus", text: "Create label" }]
  224. },
  225. {
  226. icon: "mdi-chevron-up",
  227. "icon-alt": "mdi-chevron-down",
  228. text: "More",
  229. model: false,
  230. children: [
  231. { text: "Import" },
  232. { text: "Export" },
  233. { text: "Print" },
  234. { text: "Undo changes" },
  235. { text: "Other contacts" }
  236. ]
  237. },
  238. { icon: "mdi-settings", text: "Settings" },
  239. { icon: "mdi-message", text: "Send feedback" },
  240. { icon: "mdi-help-circle", text: "Help" },
  241. { icon: "mdi-cellphone-link", text: "App downloads" },
  242. { icon: "mdi-keyboard", text: "Go to the old version" }
  243. ]
  244. })
  245. };
  246. </script>