diff --git a/firebase.md b/firebase.md index c8e4a38..8618c31 100644 --- a/firebase.md +++ b/firebase.md @@ -266,3 +266,99 @@ Then you can wrap the appbar in a `v-if`: v-if="!this.$store.getters.fullScreen" > ``` + +## Change default font colour + +In `_variables.scss` create a variable with the colour you want: + +```scss +$mainColor: #323947; +``` + +Then create a new class `fontColor` to apply to the router, and edit the default `theme--light` class for Vuetify to apply this colour: + +```scss +.theme--light.v-application, +.fontColor, +.theme--light.v-sheet { + color: $mainColor !important; + // color: red !important; +} +``` + +Then in `App.vue` apply the `fontColor` class to the ``: + +```html + +``` + +## Grids + + + +In addition to using the flex classes you can use the grid system. The grid system allows you to create rows and columns and use props to control how the content should be displayed. + +This playground demonstrates what `align` and `justify` can do: + + +The grid system applies to `` and you can use the following props: + +- `align` controls the y-axis. You have `start`, `center`, `end`, `baseline` and `stretch`. +- `justify` controls the x-axis. You have `start`, `center`, `end`, `space-around` and `space-between`. + +For `` only `align-self` is available. To align content on a column, or any other element like a card, you should use the same classes as in the flex system. For example: + +```html + +``` + +## Container filling whole page + +A container should be used whenever you want to use `` and ``. To make this container fill the whole page (and be able to use `align` props and flex classes) you should specify the following two props: + +- `fill-height` +- `fluid`. + +## Helper classes + +### Spacing + + + +You can use classes like `ma-2` and `pd-3` to control margin/padding in directions for any component. + +See the playground for a quick demonstration on what each one does: + + + +## Typography + +There are quite a few helper classes available to control font sizes and styles. + + + +There are two types of styles: Typography Display Classes and Style and Weight Classes. + +Examples include `.display-2` and `.font-weight-black`. + +### Replace Vuetify default font with own + +Fonts needed to replace the Roboto default: + +- Thin +- Regular +- Medium +- Light +- Condensed Light (Light) +- Bold +- Black +- italic +- Light italic +- Medium italic +- Bold italic + +If font styles dont exist then substitute them with the closest type. + diff --git a/src/App.vue b/src/App.vue index 4f1f133..f37d35e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -22,21 +22,18 @@ export default { components: { Appbar }, - data: () => ({ - video: require("./assets/videos/optical.mp4") - }) + // data: () => { + // video: require("./assets/videos/optical.mp4") + // } }; diff --git a/src/assets/fonts/Gilroy-Black.otf b/src/assets/fonts/Gilroy-Black.otf new file mode 100644 index 0000000..1a3128f Binary files /dev/null and b/src/assets/fonts/Gilroy-Black.otf differ diff --git a/src/assets/fonts/Gilroy-BoldItalic.otf b/src/assets/fonts/Gilroy-BoldItalic.otf new file mode 100644 index 0000000..cce5a2f Binary files /dev/null and b/src/assets/fonts/Gilroy-BoldItalic.otf differ diff --git a/src/assets/fonts/Gilroy-Light.otf b/src/assets/fonts/Gilroy-Light.otf new file mode 100644 index 0000000..e806e29 Binary files /dev/null and b/src/assets/fonts/Gilroy-Light.otf differ diff --git a/src/assets/fonts/Gilroy-LightItalic.otf b/src/assets/fonts/Gilroy-LightItalic.otf new file mode 100644 index 0000000..0c155da Binary files /dev/null and b/src/assets/fonts/Gilroy-LightItalic.otf differ diff --git a/src/assets/fonts/Gilroy-Medium.otf b/src/assets/fonts/Gilroy-Medium.otf new file mode 100644 index 0000000..45f97ad Binary files /dev/null and b/src/assets/fonts/Gilroy-Medium.otf differ diff --git a/src/assets/fonts/Gilroy-MediumItalic.otf b/src/assets/fonts/Gilroy-MediumItalic.otf new file mode 100644 index 0000000..b413f93 Binary files /dev/null and b/src/assets/fonts/Gilroy-MediumItalic.otf differ diff --git a/src/assets/fonts/Gilroy-RegularItalic.otf b/src/assets/fonts/Gilroy-RegularItalic.otf new file mode 100644 index 0000000..1806cf3 Binary files /dev/null and b/src/assets/fonts/Gilroy-RegularItalic.otf differ diff --git a/src/assets/fonts/Gilroy-Thin.otf b/src/assets/fonts/Gilroy-Thin.otf new file mode 100644 index 0000000..e2897de Binary files /dev/null and b/src/assets/fonts/Gilroy-Thin.otf differ diff --git a/src/components/Appbar.vue b/src/components/Appbar.vue index 17bd44e..f8d4041 100644 --- a/src/components/Appbar.vue +++ b/src/components/Appbar.vue @@ -25,9 +25,11 @@ - - Savvy Firebase Tutorial - + + + Savvy Firebase Tutorial + + @@ -48,12 +50,12 @@ export default { diff --git a/src/components/LoginFull.vue b/src/components/LoginFull.vue index f3036ac..2594805 100644 --- a/src/components/LoginFull.vue +++ b/src/components/LoginFull.vue @@ -2,13 +2,18 @@ + + +