Skip to content

Commit 62ef3c6

Browse files
committed
done with create header
1 parent 7498d2d commit 62ef3c6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/content/create-nav-and-header.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ framework: vue
1111

1212
In this post we will create a Navigation bar and a Header component for our landing page.
1313

14-
Go head and create a navs folder and create a Nav.vue file with the following:
14+
Go head and create a `navs` folder and create a `Nav.vue` file with the following:
1515

16-
```
16+
```javascript
1717
<template>
1818
<nav
1919
class="nav border-top flex items-center justify-between flex-wrap bg-transparent p-6 z-100"
@@ -40,9 +40,9 @@ export default {
4040

4141
🌞 We have an HTML Nav bar that is is responsive and allows the user to redirect to the Home page of the site.
4242

43-
Next up create a headers folder and create a file called LandingHeader.vue with the following contents:
43+
Next up create a `headers` folder and create a file called `LandingHeader.vue` with the following contents:
4444

45-
```
45+
```javascript
4646
<template>
4747
<div class="image text-center bg-transparent " :style="urlProps">
4848
<h1 class="text-white font-display text-5xl pt-44 s:text-4xl">
@@ -79,7 +79,7 @@ export default {
7979

8080
```
8181

82-
🌞In this div have a v-if statement that accepts text to be displayed
82+
🌞In this `div` we have a `v-if` statement that accepts text to be displayed if we need it.
8383

8484
🌞 There is also a computed style prop that accepts an image url that will display a picture in the background based on the image URL.
8585

0 commit comments

Comments
 (0)