Skip to content

Commit ce3dcb7

Browse files
muzammalrahimcomradekingunijel
committed
Home page company and user design changes
Check on Custom JS file. 1) Internal CSS has been moved to the already existing file Style.css 2) Testimonial has been changed to a single class. 3) Inline/excessive css has been removed. 4) Created and RTL css variant Update custom.js File formatting fix Removed unused code. Removed Inline Styling. Text formatting Formatting Apply suggestions from code review Co-authored-by: Allan Nordhøy <epost@anotheragency.no> Co-authored-by: Michal Čihař <michal@cihar.com>
1 parent cd51e93 commit ce3dcb7

29 files changed

Lines changed: 331 additions & 3 deletions

scripts/yarn-update

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ fi
1111

1212
# Clipboard
1313
cp node_modules/clipboard/dist/clipboard.min.js ../../weblate_web/static/vendor/clipboard.js
14+
cp node_modules/simpleslider-js/dist/simpleSlider.min.js ../../weblate_web/static/vendor/simpleSlider.min.js
15+
cp node_modules/simpleslider-js/dist/simpleSlider.min.css ../../weblate_web/static/vendor/simpleSlider.min.css
16+
1417

1518
# Source Sans/Code Pro fonts
1619
mkdir -p ../../weblate_web/static/font-source

scripts/yarn/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"license": "GPL-3.0+",
66
"dependencies": {
77
"clipboard": "^2.0.9",
8+
"simpleslider-js": "^1.9.0",
89
"source-code-pro": "2.38.0",
910
"source-sans": "3.46.0"
1011
}

scripts/yarn/yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ select@^1.1.2:
2828
resolved "https://registry.yarnpkg.com/select/-/select-1.1.2.tgz#0e7350acdec80b1108528786ec1d4418d11b396d"
2929
integrity sha1-DnNQrN7ICxEIUoeG7B1EGNEbOW0=
3030

31+
simpleslider-js@^1.9.0:
32+
version "1.9.0"
33+
resolved "https://registry.yarnpkg.com/simpleslider-js/-/simpleslider-js-1.9.0.tgz#f850e1d493968ccd1c9d91c15b1b53bbb32049a3"
34+
integrity sha512-p2nzUx0/sAJldSDezLah0sAm8orHM+E6BsA/mTaCIPV0UrZj6ZIxKhwj5KF+4iu98gB0SqWBPhZE4hs4drDZrA==
35+
3136
source-code-pro@2.38.0:
3237
version "2.38.0"
3338
resolved "https://registry.yarnpkg.com/source-code-pro/-/source-code-pro-2.38.0.tgz#85c57689f7386bb9d0515fb00ba4845bfb7b485b"

weblate_web/static/custom.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,3 +220,12 @@ ready(() => {
220220
"font-size: 20px; font-family: sans-serif"
221221
);
222222
});
223+
224+
if (typeof SimpleSlider === "function") {
225+
new SimpleSlider(".page-slider", {
226+
slidesPerView: {
227+
850: 2,
228+
1165: 3,
229+
},
230+
});
231+
}
4.91 KB
Loading
5.39 KB
Loading
7.56 KB
Loading
6.04 KB
Loading
6.4 KB
Loading
5.08 KB
Loading

0 commit comments

Comments
 (0)