forked from nickjj/build-a-saas-app-with-flask
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Webpack, Bootstrap v4, ES6 JS and SCSS
:D
- Loading branch information
Showing
45 changed files
with
7,156 additions
and
1,206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
.git | ||
.git/ | ||
assets/node_modules/ | ||
public/ | ||
.env | ||
.dockerignore | ||
docker-compose.override.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--modules-folder /node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import 'modules/bootstrap'; | ||
|
||
$(document).ready(function() { | ||
// TODO: If you want to enable Bootstrap JS components such as tooltips then | ||
// place those snippets of code here. Also don't forget to uncomment them | ||
// in both the modules/bootstrap.js file and in the SCSS at app.scss. | ||
// For example, to enable tooltips: | ||
// $('[data-toggle="tooltip"]').tooltip(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// Bootstrap functions. | ||
@import '~bootstrap/scss/functions'; | ||
|
||
// Bootstrap variable overrides. | ||
@import 'scss/variables-bootstrap'; | ||
|
||
// Bootstrap variables (this must come after your custom Bootstrap overrides). | ||
@import '~bootstrap/scss/variables'; | ||
|
||
// Bootstrap, check out what each one does at: | ||
// https://github.com/twbs/bootstrap/tree/v4.4.1/scss | ||
@import '~bootstrap/scss/mixins'; | ||
@import '~bootstrap/scss/root'; | ||
@import '~bootstrap/scss/reboot'; | ||
@import '~bootstrap/scss/type'; | ||
@import '~bootstrap/scss/images'; | ||
//@import '~bootstrap/scss/code'; | ||
@import '~bootstrap/scss/grid'; | ||
@import '~bootstrap/scss/tables'; | ||
@import '~bootstrap/scss/forms'; | ||
@import '~bootstrap/scss/buttons'; | ||
@import '~bootstrap/scss/transitions'; | ||
@import '~bootstrap/scss/dropdown'; | ||
//@import '~bootstrap/scss/button-group'; | ||
@import '~bootstrap/scss/input-group'; | ||
//@import '~bootstrap/scss/custom-forms'; | ||
@import '~bootstrap/scss/nav'; | ||
@import '~bootstrap/scss/navbar'; | ||
@import '~bootstrap/scss/card'; | ||
//@import '~bootstrap/scss/breadcrumb'; | ||
@import '~bootstrap/scss/pagination'; | ||
@import '~bootstrap/scss/badge'; | ||
//@import '~bootstrap/scss/jumbotron'; | ||
@import '~bootstrap/scss/alert'; | ||
@import '~bootstrap/scss/progress'; | ||
@import '~bootstrap/scss/media'; | ||
@import '~bootstrap/scss/list-group'; | ||
//@import '~bootstrap/scss/close'; | ||
//@import '~bootstrap/scss/toasts'; | ||
//@import '~bootstrap/scss/modal'; | ||
//@import '~bootstrap/scss/tooltip'; | ||
//@import '~bootstrap/scss/popover'; | ||
//@import '~bootstrap/scss/carousel'; | ||
//@import '~bootstrap/scss/spinners'; | ||
@import '~bootstrap/scss/utilities'; | ||
@import '~bootstrap/scss/print'; | ||
|
||
// Font Awesome. | ||
$fa-font-path: '~@fortawesome/fontawesome-free/webfonts'; | ||
@import '~@fortawesome/fontawesome-free/scss/fontawesome.scss'; | ||
@import '~@fortawesome/fontawesome-free/scss/solid.scss'; | ||
@import '~@fortawesome/fontawesome-free/scss/regular.scss'; | ||
//@import '~@fortawesome/fontawesome-free/scss/brands.scss'; | ||
|
||
// Application. | ||
@import 'scss/all'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Check out what each one does at: | ||
// https://github.com/twbs/bootstrap/tree/v4.4.1/js/src | ||
|
||
//import 'bootstrap/js/dist/alert'; | ||
//import 'bootstrap/js/dist/button'; | ||
//import 'bootstrap/js/dist/carousel'; | ||
import 'bootstrap/js/dist/collapse'; | ||
import 'bootstrap/js/dist/dropdown'; | ||
//import 'bootstrap/js/dist/modal'; | ||
//import 'bootstrap/js/dist/scrollspy"; | ||
//import 'bootstrap/js/dist/tab'; | ||
//import 'bootstrap/js/dist/toast'; | ||
//import 'bootstrap/js/dist/tooltip'; | ||
import 'bootstrap/js/dist/util'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
label { | ||
margin-top: 10px; | ||
} | ||
|
||
.form-control { | ||
&:focus { | ||
border-color: $gray-600; | ||
border: 1px solid $gray-600; | ||
} | ||
|
||
&.is-invalid { | ||
background-image: none; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.navbar { | ||
border-bottom: 1px solid $gray-200; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
html { | ||
position: relative; | ||
min-height: 100%; | ||
} | ||
|
||
body { | ||
margin-bottom: $sticky-footer-height; | ||
padding-bottom: 20px; | ||
} | ||
|
||
.footer { | ||
position: absolute; | ||
bottom: 0; | ||
width: 100%; | ||
height: $sticky-footer-height; | ||
line-height: $sticky-footer-line-height; | ||
border-top: 1px solid $gray-300; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
h2, h3, h4 { | ||
margin-top: 30px; | ||
} | ||
|
||
h5, h6 { | ||
margin-top: 20px; | ||
} | ||
|
||
h1 { | ||
padding-bottom: 10px; | ||
margin-bottom: 30px; | ||
border-bottom: 1px solid $gray-300; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Override any Bootstrap variables here: | ||
// https://github.com/twbs/bootstrap/blob/v4.4.1/scss/_variables.scss | ||
$primary: #941212 !default; | ||
|
||
$input-color: #212529 !default; | ||
|
||
$input-btn-focus-width: 1px; | ||
$input-btn-focus-box-shadow: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Define your own custom variables here that you can use in any SCSS file. | ||
$sticky-footer-height: 60px; | ||
$sticky-footer-line-height: $sticky-footer-height; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@import 'variables'; | ||
|
||
@import 'nav'; | ||
@import 'sticky-footer'; | ||
@import 'typography'; | ||
@import 'forms'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"repository": {}, | ||
"dependencies": { | ||
"jquery": "~3.4.1", | ||
"@fortawesome/fontawesome-free": "~5.12.0", | ||
"bootstrap": "~4.4.1", | ||
"popper.js": "~1.16.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "~7.7.7", | ||
"@babel/preset-env": "~7.7.7", | ||
"@babel/register": "~7.7.7", | ||
"autoprefixer": "~9.7.3", | ||
"babel-loader": "~8.0.6", | ||
"copy-webpack-plugin": "~5.1.1", | ||
"css-loader": "~3.4.0", | ||
"file-loader": "~5.0.2", | ||
"mini-css-extract-plugin": "~0.9.0", | ||
"node-sass": "~4.13.0", | ||
"optimize-css-assets-webpack-plugin": "~5.0.3", | ||
"postcss-loader": "~3.0.0", | ||
"precss": "~4.0.0", | ||
"sass-loader": "~8.0.0", | ||
"uglifyjs-webpack-plugin": "~2.2.0", | ||
"webpack": "~4.41.5", | ||
"webpack-cli": "~3.3.10", | ||
"webpack-merge": "~4.2.2" | ||
}, | ||
"scripts": { | ||
"build": "/node_modules/webpack/bin/webpack.js --mode=production -p", | ||
"watch": "/node_modules/webpack/bin/webpack.js --mode=development --progress --watch-stdin" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
plugins: [require('autoprefixer')] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!DOCTYPE html> | ||
<head> | ||
<title>Reload Your Browser</title> | ||
<style> | ||
body { | ||
background-color: #fff; | ||
width: 960px; | ||
margin: 0 auto; | ||
font-family: Arial, Helvetica, sans-serif; | ||
} | ||
h1 { | ||
font-size: 42px; | ||
color: #000; | ||
padding-bottom: 5px; | ||
border-bottom: 1px solid #000; | ||
} | ||
p { | ||
color: #444; | ||
font-size: 22px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h1>We Just Updated Our Site</h1> | ||
<h2>When we release a new version of our site it takes a second to come back up.</h2> | ||
<p>It should be fixed by the time you read this message. Try reloading your browser.</p> | ||
<p><i>P.S., don't worry, your data is safely backed up!</i></p> | ||
<hr> | ||
<p>Seeing this page for a while? Please let us know by emailing <a href="mailto:nick.janetakis@gmail.com">nick.janetakis@gmail.com</a>.</p> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!DOCTYPE html> | ||
<head> | ||
<title>Down for Maintenance</title> | ||
<style> | ||
body { | ||
background-color: #fff; | ||
width: 960px; | ||
margin: 0 auto; | ||
font-family: Arial, Helvetica, sans-serif; | ||
} | ||
h1 { | ||
font-size: 42px; | ||
color: #000; | ||
padding-bottom: 5px; | ||
border-bottom: 1px solid #000; | ||
} | ||
p { | ||
color: #444; | ||
font-size: 22px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h1>We're Upgrading Our Servers</h1> | ||
<h2>Our site is down while we upgrade our servers to make things faster for you.</h2> | ||
<p>We're aiming to have everything up and running by 2pm EST, please check back then.</p> | ||
<p><i>P.S., don't worry, your data is safely backed up!</i></p> | ||
<hr> | ||
<p>Want live updates? Follow us on Twitter at <a href="https://twitter.com/nickjanetakis">@nickjanetakis</a>.</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# TODO: This will block all robots from crawling your site. You wouldn't want | ||
# this set in production, but it's useful for testing. | ||
User-agent: * | ||
Disallow: / |
Oops, something went wrong.