Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
WEBVTT
00:01.080 --> 00:06.570
Let's simplify this project as much as possible to make it easy for us to practice the basics of Vue
00:06.570 --> 00:08.460
three on the Composition API.
00:08.610 --> 00:12.900
First of all, I just wanted to change the title, which appears in the top, which currently says Beat
00:12.900 --> 00:13.230
Up.
00:13.470 --> 00:23.280
So I'm going to jump to index dot HTML and change the text in this title tag to view composition API
00:23.280 --> 00:24.150
basics.
00:24.960 --> 00:27.990
Save that and we see that update instantly.
00:28.530 --> 00:33.000
I'm going to close that and now let's simplify our pages or our views.
00:33.630 --> 00:38.730
Currently, we just have two pages of views, the home view and the about view.
00:39.000 --> 00:40.890
Let's simplify the home view first.
00:41.160 --> 00:46.230
So I'm going to go to source on views and hope you don't view.
00:46.590 --> 00:50.760
It's going to stop this message appearing by choosing Don't Show Again and I'll just close that.
00:50.760 --> 00:53.850
And sometimes I'm going to be hiding the sidebar here.
00:54.030 --> 01:00.120
If you want to hide it, you can go to view an appearance, toggle this show sidebar, or you can use
01:00.120 --> 01:01.380
the keyboard shortcut.
01:02.220 --> 01:03.660
So we're just going to hide that for now.
01:04.080 --> 01:05.520
I'm going to remove this script.
01:05.850 --> 01:11.790
I'm going to remove everything inside the template tags and just add a depth with a class of home.
01:12.450 --> 01:14.850
Inside that I'll add a one heading.
01:15.490 --> 01:22.020
I just put the text home in there, save that we can see that's updated that I'm going to copy this
01:22.020 --> 01:26.220
code and jump to about view view in the same folder.
01:26.850 --> 01:35.220
I'll just paste over everything in here and I'll change the class to about change the text in the heading
01:35.220 --> 01:39.780
to about as well save that we now have two really simple views.
01:39.960 --> 01:42.660
Now let's get rid of all this stuff at the top and that's it.
01:42.660 --> 01:47.640
Our view component, which is update view and source update view.
01:47.640 --> 01:52.290
So I'm going to open that up, hide the sidebar, and I'm actually going to hide the terminal as well.
01:52.410 --> 01:54.720
We don't need to see the terminal most of the time.
01:55.200 --> 01:59.670
All I really want in our layout is this navigation here so that we can get to our pages.
01:59.820 --> 02:04.170
And that's this knop element here with these two routes link components.
02:04.170 --> 02:09.960
So I'm going to copy this now element and both of these routes are links and then I'm going to select
02:09.960 --> 02:10.920
the whole of this header.
02:11.490 --> 02:13.050
I just paste those over that.
02:14.320 --> 02:15.850
Fix the indentation.
02:15.880 --> 02:21.130
We do need to make sure we leave this root to view component because they allow us to display our actual
02:21.130 --> 02:23.440
views, whole view and our about view.
02:24.400 --> 02:25.090
I'll save that.
02:25.900 --> 02:31.240
This is looking nice and simple and I'm going to remove the script section.
02:31.610 --> 02:36.370
Save that and I'm going to remove some of these styles, but not all of them, because some of them
02:36.370 --> 02:37.120
look quite pretty.
02:37.120 --> 02:43.410
Or if we drag this out, we can see that beyond a certain resolution, everything gets moved around.
02:43.450 --> 02:46.070
So I'm just going to remove these tiles which are doing that.
02:46.090 --> 02:55.180
So if we scroll down this style section, we can see this media query here with the minute set to one,
02:55.280 --> 02:56.350
two, four pixels.
02:57.520 --> 03:02.380
I was going to collapse up by clicking this little arrow next to that and then select all of that media
03:02.380 --> 03:02.890
query.
03:03.340 --> 03:05.230
I'll just delete that and save it.
03:05.230 --> 03:10.180
And now if we increase the width of the browser should just stay the same, which is we don't need any
03:10.180 --> 03:12.400
of the components in the components folder now.
03:12.490 --> 03:15.580
So I'm going to jump to source and components.
03:16.210 --> 03:21.290
I'm going to select everything in this components folder by clicking on the first item, holding down
03:21.310 --> 03:25.390
shift and clicking the bottom, and then right click delete.
03:26.830 --> 03:29.410
Get rid of those and we see this error.
03:29.410 --> 03:32.920
But if we just reload the page, then the error disappears.
03:33.010 --> 03:38.260
And we now have a super simple app that we can use to get started learning the basics of Vue three and
03:38.260 --> 03:39.550
the Composition API.
03:39.760 --> 03:42.250
So let's get started learning the basics.5040
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.