Vuetify Tutorial #3 - Vuetify Basics

Net Ninja · Beginner ·🛠️ AI Tools & Apps ·7y ago

Key Takeaways

Explains the basics of Vuetify and its components

Full Transcript

alright then so remember that beautify is a UI component framework and we use those UI components to structure our code much like this right here we can see all of these different custom UI components now first of all very important at the top is this v app this is the root component we use in from of the UT file and that's important it has to be the root beautifly component and all your other beautified components should be nested inside that whether inside some kind of other route which is nested in here or directly like these things and that's because this is a bit of a mounting point for different beautified components okay now then we have this V toolbar next and that in the browser looks a bit like this but if we inspect then we're not going to see a V toolbar because that's not an HTML element what we actually get is a now first of all and then a div with a class of V - toolbar so this thing right here this V - toolbar this is a beautified component much like we create our own components over here beautify in its library has its own components and when we load these components in our template those components render some HTML ok so that HTML is what we see right here and not only does it render some HTML it also comes baked with some different functionality now how can we access that different functionality well we use props we can add props to these components much like we add props to our own components for example I could give a prop right here to the V toolbar of dark let's just do that and save it and then if we take a look at this we can see we now have a dark toolbar now props don't always need values assigned to them so this one for example doesn't say dark equals something it's just a prop name and that controls the functionality of this toolbar component it makes it dark we can also use the keyword light here instead but that is the default value if I do this then we're gonna see its light but that is what it was like to begin with we don't need to explicitly write this ok so we can also add different props which have values for example I could say height this is a prop that we can add to the toolbar and this height could be 150 so save that and view this in a browser and now notice this is a gigantic toolbar so this is one instance where we're adding a prop to the toolbar which has a value okay now much like materialized CSS we also get a load of classes that we can use as well in beautifying for example we could say class equals and then give this a class of indigo and what that will do is give this a background color of indigo and we can see that right here so notice that the text is still black and it doesn't really stand down so we could add another class for white text or what we could do is add back in that dark prop and this says hey we want to use the dark theme for the toolbar and it calls it black by default and it calls the text white but then what we're doing is overriding the black background with this indigo class so if we save that we should just get the light text the white text because of the dark prop and we still get that into your background alright so this is the crux of these different components we can add different props to them like this and we can add different classes to them to give them extra styling alright notice as well we also have this app prop right here and what that does is make our navbar right here our toolbar fixed at the top of the page so if I scroll down it's not going off the page it's coming down with us it makes it fixed if I delete this then preview in a browser again then it shouldn't be fixed at the top all right so all of these different props and classes do different things to these different beautified components now in beautify there are a lot of different components and each component can have a lot of different props so it's not wise to remember everything and I don't recommend that you do remember all of these different components and props unless you're using a copper mine but what you should do is check out the documentation right here it's actually really thorough go to beautify Jay s comm and click get started and I suggest this becomes your new best friend while you're learning beautify what you can do is scroll down all of the different components down here or you can just search with something like to your bar for example and then click on that and then over here it's going to give you some code examples of how to set up this and also we can see these different props right here so all of these things we've seen up and we've seen dark down here and height if we go down should be here as well all of these different props can be added to the toolbar component and they all do different things now like I said there are tons of different components and tons of different props and I'm not going to be able to cover absolutely everything inside this series so if you're unsure just always check out the documentation and see what other props you can add so what I'm gonna do now is go back and I'm going to delete a lot of this code so I'm gonna get rid of all of this stuff right here so we have now v-app remember that needs to stay there and that needs to be the root component for us we're going to keep that and inside v up I'm going to keep v content this is typically where we place all our actual page content so the nav bar might be above the footer might be below but all of the page content should be inside v content and what I'm gonna do is delete hello world we don't want that component anymore I'm gonna replace this with router - view because when we go to a certain route this is where I would like that route component to load so for example if we go to forward slash it's going to load up the home component if we go to forward slash about it's going to load up the about component and it does that because when we started this view project we wanted to set up the router and it's already created this router file for us so right here we're saying the path is forward slash for the home component and the path is forward slash about for the about component this right here is lazy loading I'm not going to cover that right now that's a view thing but essentially it does the same thing it just loads up the about component we go to forward-slash about so those now are gonna get dunked in here those components when we go to those routes okay so we no longer need hello world right here and we no longer need to register it right here either so let's save that I'm also gonna delete the hello world component so let me click that and delete it and then if we go to views now we can see we just have the whole and about again inside home we don't need hello world so let's get rid of that and let's get rid of the import as well and scoot this back in a little and here we don't need hello world either what I'm going to do is a simple template just a deer for the class of home and then inside that I'll do an h1 which says home page and save that and then inside about dot view that is fine as well we'll keep that as ease so now we've deleted all of this extra component stuff right here and inside these two here so these are the three components we have if we now go to forward slash on its own we get the home page and if we go to fold slash about we get the about page none of that beautify stuff is here anymore we just have the app which is the route beautify component and V content which is surrounding the route of view this is typically what we do okay so now we've got the basics out of the way let's start in the next video and take a look at how we can manipulate text and colors

Original Description

Hey all, in this Vuetify tutorial I'll explain the basics of Vuetify and we can use it's components to output stylized sections of our website. We'll also set-up the rest of our project ready for the rest of the playlist. VUE & FIREBASE FULL COURSE - https://www.udemy.com/build-web-apps-with-vuejs-firebase/?couponCode=NINJAYT18 Vue JS free course - https://www.youtube.com/playlist?list=PL4cUxeGkcC9gQcYgjhBoeQH7wiAyZNrYa Vue CLI 3 tutorial - https://www.youtube.com/playlist?list=PL4cUxeGkcC9iCKx06qSncuvEPZ7x1UnKD ---------------------------------------- 🐱‍💻 🐱‍💻 Course Links: + Course files - https://github.com/iamshaunjp/vuetify-playlist + VS Code editor - https://code.visualstudio.com/ 🤑🤑 Donate + https://www.paypal.me/thenetninja 🎓🎓 Find me on Udemy + https://www.udemy.com/user/47fd83f6-5e4a-4e87-a0f0-519ac51f91b6/
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Net Ninja · Net Ninja · 0 of 60

← Previous Next →
1 Regular Expressions (RegEx) Tutorial #14 - Matching a Username
Regular Expressions (RegEx) Tutorial #14 - Matching a Username
Net Ninja
2 Regular Expressions (RegEx) Tutorial #15 - Email RegEx Pattern
Regular Expressions (RegEx) Tutorial #15 - Email RegEx Pattern
Net Ninja
3 Regular Expressions (RegEx) Tutorial #16 - Finishing Touches
Regular Expressions (RegEx) Tutorial #16 - Finishing Touches
Net Ninja
4 GraphQL Tutorial #1 - Introduction to GraphQL
GraphQL Tutorial #1 - Introduction to GraphQL
Net Ninja
5 GraphQL Tutorial #2 - A Birdseye View of GraphQL
GraphQL Tutorial #2 - A Birdseye View of GraphQL
Net Ninja
6 GraphQL Tutorial #3 - Project (stack) Overview
GraphQL Tutorial #3 - Project (stack) Overview
Net Ninja
7 GraphQL Tutorial #4 - Making Queries (front-end preview)
GraphQL Tutorial #4 - Making Queries (front-end preview)
Net Ninja
8 GraphQL Tutorial #5 - Express App Setup
GraphQL Tutorial #5 - Express App Setup
Net Ninja
9 GraphQL Tutorial #6 - Setting up GraphQL
GraphQL Tutorial #6 - Setting up GraphQL
Net Ninja
10 GraphQL Tutorial #7 - GraphQL Schema
GraphQL Tutorial #7 - GraphQL Schema
Net Ninja
11 GraphQL Tutorial #8 - Root Query
GraphQL Tutorial #8 - Root Query
Net Ninja
12 GraphQL Tutorial #9 - The Resolve Function
GraphQL Tutorial #9 - The Resolve Function
Net Ninja
13 GraphQL Tutorial #10 - Testing Queries in Graphiql
GraphQL Tutorial #10 - Testing Queries in Graphiql
Net Ninja
14 GraphQL Tutorial #11 - GraphQL ID Type
GraphQL Tutorial #11 - GraphQL ID Type
Net Ninja
15 GraphQL Tutorial #12 - Author Type
GraphQL Tutorial #12 - Author Type
Net Ninja
16 GraphQL Tutorial #13 - Type Relations
GraphQL Tutorial #13 - Type Relations
Net Ninja
17 GraphQL Tutorial #14 - GraphQL Lists
GraphQL Tutorial #14 - GraphQL Lists
Net Ninja
18 GraphQL Tutorial #15 - More on Root Queries
GraphQL Tutorial #15 - More on Root Queries
Net Ninja
19 GraphQL Tutorial #16 - Connecting to mLab
GraphQL Tutorial #16 - Connecting to mLab
Net Ninja
20 GraphQL Tutorial #17 - Mongoose Models
GraphQL Tutorial #17 - Mongoose Models
Net Ninja
21 GraphQL Tutorial #18 - Mutations
GraphQL Tutorial #18 - Mutations
Net Ninja
22 GraphQL Tutorial #19 - More on Mutations
GraphQL Tutorial #19 - More on Mutations
Net Ninja
23 GraphQL Tutorial #20 - Updating the Resolve Functions
GraphQL Tutorial #20 - Updating the Resolve Functions
Net Ninja
24 GraphQL Tutorial #21 - GraphQL NonNull
GraphQL Tutorial #21 - GraphQL NonNull
Net Ninja
25 GraphQL Tutorial #22 - Adding a Front-end
GraphQL Tutorial #22 - Adding a Front-end
Net Ninja
26 GraphQL Tutorial #23 - Create React App
GraphQL Tutorial #23 - Create React App
Net Ninja
27 GraphQL Tutorial #24 - Book List Component
GraphQL Tutorial #24 - Book List Component
Net Ninja
28 GraphQL Tutorial #25 - Apollo Client Setup
GraphQL Tutorial #25 - Apollo Client Setup
Net Ninja
29 GraphQL Tutorial #26 - Making Queries from React
GraphQL Tutorial #26 - Making Queries from React
Net Ninja
30 GraphQL Tutorial #27 - Rendering Data in a Component
GraphQL Tutorial #27 - Rendering Data in a Component
Net Ninja
31 GraphQL Tutorial #28 - Add Book Component
GraphQL Tutorial #28 - Add Book Component
Net Ninja
32 GraphQL Tutorial #29 - External Query File
GraphQL Tutorial #29 - External Query File
Net Ninja
33 GraphQL Tutorial #30 - Updating Component State
GraphQL Tutorial #30 - Updating Component State
Net Ninja
34 GraphQL Tutorial #31 - Composing Queries
GraphQL Tutorial #31 - Composing Queries
Net Ninja
35 GraphQL Tutorial #32 - query variables
GraphQL Tutorial #32 - query variables
Net Ninja
36 GraphQL Tutorial #33 - Re-fetching Queries
GraphQL Tutorial #33 - Re-fetching Queries
Net Ninja
37 GraphQL Tutorial #34 - Book Details Component
GraphQL Tutorial #34 - Book Details Component
Net Ninja
38 GraphQL Tutorial #36 - Styling the App
GraphQL Tutorial #36 - Styling the App
Net Ninja
39 GraphQL Tutorial #35 - Making a Single Query
GraphQL Tutorial #35 - Making a Single Query
Net Ninja
40 Build Apps with Vue & Firebase - Udemy Course
Build Apps with Vue & Firebase - Udemy Course
Net Ninja
41 Updated Vue & Firebase Course (Udemy)
Updated Vue & Firebase Course (Udemy)
Net Ninja
42 Vue & Firebase Real-time Chat (Preview) #1 - Intro
Vue & Firebase Real-time Chat (Preview) #1 - Intro
Net Ninja
43 Vue & Firebase Real-time Chat (Preview) #2 - Project Structure
Vue & Firebase Real-time Chat (Preview) #2 - Project Structure
Net Ninja
44 Vue & Firebase Real-time Chat (Preview) #3 - Firestore Setup
Vue & Firebase Real-time Chat (Preview) #3 - Firestore Setup
Net Ninja
45 Vue & Firebase Real-time Chat (Preview) #4 - Welcome Screen
Vue & Firebase Real-time Chat (Preview) #4 - Welcome Screen
Net Ninja
46 Vue & Firebase Real-time Chat (Preview) #5 - Props in Routes
Vue & Firebase Real-time Chat (Preview) #5 - Props in Routes
Net Ninja
47 Vue & Firebase Real-time Chat (Preview) #6 - Route Guards
Vue & Firebase Real-time Chat (Preview) #6 - Route Guards
Net Ninja
48 Vue & Firebase Real-time Chat (Preview) #7 - Chat Window
Vue & Firebase Real-time Chat (Preview) #7 - Chat Window
Net Ninja
49 Vue & Firebase Real-time Chat (Preview) #8 - New Message Component
Vue & Firebase Real-time Chat (Preview) #8 - New Message Component
Net Ninja
50 Object Oriented JavaScript Tutorial #1 - Introduction
Object Oriented JavaScript Tutorial #1 - Introduction
Net Ninja
51 Object Oriented JavaScript Tutorial #2 - Object Literals
Object Oriented JavaScript Tutorial #2 - Object Literals
Net Ninja
52 Object Oriented JavaScript Tutorial #3 - Updating Properties
Object Oriented JavaScript Tutorial #3 - Updating Properties
Net Ninja
53 Object Oriented JavaScript Tutorial #4 - Classes
Object Oriented JavaScript Tutorial #4 - Classes
Net Ninja
54 Object Oriented JavaScript Tutorial #5  - Class Constructors
Object Oriented JavaScript Tutorial #5 - Class Constructors
Net Ninja
55 Object Oriented JavaScript Tutorial #6 - Class Methods
Object Oriented JavaScript Tutorial #6 - Class Methods
Net Ninja
56 Object Oriented JavaScript Tutorial #7 - Method Chaining
Object Oriented JavaScript Tutorial #7 - Method Chaining
Net Ninja
57 Object Oriented JavaScript Tutorial #8 - Class Inheritance
Object Oriented JavaScript Tutorial #8 - Class Inheritance
Net Ninja
58 Object Oriented JavaScript Tutorial #9 - Constructors (under the hood)
Object Oriented JavaScript Tutorial #9 - Constructors (under the hood)
Net Ninja
59 Object Oriented JavaScript Tutorial #10 - Prototype
Object Oriented JavaScript Tutorial #10 - Prototype
Net Ninja
60 Object Oriented JavaScript Tutorial #11 - Prototype Inheritance
Object Oriented JavaScript Tutorial #11 - Prototype Inheritance
Net Ninja

Related AI Lessons

Up next
AI in Care - Katie Furey, Pairly.com
The Access Group
Watch →