Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

490 custom sumo theme #373

Merged
merged 17 commits into from
Nov 10, 2023
Merged
420 changes: 392 additions & 28 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@popperjs/core": "^2.11.5",
"@symfony/webpack-encore": "^4.1.1",
"bazinga-translator": "^5.0.0",
"bootstrap": "^5.1.3",
"bootstrap": "^5.3.1",
"bootstrap-datepicker": "^1.9.0",
"bootstrap-sass": "^3.4.3",
"check-password-strength": "^2.0.0",
Expand All @@ -36,11 +36,12 @@
"jstree": "^3.3.12",
"jstree-bootstrap-theme": "^1.0.1",
"mini-css-extract-plugin": "^2.6.1",
"node-sass": "^8.0.0",
"postcss-easing-gradients": "^3.0.1",
"postcss-import": "^15.0.0",
"postcss-loader": "^7.0.1",
"postcss-preset-env": "^7.8.3",
"requestanimationframe": "0.0.23",
"sass": "^1.69.5",
"sass-loader": "^13.2.0",
"select2": "^4.0.12",
"select2-bootstrap-5-theme": "^1.2.0",
Expand Down Expand Up @@ -90,7 +91,7 @@
]
},
"volta": {
"node": "20.7.0"
"node": "20.9.0"
},
"dependencies": {
"stylelint": "^15.10.3",
Expand Down
3 changes: 2 additions & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
warnings: false
}
}
}
},
'postcss-easing-gradients': {}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
4 changes: 4 additions & 0 deletions src/Themes/Custom/assets/public/images/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions src/Themes/Custom/assets/public/images/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/android-chrome-192x192.png",
tijsverkoyen marked this conversation as resolved.
Show resolved Hide resolved
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Niet logischer om hier een image van de theme in te zetten? Of eventueel een sumo logo?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idd, vervangen door sumo logo. Dit wordt toch overschreven door image van klant thema

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Themes/Custom/assets/public/images/tile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
19 changes: 19 additions & 0 deletions src/Themes/Custom/assets/webpack/js/Fork.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// import plugins
import 'bootstrap'

// component imports
import { Components } from '../../../../../Modules/Frontend/assets/Frontend/webpack/js/_Components'
import NavbarToggler from './components/navbar-toggler'

export class Fork {
initFrontend () {
this.components = new Components()
this.components.initComponents()
}
}

$(window).on('load', () => {
window.frontend = new Fork()
window.frontend.initFrontend()
window.navbarToggler = new NavbarToggler()
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default function NavbarToggler () {
const toggler = document.querySelector('.navbar-toggler')
toggler.addEventListener('click', function () {
document.querySelector('body').classList.toggle('nav-expanded')
})
}
52 changes: 52 additions & 0 deletions src/Themes/Custom/assets/webpack/scss/_bootstrap-imports.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/*!
* Bootstrap v5.0.2 (https://getbootstrap.com/)
* Copyright 2011-2021 The Bootstrap Authors
* Copyright 2011-2021 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/

// scss-docs-start import-stack
// Configuration
@import '~bootstrap/scss/mixins';
@import '~bootstrap/scss/maps';
@import '~bootstrap/scss/utilities';

// Layout & components
@import '~bootstrap/scss/root';
@import '~bootstrap/scss/reboot';
@import '~bootstrap/scss/type';
@import '~bootstrap/scss/images';
@import '~bootstrap/scss/containers';
@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/nav';
@import '~bootstrap/scss/navbar';
@import '~bootstrap/scss/card';
@import '~bootstrap/scss/accordion';
@import '~bootstrap/scss/breadcrumb';
@import '~bootstrap/scss/pagination';
@import '~bootstrap/scss/badge';
@import '~bootstrap/scss/alert';
@import '~bootstrap/scss/progress';
@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/offcanvas';
@import '~bootstrap/scss/placeholders';

// Helpers
@import '~bootstrap/scss/helpers';

// Utilities
@import '~bootstrap/scss/utilities/api';
// scss-docs-end import-stack
Loading
Loading