diff --git a/src/App.vue b/src/App.vue index 57b5de4..07859fb 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,7 +3,6 @@ - @@ -15,9 +14,31 @@ @@ -26,4 +47,11 @@ export default { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } + +.content { + padding: 20px; +} +.content--secondary { + padding: 20px; +} diff --git a/src/components/Appbar.vue b/src/components/Appbar.vue index 09715c0..6897969 100644 --- a/src/components/Appbar.vue +++ b/src/components/Appbar.vue @@ -9,43 +9,29 @@ > - +

Savvy Firebase Tutorial

- - + -

- Playground -

-
- -

- Backgrounds -

-
- -

- Triangle -

-
- -

- Sign In -

-
- -

Register

-
+ +
@@ -54,8 +40,37 @@ diff --git a/src/components/AppbarOld.vue b/src/components/AppbarOld.vue new file mode 100644 index 0000000..09715c0 --- /dev/null +++ b/src/components/AppbarOld.vue @@ -0,0 +1,86 @@ + + + + + diff --git a/src/components/StripeAppbar.vue b/src/components/StripeAppbar.vue new file mode 100644 index 0000000..35ea186 --- /dev/null +++ b/src/components/StripeAppbar.vue @@ -0,0 +1,15 @@ + + + + + diff --git a/src/views/stripe-appbar/Random.vue b/src/views/stripe-appbar/Random.vue new file mode 100644 index 0000000..4f3cf86 --- /dev/null +++ b/src/views/stripe-appbar/Random.vue @@ -0,0 +1,28 @@ + + + + + diff --git a/src/views/stripe-appbar/Welcome.vue b/src/views/stripe-appbar/Welcome.vue new file mode 100644 index 0000000..68915b1 --- /dev/null +++ b/src/views/stripe-appbar/Welcome.vue @@ -0,0 +1,21 @@ + + + + + diff --git a/src/views/stripe-appbar/WelcomeSecondary.vue b/src/views/stripe-appbar/WelcomeSecondary.vue new file mode 100644 index 0000000..b25e710 --- /dev/null +++ b/src/views/stripe-appbar/WelcomeSecondary.vue @@ -0,0 +1,19 @@ + + + + + diff --git a/temp.md b/temp.md index 21080cd..15073df 100644 --- a/temp.md +++ b/temp.md @@ -121,8 +121,8 @@ You can use an svg (from envato) as a fullscreen background image. To do this yo If you do not need a transparent appbar: - Set an image - - with `position: absolute;` - - with `height: calc(100vh - 64px)` + - with `position: absolute;` + - with `height: calc(100vh - 64px)` ## Images that autoscale (zoom) @@ -147,9 +147,8 @@ Open the EPS file in Graphic. Hide and delete all the layers you don't need. Whe You can have the appbar be transparent to have a background image fullscreen. To do this you should: - Set an image - - with `position: absolute;` - - - + - with `position: absolute;` + - ## To Do @@ -198,19 +197,14 @@ Medium: `960px >< 1264px` When at width of image background, can set to right:0 to crop from left, and left:0 to crop from right. - - - - Doc setting an image as background without transparent appbar - Should show how to dynamically change height and left/right based on viewport (shorter appbar on small) +Should show how to dynamically change height and left/right based on viewport (shorter appbar on small) Doc setting an image with transparent appbar - Rather than change height you need to set top to negative +Rather than change height you need to set top to negative Have examples of both of these to refer back to^ - ## Stripe appbar menu Install with yarn: @@ -219,9 +213,79 @@ Install with yarn: Add to `main.js`: ```javascript -import Vue from 'Vue' -import VueStripeMenu from 'vue-stripe-menu' -Vue.use(VueStripeMenu) +import Vue from "Vue"; +import VueStripeMenu from "vue-stripe-menu"; +Vue.use(VueStripeMenu); // Import build styles -import 'vue-stripe-menu/dist/vue-stripe-menu.css' +import "vue-stripe-menu/dist/vue-stripe-menu.css"; ``` + +You should create Vue components for the content you want to display on hover. + +To use these in the appbar component, import the components: + +```javascript +import Welcome from "./views/stripe-appbar/Welcome"; +import WelcomeSecondary from "./views/stripe-appbar/WelcomeSecondary"; +``` + +Then you should create a menu object in `data`: + +```javascript +data() { +return { + menu: [ + { + title: "Welcome", + dropdown: "welcome", + content: Welcome, + secondary: WelcomeSecondary, + element: "span" + }, + { + title: "Welcome", + dropdown: "welcome", + content: Welcome, + secondary: WelcomeSecondary + } + ] +}; +} +``` + +Then in the html you should create the appbar layout you need: + +```html + + + +``` + +You can use css to control how the components should be rendered: + +```css +.content { + padding: 20px; +} +.content--secondary { + padding: 20px; +} +``` + +To control the width, you should set the `width` in the css in the components themsevles: + +```html + + + + Welcome Secondary Content + + + +``` + +To have two menu content sections top and bottom: use `content` and `secondary`. +To have two menu content sections side by side: create the full layout in the Vue component.