Skip to content

Commit b68ef19

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 070e1ac commit b68ef19

29 files changed

Lines changed: 332 additions & 3 deletions

scripts/yarn-update

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ cd scripts/yarn/
66

77
yarn install --check-files
88

9+
# Clipboard
10+
cp node_modules/simpleslider-js/dist/simpleSlider.min.js ../../weblate_web/static/vendor/simpleSlider.min.js
11+
cp node_modules/simpleslider-js/dist/simpleSlider.min.css ../../weblate_web/static/vendor/simpleSlider.min.css
12+
913
# Source Sans/Code Pro fonts
1014
mkdir -p ../../weblate_web/static/font-source
1115
sed '/font-family/ a font-display: swap;' < node_modules/source-sans/source-sans-3.css > ../../weblate_web/static/vendor/font-source/source-sans-3.css

scripts/yarn/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"main": "index.js",
55
"license": "GPL-3.0+",
66
"dependencies": {
7+
"simpleslider-js": "1.9.0",
78
"source-code-pro": "2.38.0",
89
"source-sans": "3.46.0"
910
}

scripts/yarn/yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# yarn lockfile v1
33

44

5+
simpleslider-js@1.9.0:
6+
version "1.9.0"
7+
resolved "https://registry.yarnpkg.com/simpleslider-js/-/simpleslider-js-1.9.0.tgz#f850e1d493968ccd1c9d91c15b1b53bbb32049a3"
8+
integrity sha512-p2nzUx0/sAJldSDezLah0sAm8orHM+E6BsA/mTaCIPV0UrZj6ZIxKhwj5KF+4iu98gB0SqWBPhZE4hs4drDZrA==
9+
510
source-code-pro@2.38.0:
611
version "2.38.0"
712
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
@@ -244,3 +244,12 @@ ready(() => {
244244
"font-size: 20px; font-family: sans-serif",
245245
);
246246
});
247+
248+
if (typeof SimpleSlider === "function") {
249+
new SimpleSlider(".page-slider", {
250+
slidesPerView: {
251+
850: 2,
252+
1165: 3,
253+
},
254+
});
255+
}
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)