Skip to content

Commit

Permalink
Updated style and scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
cmahnke committed Jun 30, 2024
1 parent d571517 commit fcb84b5
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 21 deletions.
2 changes: 2 additions & 0 deletions assets/js/main.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
window.$ = window.jQuery = require('jquery');
import { addConsent } from './iframe-consent';
import { initMap } from './maps/osm-map.js';

/* See https://github.com/rgalus/sticky-js */
/* window.Sticky = require('sticky-js'); */
import stickybits from 'stickybits'
window.stickybits = stickybits;

window.addConsent = addConsent;
window.initMap = initMap;

window.enterView = require('enter-view');

Expand Down
2 changes: 2 additions & 0 deletions assets/scss/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
@import "iiif";
@import "ol";
@import "ol-iiif";
@import "map";
@import "./pagination";

$content-width: 64em;
$gradient-color-light: #b2444d;
Expand Down
25 changes: 25 additions & 0 deletions assets/scss/pagination.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.pagination {
max-width: 64rem;
margin: 3em auto;
font-family: "League Spartan", Futura, sans-serif;
font-size: 1.8em;
font-weight: 300;


.pagination-links {
display: grid;
flex-direction: row;

.pagination-next {
justify-self: flex-end;

}

.pagination-prev {
justify-self: flex-start;
}

}


}
117 changes: 96 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,98 @@
{
"dependencies": {
"aos": "^2.3.4",
"elevator.js": "^1.0.1",
"enter-view": "^2.0.1",
"js-cookie": "^3.0.5",
"lg-fullscreen": "^1.2.1",
"lightgallery": "^2.7.2"
},
"devDependencies": {
"replace-in-file": "8.0.1",
"svgo": "^3.3.2"
},
"scripts": {
"logo-projektemacher": "svgo --config Source\\ Files/svgo.config.js -i themes/projektemacher-base/Source\\ Files/Images/Laborant.svg -o static/images/laborant.svg",
"logo-monogram": "svgo -i themes/projektemacher-base/static/images/cm.svg -o static/images/cm.svg && cp static/images/cm.svg static/images/cm-black.svg",
"logo-monogram-black": "yarn run logo-monogram && replace-in-file 'fill-opacity:.5' 'fill-opacity:1.0' static/images/cm-black.svg && replace-in-file 'fill:#d40000' 'fill:#000000' static/images/cm-black.svg",
"logos": "yarn run logo-projektemacher && yarn run logo-monogram-black",
"background": "svgo --config Source\\ Files/svgo.config.js -i Source\\ Files/Background/Background.svg -o static/images/bg.svg",
"icons": "svgo --config Source\\ Files/svgo.config.js -i Source\\ Files/Icons/No\\ Emoji.svg -o static/images/no-emoji.svg",
"svgo": "yarn run background && yarn run icons && yarn run logos"
}
"dependencies": {
"aframe": "^1.5.0",
"aframe-orbit-controls": "^1.3.2",
"aos": "^2.3.4",
"bootstrap": "^5.2.2",
"detect-browser": "5.3.0",
"elevator.js": "^1.0.1",
"enter-view": "^2.0.1",
"howler": "^2.2.3",
"jquery": "^3.6.0",
"jquery-ui": "^1.13.2",
"js-cookie": "^3.0.5",
"lg-fullscreen": "^1.2.1",
"lightgallery": "^2.7.2",
"mirador": "ProjectMirador/mirador#5cb692ed31480c1e130f4a8715726688cb35796d",
"normalize.css": "^8.0.1",
"ol": "^9.0.0",
"ol-mapbox-style": "^12.0.0",
"pdfjs-dist": "^4.0.189",
"pdfobject": "^2.1.1",
"sharp": "^0.33.4",
"stickybits": "^3.7.11",
"yargs": "^17.6.0"
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@fullhuman/postcss-purgecss": "^6.0.0",
"@gltf-transform/cli": "^4.0.0",
"@gltf-transform/core": "^4.0.0",
"@gltf-transform/extensions": "^4.0.0",
"@gltf-transform/functions": "^4.0.0",
"cors": "^2.8.5",
"doiuse": "^6.0.1",
"eslint": "~8.57.0",
"eslint-config-prettier": "~9.1.0",
"eslint-plugin-compat": "~5.0.0",
"eslint-plugin-json-es": "^1.5.7",
"eslint-plugin-prettier": "~5.1.0",
"eslint-plugin-toml": "^0.11.0",
"express": "^4.18.2",
"gltf-pipeline": "^4.1.0",
"markdownlint-cli": "~0.41.0",
"mktemp": "~1.0.1",
"obj2gltf": "^3.1.6",
"patch-package": "^8.0.0",
"postcss": "^8.4.20",
"postcss-cli": "^11.0.0",
"postcss-discard-duplicates": "^7.0.0",
"postcss-import": "^16.0.0",
"postcss-inline-svg": "^6.0.0",
"postcss-utilities": "^0.8.4",
"prettier": "^3.0.0",
"puppeteer": "^22.0.0",
"purgecss": "^6.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"replace-in-file": "8.0.1",
"stylelint": "^16.3.0",
"stylelint-config-prettier": "^9.0.5",
"stylelint-config-sass-guidelines": "^11.0.0",
"stylelint-config-standard": "^36.0.0",
"stylelint-config-standard-scss": "^13.0.0",
"stylelint-no-unsupported-browser-features": "^8.0.1",
"stylelint-prettier": "^5.0.0",
"stylelint-scss": "^6.2.1",
"svgo": "^3.3.2",
"three": "^0.165.0",
"toml": "^3.0.0",
"xslt3": "^2.6.0"
},
"scripts": {
"check-generated-css": "stylelint --config ./themes/projektemacher-base/.stylelintrc-postbuild.yaml 'docs/css/*.css'",
"lint-scss": "stylelint 'assets/scss/*'",
"lint-js": "eslint 'assets/js/*'",
"lint-toml": "eslint --ext .toml i18n",
"lint": "yarn run lint-scss && yarn run lint-js && yarn run lint-toml",
"postbuild-lint": "yarn run check-generated-css",
"prepatch": "cp -rf $INIT_CWD/themes/projektemacher-base/patches $INIT_CWD",
"patch": "yarn run patch-package",
"postinstall": "yarn run prepatch && yarn run patch && yarn run postinstall-mirador",
"postinstall-mirador": "cd node_modules/mirador && yarn add -D @babel/plugin-proposal-private-property-in-object && yarn install && yarn run build",
"validate-iiif-gnu": "find docs -name manifest.json -print0 | xargs -r -0 -n1 yarn run eslint -c themes/projektemacher-base/.eslintrc.yml",
"validate-gjson-gnu": "find docs -name '*.gjson' -o -name '*.geojson' -print0 | xargs -r -0 -n1 yarn run eslint -c themes/projektemacher-base/.eslintrc.yml",
"validate-iiif-bsd": "find docs -name manifest.json -print0 | xargs -0 -n1 yarn run eslint -c themes/projektemacher-base/.eslintrc.yml",
"validate-gjson-bsd": "find docs -name '*.gjson' -o -name '*.geojson' -print0 | xargs -0 -n1 yarn run eslint -c themes/projektemacher-base/.eslintrc.yml",
"validate-iiif": "case $OSTYPE in darwin*) yarn run validate-iiif-bsd ;; linux*) yarn run validate-iiif-gnu ;; bsd*) yarn run validate-iiif-bsd ;; *) exit 100 ;; esac",
"validate-gjson": "case $OSTYPE in darwin*) yarn run validate-gjson-bsd ;; linux*) yarn run validate-gjson-gnu ;; bsd*) yarn run validate-gjson-bsd ;; *) exit 100 ;; esac",
"validate": "yarn run validate-iiif && yarn run validate-gjson",
"logo-projektemacher": "svgo --config Source\\ Files/svgo.config.js -i themes/projektemacher-base/Source\\ Files/Images/Laborant.svg -o static/images/laborant.svg",
"logo-monogram": "svgo -i themes/projektemacher-base/static/images/cm.svg -o static/images/cm.svg && cp static/images/cm.svg static/images/cm-black.svg",
"logo-monogram-black": "yarn run logo-monogram && replace-in-file 'fill-opacity:.5' 'fill-opacity:1.0' static/images/cm-black.svg && replace-in-file 'fill:#d40000' 'fill:#000000' static/images/cm-black.svg",
"logos": "yarn run logo-projektemacher && yarn run logo-monogram-black",
"background": "svgo --config Source\\ Files/svgo.config.js -i Source\\ Files/Background/Background.svg -o static/images/bg.svg",
"icons": "svgo --config Source\\ Files/svgo.config.js -i Source\\ Files/Icons/No\\ Emoji.svg -o static/images/no-emoji.svg",
"svgo": "yarn run background && yarn run icons && yarn run logos"
}
}

0 comments on commit fcb84b5

Please sign in to comment.