From 08ed9f7f19589915ca8b0c4868cadfcbe204762e Mon Sep 17 00:00:00 2001 From: Samandar Turgunboyev Date: Thu, 6 Nov 2025 10:38:52 +0500 Subject: [PATCH] translation added --- package-lock.json | 38 +++++++++++++++++++ package.json | 1 + src/index.css | 28 +++++++++++++- src/pages/news/ui/StepTwo.tsx | 18 ++++----- src/pages/tours/ui/StepOne.tsx | 11 +++--- .../config/i18n/locales/ru/translation.json | 20 +++++++++- .../config/i18n/locales/uz/translation.json | 20 +++++++++- src/widgets/sidebar/ui/Sidebar.tsx | 10 ++--- 8 files changed, 122 insertions(+), 24 deletions(-) diff --git a/package-lock.json b/package-lock.json index 451f109..80dce6d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -71,6 +71,7 @@ "husky": "^9.1.7", "lint-staged": "^16.2.1", "prettier": "^3.6.2", + "tailwind-scrollbar": "^4.0.2", "tw-animate-css": "^1.4.0", "typescript": "~5.9.2", "typescript-eslint": "^8.44.1", @@ -3056,6 +3057,13 @@ "integrity": "sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==", "license": "MIT" }, + "node_modules/@types/prismjs": { + "version": "1.26.5", + "resolved": "https://registry.npmjs.org/@types/prismjs/-/prismjs-1.26.5.tgz", + "integrity": "sha512-AUZTa7hQ2KY5L7AmtSiqxlhWxb4ina0yd8hNbl4TWuqnv/pFP0nDMb3YrfSBf4hJVGLh2YEIBfKaBW/9UEl6IQ==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/prop-types": { "version": "15.7.15", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz", @@ -5642,6 +5650,20 @@ "url": "https://github.com/prettier/prettier?sponsor=1" } }, + "node_modules/prism-react-renderer": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/prism-react-renderer/-/prism-react-renderer-2.4.1.tgz", + "integrity": "sha512-ey8Ls/+Di31eqzUxC46h8MksNuGx/n0AAC8uKpwFau4RPDYLuE3EXTp8N8G2vX2N7UC/+IXeNUnlWBGGcAG+Ig==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/prismjs": "^1.26.0", + "clsx": "^2.0.0" + }, + "peerDependencies": { + "react": ">=16.0.0" + } + }, "node_modules/prop-types": { "version": "15.8.1", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", @@ -6308,6 +6330,22 @@ "url": "https://github.com/sponsors/dcastil" } }, + "node_modules/tailwind-scrollbar": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/tailwind-scrollbar/-/tailwind-scrollbar-4.0.2.tgz", + "integrity": "sha512-wAQiIxAPqk0MNTPptVe/xoyWi27y+NRGnTwvn4PQnbvB9kp8QUBiGl/wsfoVBHnQxTmhXJSNt9NHTmcz9EivFA==", + "dev": true, + "license": "MIT", + "dependencies": { + "prism-react-renderer": "^2.4.1" + }, + "engines": { + "node": ">=12.13.0" + }, + "peerDependencies": { + "tailwindcss": "4.x" + } + }, "node_modules/tailwindcss": { "version": "4.1.13", "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.13.tgz", diff --git a/package.json b/package.json index bc0a08a..02fcfcf 100644 --- a/package.json +++ b/package.json @@ -75,6 +75,7 @@ "husky": "^9.1.7", "lint-staged": "^16.2.1", "prettier": "^3.6.2", + "tailwind-scrollbar": "^4.0.2", "tw-animate-css": "^1.4.0", "typescript": "~5.9.2", "typescript-eslint": "^8.44.1", diff --git a/src/index.css b/src/index.css index dc288e7..a522226 100644 --- a/src/index.css +++ b/src/index.css @@ -1,5 +1,5 @@ -@import 'tailwindcss'; -@import 'tw-animate-css'; +@import "tailwindcss"; +@import "tw-animate-css"; @custom-variant dark (&:is(.dark *)); @@ -118,3 +118,27 @@ @apply bg-background text-foreground; } } + +/* ==== Custom Sidebar Scrollbar ==== */ +.sidebar-scroll { + scrollbar-width: thin; /* Firefox uchun */ + scrollbar-color: #4b5563 #1f2937; /* Thumb va track rangi */ +} + +/* Chrome, Edge, Safari uchun */ +.sidebar-scroll::-webkit-scrollbar { + width: 6px; /* juda nozik scroll */ +} + +.sidebar-scroll::-webkit-scrollbar-track { + background: #1f2937; /* fon (track) */ +} + +.sidebar-scroll::-webkit-scrollbar-thumb { + background-color: #4b5563; /* thumb rangi */ + border-radius: 9999px; /* yumaloq scroll */ +} + +.sidebar-scroll::-webkit-scrollbar-thumb:hover { + background-color: #6b7280; /* hover effekti */ +} diff --git a/src/pages/news/ui/StepTwo.tsx b/src/pages/news/ui/StepTwo.tsx index 5e22572..959a4b9 100644 --- a/src/pages/news/ui/StepTwo.tsx +++ b/src/pages/news/ui/StepTwo.tsx @@ -216,7 +216,7 @@ const StepTwo = ({ name="desc" render={({ field }) => ( - +