Skip to content

Commit 6dd0576

Browse files
committed
Changes made to the project include:
- Bootstrap package added - login form (testing version, no route yet) - test view for boostrap v5.3 test with vite
1 parent 36de208 commit 6dd0576

File tree

8 files changed

+413
-3
lines changed

8 files changed

+413
-3
lines changed

package-lock.json

Lines changed: 216 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
"laravel-vite-plugin": "^0.7.2",
1010
"lodash": "^4.17.19",
1111
"postcss": "^8.1.14",
12-
"vite": "^4.0.0"
12+
"sass": "^1.57.1",
13+
"vite": "^4.0.4"
14+
},
15+
"dependencies": {
16+
"@popperjs/core": "^2.11.6",
17+
"bootstrap": "^5.2.3"
1318
}
1419
}

resources/js/app.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
import './bootstrap';
2+
3+
// Import all of Bootstrap's JS
4+
import * as bootstrap from 'bootstrap';
5+
window.bootstrap = bootstrap;

resources/js/bootstrap.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,8 @@ window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
3333
// forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https',
3434
// enabledTransports: ['ws', 'wss'],
3535
// });
36+
37+
// Import our custom CSS
38+
39+
import '../sass/app.scss'
40+
import '../css/app.css'

resources/sass/app.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Para agregar archivos aca, hay que poner en el resolve vite.config el path relativo de node_modules
2+
@import "~bootstrap/scss/bootstrap";
3+
4+
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Nunito:300,300i,400,400i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i');
5+
6+
.btn-xsm{
7+
--bs-btn-padding-y: .05rem;
8+
--bs-btn-padding-x: .25rem;
9+
--bs-btn-font-size: .75rem;
10+
}

0 commit comments

Comments
 (0)