Skip to content

Commit 15c046a

Browse files
committed
some changes in the view pages - Bootstrap 5
1 parent 4b18b41 commit 15c046a

File tree

6 files changed

+116
-112
lines changed

6 files changed

+116
-112
lines changed

client/package-lock.json

Lines changed: 48 additions & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
"lint-fix": "npm run lint --fix"
1010
},
1111
"dependencies": {
12-
"@fortawesome/fontawesome-svg-core": "^1.2.32",
13-
"@fortawesome/free-solid-svg-icons": "^5.15.1",
12+
"@fortawesome/fontawesome-svg-core": "^6.1.2",
13+
"@fortawesome/free-solid-svg-icons": "^6.1.2",
1414
"@fortawesome/vue-fontawesome": "^2.0.8",
1515
"axios": "^0.21.1",
16-
"bootstrap": "^4.5.3",
16+
"bootstrap": "^5.2.0",
1717
"chokidar": "^3.5.3",
1818
"core-js": "^3.24.1",
1919
"date-fns": "^2.29.2",

client/src/App.vue

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
<template>
22
<div id="app">
33
<!-- BEGIN NAVBAR -->
4-
<nav class="navbar navbar-expand-sm bg-dark navbar-dark">
5-
<a class="navbar-brand order-md-last">Full Stack App - Azure SQL + Prisma</a>
6-
<ul class="navbar-nav mr-auto">
7-
<li class="nav-item">
8-
<router-link class="nav-link" to="/">Create New Employee</router-link>
9-
</li>
10-
<li class="nav-item">
11-
<router-link class="nav-link" to="/list-employees">List All Employees</router-link>
12-
</li>
13-
</ul>
4+
<nav class="navbar navbar-expand-lg bg-dark navbar-dark">
5+
<div class="container-fluid">
6+
<a class="navbar-brand">Full Stack App - Azure SQL + Prisma</a>
7+
8+
<ul class="navbar-nav mr-auto">
9+
<li class="nav-item">
10+
<router-link class="nav-link" to="/"
11+
>Create New Employee</router-link
12+
>
13+
</li>
14+
<li class="nav-item">
15+
<router-link class="nav-link" to="/list-employees"
16+
>List All Employees</router-link
17+
>
18+
</li>
19+
</ul>
20+
</div>
1421
</nav>
1522
<!-- END NAVBAR -->
1623

client/src/components/pages/create-employee/CreateEmployeeComponent.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<template>
22
<div class="container">
3-
<div class="card">
3+
<div class="card border-secondary mb-3">
44
<div class="card-header">
55
<h3>Add Employee</h3>
66
</div>
77
<div class="card-body">
88
<form v-on:submit.prevent="handleSubmitForm()">
99
<!-- INÍCIO BLOCO: Employee Name -->
10-
<div class="form-group">
11-
<label class="font-weight-bold">Employee Name</label>
10+
<div class="mb-3 mt-3">
11+
<label class="form-label fw-bold">Employee Name</label>
1212
<input
1313
type="text"
1414
id="name"
@@ -30,8 +30,8 @@
3030
<!-- FIM BLOCO: Employee Name -->
3131

3232
<!-- INÍCIO BLOCO: Job Role -->
33-
<div class="form-group">
34-
<label class="font-weight-bold">Job Role</label>
33+
<div class="mb-3 mt-3">
34+
<label class="form-label fw-bold">Job Role</label>
3535
<input
3636
type="text"
3737
id="job_role"
@@ -53,8 +53,8 @@
5353
<!-- FIM BLOCO: Job Role -->
5454

5555
<!-- INÍCIO BLOCO: Salary -->
56-
<div class="form-group">
57-
<label class="font-weight-bold">Salary</label>
56+
<div class="mb-3 mt-3">
57+
<label class="form-label fw-bold">Salary</label>
5858
<input
5959
type="number"
6060
id="salary"
@@ -76,8 +76,8 @@
7676
<!-- FIM BLOCO: Salary -->
7777

7878
<!-- INÍCIO BLOCO: Employee Registration -->
79-
<div class="form-group">
80-
<label class="font-weight-bold">Employee Registration</label>
79+
<div class="mb-3 mt-3">
80+
<label class="form-label fw-bold">Employee Registration</label>
8181
<input
8282
type="number"
8383
id="employee_registration"
@@ -100,7 +100,7 @@
100100
</div>
101101
</div>
102102
<!-- FIM BLOCO: Employee Registration -->
103-
<div class="form-group">
103+
<div class="mb-3 mt-3">
104104
<button @click="submitNewEmployee" class="btn btn-primary">
105105
<font-awesome-icon :icon="['fas', 'user-plus']" /> Employee
106106
</button>

0 commit comments

Comments
 (0)