Skip to content

Commit

Permalink
import css to pages/_app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
vdvibhu20 committed Dec 30, 2022
1 parent ef34f39 commit 6b5be95
Show file tree
Hide file tree
Showing 8 changed files with 154 additions and 988 deletions.
22 changes: 6 additions & 16 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
const withSass = require('@zeit/next-sass')
const withCss = require('@zeit/next-css')
const webpack = require('webpack')
const {parsed: localEnv} = require('dotenv').config();
const path = require('path')

module.exports = withCss(
withSass({
webpack: config => {
// Fixes npm packages that depend on `fs` module
config.node = {
fs: 'empty'
}
config.plugins.push(new webpack.EnvironmentPlugin(localEnv))
return config
}
})
);
module.exports = {
sassOptions: {
includePaths: [path.join(__dirname, 'styles/**/*.scss')],
},
}
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
"@sentry/browser": "^5.6.3",
"@syncfusion/ej2-react-dropdowns": "^17.2.39",
"@syncfusion/ej2-react-grids": "^17.2.39",
"@zeit/next-css": "^1.0.1",
"@zeit/next-sass": "^1.0.1",
"axios": "^0.19.0",
"cookie-parser": "^1.4.4",
"dotenv": "^8.0.0",
Expand All @@ -49,11 +47,12 @@
"query-string": "^6.12.1",
"react": "^16.8.6",
"react-copy-to-clipboard": "^5.0.2",
"react-datepicker": "^2.14.1",
"react-datepicker": "^4.8.0",
"react-dom": "^16.8.6",
"react-modal": "^3.9.1",
"react-select": "^3.0.4",
"react-spinners": "^0.6.1",
"sass": "^1.57.1",
"sweetalert2": "^8.13.0",
"sweetalert2-react-content": "^1.1.0",
"yup": "^0.28.5"
Expand All @@ -65,7 +64,6 @@
"devDependencies": {
"@sentry/webpack-plugin": "^1.8.1",
"css-loader": "^2.0.0",
"node-sass": "^4.12.0",
"sass-loader": "^7.1.0",
"webpack": "^4.39.1"
}
Expand Down
16 changes: 16 additions & 0 deletions pages/_app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import '../styles/components/CheckLogin.scss'
import '../styles/components/FieldWithElement.scss'
import '../styles/components/layout.scss'
import '../styles/components/Modal.scss'
import '../styles/components/Pagination.scss'
import '../styles/components/Price.scss'
import '../styles/components/ProductsChooser.scss'
import '../styles/pages/global.scss'
import '../styles/pages/index.scss'
import '../styles/pages/admin/coupons.scss'
import '../styles/pages/admin/coupons2.scss'
import '../styles/pages/admin/products.scss'

export default function MyApp({ Component, pageProps }) {
return <Component {...pageProps} />
}
2 changes: 0 additions & 2 deletions styles/pages/admin/coupons.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import "../global.scss";

#search {
font-size: 14pt;
}
Expand Down
2 changes: 1 addition & 1 deletion styles/pages/admin/coupons2.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../global.scss";


#random_coupon {
font-size: 12pt;
Expand Down
3 changes: 0 additions & 3 deletions styles/pages/admin/products.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
@import "../global.scss";
@import "./coupons.scss";

.product-search-card {
height: 100%;
border: 2px solid #e9e9e9;
Expand Down
7 changes: 4 additions & 3 deletions styles/pages/global.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import "../../../node_modules/@syncfusion/ej2-base/styles/material.css";
@import "../../../node_modules/@syncfusion/ej2-inputs/styles/material.css";
@import "../../../node_modules/@syncfusion/ej2-dropdowns/styles/material.css";
@import "../../node_modules/@syncfusion/ej2-base/styles/material.css";
@import "../../node_modules/@syncfusion/ej2-inputs/styles/material.css";
@import "../../node_modules/@syncfusion/ej2-dropdowns/styles/material.css";
@import "../../node_modules/react-datepicker/dist/react-datepicker.min.css";

.title {
font-weight: 100;
Expand Down
Loading

0 comments on commit 6b5be95

Please sign in to comment.