Skip to content

Commit d05b5d9

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 0d87d8c commit d05b5d9

29 files changed

Lines changed: 332 additions & 4 deletions

scripts/yarn-update

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ yarn upgrade-interactive
99

1010
# Clipboard
1111
cp node_modules/clipboard/dist/clipboard.min.js ../../weblate_web/static/vendor/clipboard.js
12+
cp node_modules/simpleslider-js/dist/simpleSlider.min.js ../../weblate_web/static/vendor/simpleSlider.min.js
13+
cp node_modules/simpleslider-js/dist/simpleSlider.min.css ../../weblate_web/static/vendor/simpleSlider.min.css
14+
1215

1316
# Source Sans/Code Pro fonts
1417
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.8",
8+
"simpleslider-js": "^1.9.0",
89
"source-code-pro": "2.30.2",
910
"source-sans-pro": "3.6.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.30.2:
3237
version "2.30.2"
3338
resolved "https://registry.yarnpkg.com/source-code-pro/-/source-code-pro-2.30.2.tgz#1577e4bc93d2399d271d00f8426a8cd1b7f86da2"

weblate_web/static/custom.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,3 +207,12 @@ ready(() => {
207207

208208
new ClipboardJS("[data-clipboard-text]");
209209
});
210+
211+
if (typeof SimpleSlider === "function") {
212+
new SimpleSlider(".page-slider", {
213+
slidesPerView: {
214+
850: 2,
215+
1165: 3,
216+
},
217+
});
218+
}
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)