подчёркивание ссылок в footer

This commit is contained in:
xomimishka committed 2025-05-07 15:37:25 +03:00
commit 5a72249518
41 files changed
+1251 -253

No files matched your search

+2 -2
View File
@@ -6,8 +6,8 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> <link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap" <!-- <link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap"
rel="stylesheet"> rel="stylesheet"> -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+145 -152
View File
@@ -1742,9 +1742,9 @@
} }
}, },
"node_modules/@rollup/rollup-android-arm-eabi": { "node_modules/@rollup/rollup-android-arm-eabi": {
"version": "4.40.0", "version": "4.40.1",
"resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.40.0.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.40.1.tgz",
"integrity": "sha512-+Fbls/diZ0RDerhE8kyC6hjADCXA1K4yVNlH0EYfd2XjyH0UGgzaQ8MlT0pCXAThfxv3QUAczHaL+qSv1E4/Cg==", "integrity": "sha512-kxz0YeeCrRUHz3zyqvd7n+TVRlNyTifBsmnmNPtk3hQURUyG9eAB+usz6DAwagMusjx/zb3AjvDUvhFGDAexGw==",
"cpu": [ "cpu": [
"arm" "arm"
], ],
@@ -1756,9 +1756,9 @@
] ]
}, },
"node_modules/@rollup/rollup-android-arm64": { "node_modules/@rollup/rollup-android-arm64": {
"version": "4.40.0", "version": "4.40.1",
"resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.40.0.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.40.1.tgz",
"integrity": "sha512-PPA6aEEsTPRz+/4xxAmaoWDqh67N7wFbgFUJGMnanCFs0TV99M0M8QhhaSCks+n6EbQoFvLQgYOGXxlMGQe/6w==", "integrity": "sha512-PPkxTOisoNC6TpnDKatjKkjRMsdaWIhyuMkA4UsBXT9WEZY4uHezBTjs6Vl4PbqQQeu6oION1w2voYZv9yquCw==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@@ -1770,9 +1770,9 @@
] ]
}, },
"node_modules/@rollup/rollup-darwin-arm64": { "node_modules/@rollup/rollup-darwin-arm64": {
"version": "4.40.0", "version": "4.40.1",
"resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.40.0.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.40.1.tgz",
"integrity": "sha512-GwYOcOakYHdfnjjKwqpTGgn5a6cUX7+Ra2HeNj/GdXvO2VJOOXCiYYlRFU4CubFM67EhbmzLOmACKEfvp3J1kQ==", "integrity": "sha512-VWXGISWFY18v/0JyNUy4A46KCFCb9NVsH+1100XP31lud+TzlezBbz24CYzbnA4x6w4hx+NYCXDfnvDVO6lcAA==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@@ -1784,9 +1784,9 @@
] ]
}, },
"node_modules/@rollup/rollup-darwin-x64": { "node_modules/@rollup/rollup-darwin-x64": {
"version": "4.40.0", "version": "4.40.1",
"resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.40.0.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.40.1.tgz",
"integrity": "sha512-CoLEGJ+2eheqD9KBSxmma6ld01czS52Iw0e2qMZNpPDlf7Z9mj8xmMemxEucinev4LgHalDPczMyxzbq+Q+EtA==", "integrity": "sha512-nIwkXafAI1/QCS7pxSpv/ZtFW6TXcNUEHAIA9EIyw5OzxJZQ1YDrX+CL6JAIQgZ33CInl1R6mHet9Y/UZTg2Bw==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@@ -1798,9 +1798,9 @@
] ]
}, },
"node_modules/@rollup/rollup-freebsd-arm64": { "node_modules/@rollup/rollup-freebsd-arm64": {
"version": "4.40.0", "version": "4.40.1",
"resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.40.0.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.40.1.tgz",
"integrity": "sha512-r7yGiS4HN/kibvESzmrOB/PxKMhPTlz+FcGvoUIKYoTyGd5toHp48g1uZy1o1xQvybwwpqpe010JrcGG2s5nkg==", "integrity": "sha512-BdrLJ2mHTrIYdaS2I99mriyJfGGenSaP+UwGi1kB9BLOCu9SR8ZpbkmmalKIALnRw24kM7qCN0IOm6L0S44iWw==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@@ -1812,9 +1812,9 @@
] ]
}, },
"node_modules/@rollup/rollup-freebsd-x64": { "node_modules/@rollup/rollup-freebsd-x64": {
"version": "4.40.0", "version": "4.40.1",
"resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.40.0.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.40.1.tgz",
"integrity": "sha512-mVDxzlf0oLzV3oZOr0SMJ0lSDd3xC4CmnWJ8Val8isp9jRGl5Dq//LLDSPFrasS7pSm6m5xAcKaw3sHXhBjoRw==", "integrity": "sha512-VXeo/puqvCG8JBPNZXZf5Dqq7BzElNJzHRRw3vjBE27WujdzuOPecDPc/+1DcdcTptNBep3861jNq0mYkT8Z6Q==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@@ -1826,9 +1826,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-arm-gnueabihf": { "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
"version": "4.40.0", "version": "4.40.1",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.40.0.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.40.1.tgz",
"integrity": "sha512-y/qUMOpJxBMy8xCXD++jeu8t7kzjlOCkoxxajL58G62PJGBZVl/Gwpm7JK9+YvlB701rcQTzjUZ1JgUoPTnoQA==", "integrity": "sha512-ehSKrewwsESPt1TgSE/na9nIhWCosfGSFqv7vwEtjyAqZcvbGIg4JAcV7ZEh2tfj/IlfBeZjgOXm35iOOjadcg==",
"cpu": [ "cpu": [
"arm" "arm"
], ],
@@ -1840,9 +1840,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-arm-musleabihf": { "node_modules/@rollup/rollup-linux-arm-musleabihf": {
"version": "4.40.0", "version": "4.40.1",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.40.0.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.40.1.tgz",
"integrity": "sha512-GoCsPibtVdJFPv/BOIvBKO/XmwZLwaNWdyD8TKlXuqp0veo2sHE+A/vpMQ5iSArRUz/uaoj4h5S6Pn0+PdhRjg==", "integrity": "sha512-m39iO/aaurh5FVIu/F4/Zsl8xppd76S4qoID8E+dSRQvTyZTOI2gVk3T4oqzfq1PtcvOfAVlwLMK3KRQMaR8lg==",
"cpu": [ "cpu": [
"arm" "arm"
], ],
@@ -1854,9 +1854,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-arm64-gnu": { "node_modules/@rollup/rollup-linux-arm64-gnu": {
"version": "4.40.0", "version": "4.40.1",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.40.0.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.40.1.tgz",
"integrity": "sha512-L5ZLphTjjAD9leJzSLI7rr8fNqJMlGDKlazW2tX4IUF9P7R5TMQPElpH82Q7eNIDQnQlAyiNVfRPfP2vM5Avvg==", "integrity": "sha512-Y+GHnGaku4aVLSgrT0uWe2o2Rq8te9hi+MwqGF9r9ORgXhmHK5Q71N757u0F8yU1OIwUIFy6YiJtKjtyktk5hg==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@@ -1868,9 +1868,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-arm64-musl": { "node_modules/@rollup/rollup-linux-arm64-musl": {
"version": "4.40.0", "version": "4.40.1",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.40.0.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.40.1.tgz",
"integrity": "sha512-ATZvCRGCDtv1Y4gpDIXsS+wfFeFuLwVxyUBSLawjgXK2tRE6fnsQEkE4csQQYWlBlsFztRzCnBvWVfcae/1qxQ==", "integrity": "sha512-jEwjn3jCA+tQGswK3aEWcD09/7M5wGwc6+flhva7dsQNRZZTe30vkalgIzV4tjkopsTS9Jd7Y1Bsj6a4lzz8gQ==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@@ -1882,9 +1882,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-loongarch64-gnu": { "node_modules/@rollup/rollup-linux-loongarch64-gnu": {
"version": "4.40.0", "version": "4.40.1",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.40.0.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.40.1.tgz",
"integrity": "sha512-wG9e2XtIhd++QugU5MD9i7OnpaVb08ji3P1y/hNbxrQ3sYEelKJOq1UJ5dXczeo6Hj2rfDEL5GdtkMSVLa/AOg==", "integrity": "sha512-ySyWikVhNzv+BV/IDCsrraOAZ3UaC8SZB67FZlqVwXwnFhPihOso9rPOxzZbjp81suB1O2Topw+6Ug3JNegejQ==",
"cpu": [ "cpu": [
"loong64" "loong64"
], ],
@@ -1896,9 +1896,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-powerpc64le-gnu": { "node_modules/@rollup/rollup-linux-powerpc64le-gnu": {
"version": "4.40.0", "version": "4.40.1",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.40.0.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.40.1.tgz",
"integrity": "sha512-vgXfWmj0f3jAUvC7TZSU/m/cOE558ILWDzS7jBhiCAFpY2WEBn5jqgbqvmzlMjtp8KlLcBlXVD2mkTSEQE6Ixw==", "integrity": "sha512-BvvA64QxZlh7WZWqDPPdt0GH4bznuL6uOO1pmgPnnv86rpUpc8ZxgZwcEgXvo02GRIZX1hQ0j0pAnhwkhwPqWg==",
"cpu": [ "cpu": [
"ppc64" "ppc64"
], ],
@@ -1910,9 +1910,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-riscv64-gnu": { "node_modules/@rollup/rollup-linux-riscv64-gnu": {
"version": "4.40.0", "version": "4.40.1",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.40.0.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.40.1.tgz",
"integrity": "sha512-uJkYTugqtPZBS3Z136arevt/FsKTF/J9dEMTX/cwR7lsAW4bShzI2R0pJVw+hcBTWF4dxVckYh72Hk3/hWNKvA==", "integrity": "sha512-EQSP+8+1VuSulm9RKSMKitTav89fKbHymTf25n5+Yr6gAPZxYWpj3DzAsQqoaHAk9YX2lwEyAf9S4W8F4l3VBQ==",
"cpu": [ "cpu": [
"riscv64" "riscv64"
], ],
@@ -1924,9 +1924,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-riscv64-musl": { "node_modules/@rollup/rollup-linux-riscv64-musl": {
"version": "4.40.0", "version": "4.40.1",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.40.0.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.40.1.tgz",
"integrity": "sha512-rKmSj6EXQRnhSkE22+WvrqOqRtk733x3p5sWpZilhmjnkHkpeCgWsFFo0dGnUGeA+OZjRl3+VYq+HyCOEuwcxQ==", "integrity": "sha512-n/vQ4xRZXKuIpqukkMXZt9RWdl+2zgGNx7Uda8NtmLJ06NL8jiHxUawbwC+hdSq1rrw/9CghCpEONor+l1e2gA==",
"cpu": [ "cpu": [
"riscv64" "riscv64"
], ],
@@ -1938,9 +1938,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-s390x-gnu": { "node_modules/@rollup/rollup-linux-s390x-gnu": {
"version": "4.40.0", "version": "4.40.1",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.40.0.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.40.1.tgz",
"integrity": "sha512-SpnYlAfKPOoVsQqmTFJ0usx0z84bzGOS9anAC0AZ3rdSo3snecihbhFTlJZ8XMwzqAcodjFU4+/SM311dqE5Sw==", "integrity": "sha512-h8d28xzYb98fMQKUz0w2fMc1XuGzLLjdyxVIbhbil4ELfk5/orZlSTpF/xdI9C8K0I8lCkq+1En2RJsawZekkg==",
"cpu": [ "cpu": [
"s390x" "s390x"
], ],
@@ -1952,9 +1952,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-x64-gnu": { "node_modules/@rollup/rollup-linux-x64-gnu": {
"version": "4.40.0", "version": "4.40.1",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.40.0.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.40.1.tgz",
"integrity": "sha512-RcDGMtqF9EFN8i2RYN2W+64CdHruJ5rPqrlYw+cgM3uOVPSsnAQps7cpjXe9be/yDp8UC7VLoCoKC8J3Kn2FkQ==", "integrity": "sha512-XiK5z70PEFEFqcNj3/zRSz/qX4bp4QIraTy9QjwJAb/Z8GM7kVUsD0Uk8maIPeTyPCP03ChdI+VVmJriKYbRHQ==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@@ -1966,9 +1966,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-x64-musl": { "node_modules/@rollup/rollup-linux-x64-musl": {
"version": "4.40.0", "version": "4.40.1",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.40.0.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.40.1.tgz",
"integrity": "sha512-HZvjpiUmSNx5zFgwtQAV1GaGazT2RWvqeDi0hV+AtC8unqqDSsaFjPxfsO6qPtKRRg25SisACWnJ37Yio8ttaw==", "integrity": "sha512-2BRORitq5rQ4Da9blVovzNCMaUlyKrzMSvkVR0D4qPuOy/+pMCrh1d7o01RATwVy+6Fa1WBw+da7QPeLWU/1mQ==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@@ -1980,9 +1980,9 @@
] ]
}, },
"node_modules/@rollup/rollup-win32-arm64-msvc": { "node_modules/@rollup/rollup-win32-arm64-msvc": {
"version": "4.40.0", "version": "4.40.1",
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.40.0.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.40.1.tgz",
"integrity": "sha512-UtZQQI5k/b8d7d3i9AZmA/t+Q4tk3hOC0tMOMSq2GlMYOfxbesxG4mJSeDp0EHs30N9bsfwUvs3zF4v/RzOeTQ==", "integrity": "sha512-b2bcNm9Kbde03H+q+Jjw9tSfhYkzrDUf2d5MAd1bOJuVplXvFhWz7tRtWvD8/ORZi7qSCy0idW6tf2HgxSXQSg==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@@ -1994,9 +1994,9 @@
] ]
}, },
"node_modules/@rollup/rollup-win32-ia32-msvc": { "node_modules/@rollup/rollup-win32-ia32-msvc": {
"version": "4.40.0", "version": "4.40.1",
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.40.0.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.40.1.tgz",
"integrity": "sha512-+m03kvI2f5syIqHXCZLPVYplP8pQch9JHyXKZ3AGMKlg8dCyr2PKHjwRLiW53LTrN/Nc3EqHOKxUxzoSPdKddA==", "integrity": "sha512-DfcogW8N7Zg7llVEfpqWMZcaErKfsj9VvmfSyRjCyo4BI3wPEfrzTtJkZG6gKP/Z92wFm6rz2aDO7/JfiR/whA==",
"cpu": [ "cpu": [
"ia32" "ia32"
], ],
@@ -2008,9 +2008,9 @@
] ]
}, },
"node_modules/@rollup/rollup-win32-x64-msvc": { "node_modules/@rollup/rollup-win32-x64-msvc": {
"version": "4.40.0", "version": "4.40.1",
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.40.0.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.40.1.tgz",
"integrity": "sha512-lpPE1cLfP5oPzVjKMx10pgBmKELQnFJXHgvtHCtuJWOv8MxqdEIMNtgHgBFf7Ea2/7EuVwa9fodWUfXAlXZLZQ==", "integrity": "sha512-ECyOuDeH3C1I8jH2MK1RtBJW+YPMvSfT0a5NN0nHfQYnDSJ6tUiZH3gzwVP5/Kfh/+Tt7tpWVF9LXNTnhTJ3kA==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@@ -2028,9 +2028,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/@tanstack/query-core": { "node_modules/@tanstack/query-core": {
"version": "5.74.4", "version": "5.74.9",
"resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.74.4.tgz", "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.74.9.tgz",
"integrity": "sha512-YuG0A0+3i9b2Gfo9fkmNnkUWh5+5cFhWBN0pJAHkHilTx6A0nv8kepkk4T4GRt4e5ahbtFj2eTtkiPcVU1xO4A==", "integrity": "sha512-qmjXpWyigDw4SfqdSBy24FzRvpBPXlaSbl92N77lcrL+yvVQLQkf0T6bQNbTxl9IEB/SvVFhhVZoIlQvFnNuuw==",
"license": "MIT", "license": "MIT",
"funding": { "funding": {
"type": "github", "type": "github",
@@ -2038,12 +2038,12 @@
} }
}, },
"node_modules/@tanstack/react-query": { "node_modules/@tanstack/react-query": {
"version": "5.74.4", "version": "5.74.11",
"resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.74.4.tgz", "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.74.11.tgz",
"integrity": "sha512-mAbxw60d4ffQ4qmRYfkO1xzRBPUEf/72Dgo3qqea0J66nIKuDTLEqQt0ku++SDFlMGMnB6uKDnEG1xD/TDse4Q==", "integrity": "sha512-FFhn9ZiYRUOsxLAWZYxVfQTpVE7UWRaAeHJIWVDHKlmZZGc16rMHW9KrFZ8peC4hA71QUf/shJD8dPSMqDnRmA==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@tanstack/query-core": "5.74.4" "@tanstack/query-core": "5.74.9"
}, },
"funding": { "funding": {
"type": "github", "type": "github",
@@ -2098,12 +2098,6 @@
"@babel/types": "^7.20.7" "@babel/types": "^7.20.7"
} }
}, },
"node_modules/@types/cookie": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.6.0.tgz",
"integrity": "sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==",
"license": "MIT"
},
"node_modules/@types/estree": { "node_modules/@types/estree": {
"version": "1.0.7", "version": "1.0.7",
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz",
@@ -2155,9 +2149,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/@types/node": { "node_modules/@types/node": {
"version": "22.14.1", "version": "22.15.3",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.14.1.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.3.tgz",
"integrity": "sha512-u0HuPQwe/dHrItgHHpmw3N2fYCR6x4ivMNbPHRkBVP4CvN+kiRrKHWk3i8tXiO/joPwXLMYvF9TTF0eqgHIuOw==", "integrity": "sha512-lX7HFZeHf4QG/J7tBZqrCAXwz9J5RD56Y6MpP0eJkka8p+K0RY/yBTW7CYFJ4VGCclxqOLKmiGP5juQc6MKgcw==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@@ -2197,9 +2191,9 @@
} }
}, },
"node_modules/@types/react-dom": { "node_modules/@types/react-dom": {
"version": "18.3.6", "version": "18.3.7",
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.6.tgz", "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz",
"integrity": "sha512-nf22//wEbKXusP6E9pfOCDwFdHAX4u172eaJI4YkDRQEZiorm6KfYnSC2SWLDMVWUOWPERmJnN0ujeAfTBLvrw==", "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"peerDependencies": { "peerDependencies": {
@@ -2568,9 +2562,9 @@
"license": "ISC" "license": "ISC"
}, },
"node_modules/@vitejs/plugin-react": { "node_modules/@vitejs/plugin-react": {
"version": "4.4.0", "version": "4.4.1",
"resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.4.0.tgz", "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.4.1.tgz",
"integrity": "sha512-x/EztcTKVj+TDeANY1WjNeYsvZjZdfWRMP/KXi5Yn8BoTzpa13ZltaQqKfvWYbX8CE10GOHHdC5v86jY9x8i/g==", "integrity": "sha512-IpEm5ZmeXAP/osiBXVVP5KjFMzbWOonMs0NaQQl+xYnUAcq4oHUBsF2+p4MgKWG4YMmFYJU8A6sxRPuowllm6w==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@@ -2616,9 +2610,9 @@
} }
}, },
"node_modules/@yandex/smart-captcha": { "node_modules/@yandex/smart-captcha": {
"version": "2.7.1", "version": "2.8.0",
"resolved": "https://registry.npmjs.org/@yandex/smart-captcha/-/smart-captcha-2.7.1.tgz", "resolved": "https://registry.npmjs.org/@yandex/smart-captcha/-/smart-captcha-2.8.0.tgz",
"integrity": "sha512-/Bb3PMeFQebszhKhmPyOY8UYEonUDPGL92uKKcgYOlWUUeeODcqseseiuSGq6C5alddTHj8OCHTKEDmEBnsUhA==", "integrity": "sha512-be1lrTB+J6qc/eLj9aiTZmh4ulRLs4xJvW5ER6UUvZ0+l2MMJuz7TnHBf2tenATlhTX8IHgnsvIvDYypN66pvg==",
"peerDependencies": { "peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
} }
@@ -2744,9 +2738,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/axios": { "node_modules/axios": {
"version": "1.8.4", "version": "1.9.0",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.8.4.tgz", "resolved": "https://registry.npmjs.org/axios/-/axios-1.9.0.tgz",
"integrity": "sha512-eBSYY4Y68NNlHbHBMdeDmKNtDgXWhQsJcGqzO3iLUM0GraQFSS9cVgPX5I9b3lbdFKyYoAEGAZF1DwhTaljNAw==", "integrity": "sha512-re4CqKTJaURpzbLHtIi6XpDv20/CnpXOtjRY5/CU32L8gU8ek9UIivcfvSWvmKEngmVbrUtPpdDwWDWL7DNHvg==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"follow-redirects": "^1.15.6", "follow-redirects": "^1.15.6",
@@ -2896,9 +2890,9 @@
} }
}, },
"node_modules/caniuse-lite": { "node_modules/caniuse-lite": {
"version": "1.0.30001714", "version": "1.0.30001716",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001714.tgz", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001716.tgz",
"integrity": "sha512-mtgapdwDLSSBnCI3JokHM7oEQBLxiJKVRtg10AxM1AyeiKcM96f0Mkbqeq+1AbiCtvMcHRulAAEMu693JrSWqg==", "integrity": "sha512-49/c1+x3Kwz7ZIWt+4DvK3aMJy9oYXXG6/97JKsnjdCk/6n9vVyWL8NAwVt95Lwt9eigI10Hl782kDfZUUlRXw==",
"dev": true, "dev": true,
"funding": [ "funding": [
{ {
@@ -3314,9 +3308,9 @@
} }
}, },
"node_modules/electron-to-chromium": { "node_modules/electron-to-chromium": {
"version": "1.5.137", "version": "1.5.145",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.137.tgz", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.145.tgz",
"integrity": "sha512-/QSJaU2JyIuTbbABAo/crOs+SuAZLS+fVVS10PVrIT9hrRkmZl8Hb0xPSkKRUUWHQtYzXHpQUW3Dy5hwMzGZkA==", "integrity": "sha512-pZ5EcTWRq/055MvSBgoFEyKf2i4apwfoqJbK/ak2jnFq8oHjZ+vzc3AhRcz37Xn+ZJfL58R666FLJx0YOK9yTw==",
"dev": true, "dev": true,
"license": "ISC" "license": "ISC"
}, },
@@ -3518,9 +3512,9 @@
} }
}, },
"node_modules/eslint-plugin-react-refresh": { "node_modules/eslint-plugin-react-refresh": {
"version": "0.4.19", "version": "0.4.20",
"resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.19.tgz", "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.20.tgz",
"integrity": "sha512-eyy8pcr/YxSYjBoqIFSrlbn9i/xvxUFa8CjzAYo9cFjgGXqq1hyjihcpZvxRLalpaWmueWR81xn7vuKmAFijDQ==", "integrity": "sha512-XpbHQ2q5gUF8BGOX4dHe+71qoirYMhApEPZ7sfhF/dNnOF1UXnCMGZf79SFTBO7Bz5YEIT4TMieSlJBWhP9WBA==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"peerDependencies": { "peerDependencies": {
@@ -7617,14 +7611,14 @@
} }
}, },
"node_modules/pg": { "node_modules/pg": {
"version": "8.14.1", "version": "8.15.6",
"resolved": "https://registry.npmjs.org/pg/-/pg-8.14.1.tgz", "resolved": "https://registry.npmjs.org/pg/-/pg-8.15.6.tgz",
"integrity": "sha512-0TdbqfjwIun9Fm/r89oB7RFQ0bLgduAhiIqIXOsyKoiC/L54DbuAAzIEN/9Op0f1Po9X7iCPXGoa/Ah+2aI8Xw==", "integrity": "sha512-yvao7YI3GdmmrslNVsZgx9PfntfWrnXwtR+K/DjI0I/sTKif4Z623um+sjVZ1hk5670B+ODjvHDAckKdjmPTsg==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"pg-connection-string": "^2.7.0", "pg-connection-string": "^2.8.5",
"pg-pool": "^3.8.0", "pg-pool": "^3.9.6",
"pg-protocol": "^1.8.0", "pg-protocol": "^1.9.5",
"pg-types": "^2.1.0", "pg-types": "^2.1.0",
"pgpass": "1.x" "pgpass": "1.x"
}, },
@@ -7632,7 +7626,7 @@
"node": ">= 8.0.0" "node": ">= 8.0.0"
}, },
"optionalDependencies": { "optionalDependencies": {
"pg-cloudflare": "^1.1.1" "pg-cloudflare": "^1.2.5"
}, },
"peerDependencies": { "peerDependencies": {
"pg-native": ">=3.0.1" "pg-native": ">=3.0.1"
@@ -7644,16 +7638,16 @@
} }
}, },
"node_modules/pg-cloudflare": { "node_modules/pg-cloudflare": {
"version": "1.1.1", "version": "1.2.5",
"resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.1.1.tgz", "resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.2.5.tgz",
"integrity": "sha512-xWPagP/4B6BgFO+EKz3JONXv3YDgvkbVrGw2mTo3D6tVDQRh1e7cqVGvyR3BE+eQgAvx1XhW/iEASj4/jCWl3Q==", "integrity": "sha512-OOX22Vt0vOSRrdoUPKJ8Wi2OpE/o/h9T8X1s4qSkCedbNah9ei2W2765be8iMVxQUsvgT7zIAT2eIa9fs5+vtg==",
"license": "MIT", "license": "MIT",
"optional": true "optional": true
}, },
"node_modules/pg-connection-string": { "node_modules/pg-connection-string": {
"version": "2.7.0", "version": "2.8.5",
"resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.7.0.tgz", "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.8.5.tgz",
"integrity": "sha512-PI2W9mv53rXJQEOb8xNR8lH7Hr+EKa6oJa38zsK0S/ky2er16ios1wLKhZyxzD7jUReiWokc9WK5nxSnC7W1TA==", "integrity": "sha512-Ni8FuZ8yAF+sWZzojvtLE2b03cqjO5jNULcHFfM9ZZ0/JXrgom5pBREbtnAw7oxsxJqHw9Nz/XWORUEL3/IFow==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/pg-int8": { "node_modules/pg-int8": {
@@ -7666,18 +7660,18 @@
} }
}, },
"node_modules/pg-pool": { "node_modules/pg-pool": {
"version": "3.8.0", "version": "3.9.6",
"resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.8.0.tgz", "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.9.6.tgz",
"integrity": "sha512-VBw3jiVm6ZOdLBTIcXLNdSotb6Iy3uOCwDGFAksZCXmi10nyRvnP2v3jl4d+IsLYRyXf6o9hIm/ZtUzlByNUdw==", "integrity": "sha512-rFen0G7adh1YmgvrmE5IPIqbb+IgEzENUm+tzm6MLLDSlPRoZVhzU1WdML9PV2W5GOdRA9qBKURlbt1OsXOsPw==",
"license": "MIT", "license": "MIT",
"peerDependencies": { "peerDependencies": {
"pg": ">=8.0" "pg": ">=8.0"
} }
}, },
"node_modules/pg-protocol": { "node_modules/pg-protocol": {
"version": "1.8.0", "version": "1.9.5",
"resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.8.0.tgz", "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.9.5.tgz",
"integrity": "sha512-jvuYlEkL03NRvOoyoRktBK7+qU5kOvlAwvmrH8sr3wbLrOdVWsRxQfz8mMy9sZFsqJ1hEWNfdWKI4SAmoL+j7g==", "integrity": "sha512-DYTWtWpfd5FOro3UnAfwvhD8jh59r2ig8bPtc9H8Ds7MscE/9NYruUQWFAOuraRl29jwcT2kyMFQ3MxeaVjUhg==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/pg-types": { "node_modules/pg-types": {
@@ -7917,9 +7911,9 @@
} }
}, },
"node_modules/react-hook-form": { "node_modules/react-hook-form": {
"version": "7.55.0", "version": "7.56.1",
"resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.55.0.tgz", "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.56.1.tgz",
"integrity": "sha512-XRnjsH3GVMQz1moZTW53MxfoWN7aDpUg/GpVNc4A3eXRVNdGXfbzJ4vM4aLQ8g6XCUh1nIbx70aaNCl7kxnjog==", "integrity": "sha512-qWAVokhSpshhcEuQDSANHx3jiAEFzu2HAaaQIzi/r9FNPm1ioAvuJSD4EuZzWd7Al7nTRKcKPnBKO7sRn+zavQ==",
"license": "MIT", "license": "MIT",
"engines": { "engines": {
"node": ">=18.0.0" "node": ">=18.0.0"
@@ -7977,12 +7971,11 @@
} }
}, },
"node_modules/react-router": { "node_modules/react-router": {
"version": "7.5.0", "version": "7.5.3",
"resolved": "https://registry.npmjs.org/react-router/-/react-router-7.5.0.tgz", "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.5.3.tgz",
"integrity": "sha512-estOHrRlDMKdlQa6Mj32gIks4J+AxNsYoE0DbTTxiMy2mPzZuWSDU+N85/r1IlNR7kGfznF3VCUlvc5IUO+B9g==", "integrity": "sha512-3iUDM4/fZCQ89SXlDa+Ph3MevBrozBAI655OAfWQlTm9nBR0IKlrmNwFow5lPHttbwvITZfkeeeZFP6zt3F7pw==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@types/cookie": "^0.6.0",
"cookie": "^1.0.1", "cookie": "^1.0.1",
"set-cookie-parser": "^2.6.0", "set-cookie-parser": "^2.6.0",
"turbo-stream": "2.4.0" "turbo-stream": "2.4.0"
@@ -8152,9 +8145,9 @@
} }
}, },
"node_modules/rollup": { "node_modules/rollup": {
"version": "4.40.0", "version": "4.40.1",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-4.40.0.tgz", "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.40.1.tgz",
"integrity": "sha512-Noe455xmA96nnqH5piFtLobsGbCij7Tu+tb3c1vYjNbTkfzGqXqQXG3wJaYXkRZuQ0vEYN4bhwg7QnIrqB5B+w==", "integrity": "sha512-C5VvvgCCyfyotVITIAv+4efVytl5F7wt+/I2i9q9GZcEXW9BP52YYOXC58igUi+LFZVHukErIIqQSWwv/M3WRw==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@@ -8168,26 +8161,26 @@
"npm": ">=8.0.0" "npm": ">=8.0.0"
}, },
"optionalDependencies": { "optionalDependencies": {
"@rollup/rollup-android-arm-eabi": "4.40.0", "@rollup/rollup-android-arm-eabi": "4.40.1",
"@rollup/rollup-android-arm64": "4.40.0", "@rollup/rollup-android-arm64": "4.40.1",
"@rollup/rollup-darwin-arm64": "4.40.0", "@rollup/rollup-darwin-arm64": "4.40.1",
"@rollup/rollup-darwin-x64": "4.40.0", "@rollup/rollup-darwin-x64": "4.40.1",
"@rollup/rollup-freebsd-arm64": "4.40.0", "@rollup/rollup-freebsd-arm64": "4.40.1",
"@rollup/rollup-freebsd-x64": "4.40.0", "@rollup/rollup-freebsd-x64": "4.40.1",
"@rollup/rollup-linux-arm-gnueabihf": "4.40.0", "@rollup/rollup-linux-arm-gnueabihf": "4.40.1",
"@rollup/rollup-linux-arm-musleabihf": "4.40.0", "@rollup/rollup-linux-arm-musleabihf": "4.40.1",
"@rollup/rollup-linux-arm64-gnu": "4.40.0", "@rollup/rollup-linux-arm64-gnu": "4.40.1",
"@rollup/rollup-linux-arm64-musl": "4.40.0", "@rollup/rollup-linux-arm64-musl": "4.40.1",
"@rollup/rollup-linux-loongarch64-gnu": "4.40.0", "@rollup/rollup-linux-loongarch64-gnu": "4.40.1",
"@rollup/rollup-linux-powerpc64le-gnu": "4.40.0", "@rollup/rollup-linux-powerpc64le-gnu": "4.40.1",
"@rollup/rollup-linux-riscv64-gnu": "4.40.0", "@rollup/rollup-linux-riscv64-gnu": "4.40.1",
"@rollup/rollup-linux-riscv64-musl": "4.40.0", "@rollup/rollup-linux-riscv64-musl": "4.40.1",
"@rollup/rollup-linux-s390x-gnu": "4.40.0", "@rollup/rollup-linux-s390x-gnu": "4.40.1",
"@rollup/rollup-linux-x64-gnu": "4.40.0", "@rollup/rollup-linux-x64-gnu": "4.40.1",
"@rollup/rollup-linux-x64-musl": "4.40.0", "@rollup/rollup-linux-x64-musl": "4.40.1",
"@rollup/rollup-win32-arm64-msvc": "4.40.0", "@rollup/rollup-win32-arm64-msvc": "4.40.1",
"@rollup/rollup-win32-ia32-msvc": "4.40.0", "@rollup/rollup-win32-ia32-msvc": "4.40.1",
"@rollup/rollup-win32-x64-msvc": "4.40.0", "@rollup/rollup-win32-x64-msvc": "4.40.1",
"fsevents": "~2.3.2" "fsevents": "~2.3.2"
} }
}, },
@@ -8236,9 +8229,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/sass": { "node_modules/sass": {
"version": "1.86.3", "version": "1.87.0",
"resolved": "https://registry.npmjs.org/sass/-/sass-1.86.3.tgz", "resolved": "https://registry.npmjs.org/sass/-/sass-1.87.0.tgz",
"integrity": "sha512-iGtg8kus4GrsGLRDLRBRHY9dNVA78ZaS7xr01cWnS7PEMQyFtTqBiyCrfpTYTZXRWM94akzckYjh8oADfFNTzw==", "integrity": "sha512-d0NoFH4v6SjEK7BoX810Jsrhj7IQSYHAHLi/iSpgqKc7LaIDshFRlSg5LOymf9FqQhxEHs2W5ZQXlvy0KD45Uw==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"chokidar": "^4.0.0", "chokidar": "^4.0.0",
@@ -8700,9 +8693,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/vite": { "node_modules/vite": {
"version": "5.4.18", "version": "5.4.19",
"resolved": "https://registry.npmjs.org/vite/-/vite-5.4.18.tgz", "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.19.tgz",
"integrity": "sha512-1oDcnEp3lVyHCuQ2YFelM4Alm2o91xNoMncRm1U7S+JdYfYOvbiGZ3/CxGttrOu2M/KcGz7cRC2DoNUA6urmMA==", "integrity": "sha512-qO3aKv3HoQC8QKiNSTuUM1l9o/XX3+c+VTgLHbJWHZGeTPVAg2XwazI9UWzoxjIJCGCV2zU60uqMzjeLZuULqA==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
+2 -3
View File
@@ -2,14 +2,13 @@
@import "global"; @import "global";
@import "variables/variables"; @import "variables/variables";
@import "reset"; @import "reset";
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@font-face { @font-face {
font-family: "Montserrat"; font-family: 'Montserrat', sans-serif;
font-style: normal; font-style: normal;
font-weight: 100 900; font-weight: 100 900;
font-display: swap; font-display: swap;
src: url("../fonts/Montserrat/Montserrat-VariableFont_wght.ttf")
format("truetype");
} }
.app { .app {
min-height: 100%; min-height: 100%;
+7 -1
View File
@@ -1,3 +1,5 @@
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
input { input {
border: none; border: none;
} }
@@ -16,7 +18,7 @@ body,
input, input,
textarea, textarea,
button { button {
font-family: Montserrat; font-family: 'Montserrat', sans-serif;
} }
code { code {
@@ -95,6 +97,10 @@ header h1 {
} }
} }
h2 {
margin-bottom: 1em;
}
#root { #root {
display: flex; display: flex;
min-height: 100vh; min-height: 100vh;
@@ -1,7 +1,7 @@
.mainContainer { .mainContainer {
margin: 30px 10% 0 10%; margin: 0 10% 0 10%;
@include mediaMax($mobile-xs-width) { @include mediaMax($mobile-xs-width) {
margin: 30px 5% 0 5%; margin: 0 5% 0 5%;
} }
} }
@@ -72,7 +72,7 @@ body {
background: transparent !important; background: transparent !important;
h1 { h1 {
font-family: Montserrat; font-family: 'Montserrat', sans-serif;
font-size: 36px; font-size: 36px;
font-weight: 600; font-weight: 600;
@@ -203,3 +203,10 @@ body {
} }
} }
} }
.mainpage-container {
display: flex;
flex-direction: column;
margin-top: 40px;
gap: 40px;
}
@@ -43,6 +43,7 @@ const MainPage = () => {
</HashLink> </HashLink>
</section> </section>
</div> </div>
<div className={styles.mainpageContainer}>
<ProjectsList /> <ProjectsList />
<div className={styles.NumbersContainer}> <div className={styles.NumbersContainer}>
<Numbers /> <Numbers />
@@ -61,6 +62,7 @@ const MainPage = () => {
<ContactUs /> <ContactUs />
</div> </div>
</div> </div>
</div>
); );
}; };
+5 -2
View File
@@ -2,6 +2,7 @@ import { useParams } from "react-router-dom";
import extLink from "@/shared/assets/images/extLink.svg"; import extLink from "@/shared/assets/images/extLink.svg";
import views from "@/shared/assets/images/views.svg"; import views from "@/shared/assets/images/views.svg";
import {SkeletonPost} from "@/shared/Components/SkeletonPost/SkeletonPost";
import "./NewsItem.styles.scss"; import "./NewsItem.styles.scss";
import { useNewsById } from "@/modules/news/hooks/useNewsById"; import { useNewsById } from "@/modules/news/hooks/useNewsById";
@@ -25,10 +26,12 @@ function NewsItem() {
if (isLoading) if (isLoading)
return ( return (
<div className="mainContainer"> <div className="mainContainer">
<span className="loader"></span> {[...Array(1)].map((_, index) => (
<SkeletonPost key={index} />
))}
</div> </div>
); );
if (isError) return <div>Ошибка при загрузке новости</div>; if (isError) return <center>Ошибка при загрузке новости</center>;
const newsUrl = `${vkWallUrl}_${newsID}`; const newsUrl = `${vkWallUrl}_${newsID}`;
+5 -2
View File
@@ -2,6 +2,7 @@ import { usePostById } from "@/modules";
import { WpPost } from "@/widgets/WpPost"; import { WpPost } from "@/widgets/WpPost";
import { useParams } from "react-router-dom"; import { useParams } from "react-router-dom";
import { ProjectsList } from "@/widgets/CardList/CardList"; import { ProjectsList } from "@/widgets/CardList/CardList";
import { SkeletonPost } from "@/shared/Components/SkeletonPost/SkeletonPost";
function WpPostPage() { function WpPostPage() {
const params = useParams(); const params = useParams();
@@ -16,13 +17,15 @@ function WpPostPage() {
if (isLoading) { if (isLoading) {
return ( return (
<div className="mainContainer"> <div className="mainContainer">
<span className="loader"></span> {[...Array(1)].map((_, index) => (
<SkeletonPost key={index} />
))}
</div> </div>
); );
} }
if (isError) { if (isError) {
return <div>Ошибка при загрузке данных</div>; return <center>Ошибка при загрузке данных</center>;
} }
console.log('post', post); console.log('post', post);
return (<> return (<>
@@ -0,0 +1,88 @@
.card {
position: relative;
width: 100%;
height: 250px;
border-radius: 8px;
background-color: #e0e0e0;
overflow: hidden;
@media (max-width: 768px) {
height: 215px !important;
}
}
.pic {
width: 100%;
height: 100%;
border-radius: 8px;
background-color: #ddd;
position: relative;
}
.shimmer {
position: absolute;
top: 0;
left: -150%;
width: 100%;
height: 100%;
background: linear-gradient(90deg,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.6) 50%,
rgba(255, 255, 255, 0) 100%);
animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
0% {
left: -150%;
}
100% {
left: 150%;
}
}
.labsCard {
height: 300px;
@media (max-width: 768px) {
height: 215px !important;
}
}
.titleSkeleton {
margin: 0 10%;
@include mediaMax($mobile-xs-width) {
margin: 0 5%;
}
height: 40px;
width: 25.3%;
border-radius: 4px;
background-color: #e0e0e0;
position: relative;
overflow: hidden;
margin-bottom: 16px;
@media (max-width: 768px) {
height: 32px;
width: 70%;
margin-bottom: 16px;
}
}
.titleSkeleton::after {
content: "";
position: absolute;
top: 0;
left: -150%;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.6) 50%,
rgba(255, 255, 255, 0) 100%
);
animation: shimmer 1.5s infinite;
}
@@ -0,0 +1,23 @@
// shared/Components/SkeletonCard/SkeletonCard.tsx
import styles from "./SkeletonCard.module.scss";
interface SkeletonCardProps {
variant?: "default" | "lab";
}
const SkeletonCard = ({ variant = "default" }: SkeletonCardProps) => {
const cardClass =
variant === "lab"
? `${styles.card} ${styles.labsCard}`
: styles.card;
return (
<div className={cardClass}>
<div className={styles.pic}>
<div className={styles.shimmer}></div>
</div>
</div>
);
};
export default SkeletonCard;
@@ -0,0 +1,15 @@
.skeletonGrid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
width: 100%;
margin: 0 10%;
@media (max-width: 768px) {
grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 769px) and (max-width: 1024px) {
grid-template-columns: repeat(2, 1fr);
}
}
@@ -0,0 +1,32 @@
import React from "react";
import SkeletonCard from "./SkeletonCard";
import styles from "@/shared/styles/cardGrid.module.scss";
interface SkeletonGridProps {
count?: number;
gridConfig?: { desktop: number; tablet: number; mobile: number };
variant?: "default" | "lab";
}
export const SkeletonGrid = ({
count = 3,
gridConfig = { desktop: 3, tablet: 2, mobile: 1 },
variant = "default",
}: SkeletonGridProps) => {
return (
<div className={styles.mainContainer}>
<div
className={styles.gridСontainer}
style={{
"--desktop-columns": gridConfig.desktop,
"--tablet-columns": gridConfig.tablet,
"--mobile-columns": gridConfig.mobile,
} as React.CSSProperties}
>
{[...Array(count)].map((_, index) => (
<SkeletonCard key={index} variant={variant} />
))}
</div>
</div>
);
};
@@ -0,0 +1,109 @@
// shared/Components/SkeletonGallery/SkeletonGallery.module.scss
.skeletonGallery {
margin: 0 10%;
text-align: left;
display: block;
@media (max-width: $mobile-xs-width) {
margin: 0 5%;
}
}
.title {
height: 44px;
width: 25%;
background-color: #e0e0e0;
border-radius: 4px;
margin-bottom: 16px;
position: relative;
overflow: hidden;
@media (max-width: $tablet-max-width) {
height: 32px;
}
&::after {
content: '';
position: absolute;
top: 0;
left: -150%;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.6) 50%,
rgba(255, 255, 255, 0) 100%
);
animation: shimmer 1.5s infinite;
}
}
.images {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 32px;
@media (max-width: $tablet-max-width) {
grid-template-columns: repeat(2, 1fr);
}
@media (max-width: $mobile-xs-width) {
grid-template-columns: 1fr;
}
}
.imageContainer {
height: 352px;
background-color: #e0e0e0;
border-radius: 8px;
position: relative;
overflow: hidden;
&::after {
content: '';
position: absolute;
top: 0;
left: -150%;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.6) 50%,
rgba(255, 255, 255, 0) 100%
);
animation: shimmer 1.5s infinite;
}
}
.wide {
grid-column: span 4;
}
.narrow {
grid-column: span 2;
}
@keyframes shimmer {
0% {
left: -150%;
}
100% {
left: 150%;
}
}
@media (max-width: $tablet-max-width) {
.wide,
.narrow {
grid-column: span 1;
}
}
@media (max-width: $mobile-xs-width) {
.wide,
.narrow {
grid-column: span 1;
}
}
@@ -0,0 +1,21 @@
import styles from "./SkeletonGallery.module.scss";
export const SkeletonGallery = () => {
return (
<div className={styles.skeletonGallery}>
<div className={styles.title}></div>
<div className={styles.images}>
<div className={`${styles.imageContainer} ${styles.wide}`}></div>
<div className={`${styles.imageContainer} ${styles.narrow}`}></div>
<div className={`${styles.imageContainer} ${styles.narrow}`}></div>
<div className={`${styles.imageContainer} ${styles.narrow}`}></div>
<div className={`${styles.imageContainer} ${styles.narrow}`}></div>
<div className={`${styles.imageContainer} ${styles.narrow}`}></div>
<div className={`${styles.imageContainer} ${styles.wide}`}></div>
</div>
</div>
);
};
@@ -0,0 +1,51 @@
.card {
position: relative;
width: 100%;
height: 250px;
border-radius: 8px;
background-color: #e0e0e0;
overflow: hidden;
@media (max-width: 768px) {
height: 215px !important;
}
}
.pic {
width: 100%;
height: 100%;
border-radius: 8px;
background-color: #ddd;
position: relative;
}
.shimmer {
position: absolute;
top: 0;
left: -150%;
width: 100%;
height: 100%;
background: linear-gradient(90deg,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.6) 50%,
rgba(255, 255, 255, 0) 100%);
animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
0% {
left: -150%;
}
100% {
left: 150%;
}
}
.labsCard {
height: 300px;
@media (max-width: 768px) {
height: 215px !important;
}
}
@@ -0,0 +1,23 @@
// shared/Components/SkeletonCard/SkeletonCard.tsx
import styles from "./SkeletonCard.module.scss";
interface SkeletonCardProps {
variant?: "default" | "lab";
}
const SkeletonCard = ({ variant = "default" }: SkeletonCardProps) => {
const cardClass =
variant === "lab"
? `${styles.card} ${styles.labsCard}`
: styles.card;
return (
<div className={cardClass}>
<div className={styles.pic}>
<div className={styles.shimmer}></div>
</div>
</div>
);
};
export default SkeletonCard;
@@ -0,0 +1,15 @@
.skeletonGrid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
width: 100%;
margin: 0 10%;
@media (max-width: 768px) {
grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 769px) and (max-width: 1024px) {
grid-template-columns: repeat(2, 1fr);
}
}
@@ -0,0 +1,33 @@
// shared/ui/SkeletonGrid/SkeletonGrid.tsx
import React from "react";
import SkeletonCard from "./SkeletonCard";
import styles from "@/shared/styles/cardGrid.module.scss";
interface SkeletonGridProps {
count?: number;
gridConfig?: { desktop: number; tablet: number; mobile: number };
variant?: "default" | "lab";
}
export const SkeletonGrid = ({
count = 3,
gridConfig = { desktop: 3, tablet: 2, mobile: 1 },
variant = "default",
}: SkeletonGridProps) => {
return (
<div className={styles.mainContainer}>
<div
className={styles.gridСontainer}
style={{
"--desktop-columns": gridConfig.desktop,
"--tablet-columns": gridConfig.tablet,
"--mobile-columns": gridConfig.mobile,
} as React.CSSProperties}
>
{[...Array(count)].map((_, index) => (
<SkeletonCard key={index} variant={variant} />
))}
</div>
</div>
);
};
@@ -0,0 +1,101 @@
.skeletonPost {
padding-top: 10px;
padding-bottom: 20px;
display: flex;
flex-direction: column;
width: 100%;
gap: 16px;
}
.topLine {
height: 32px;
width: 300px;
background-color: #e0e0e0;
border-radius: 4px;
position: relative;
overflow: hidden;
&::after {
content: '';
position: absolute;
top: 0;
left: -150%;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.6) 50%,
rgba(255, 255, 255, 0) 100%
);
animation: shimmer 1.5s infinite;
}
}
.textLine {
height: 32px;
background-color: #e0e0e0;
border-radius: 4px;
position: relative;
overflow: hidden;
&::after {
content: '';
position: absolute;
top: 0;
left: -150%;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.6) 50%,
rgba(255, 255, 255, 0) 100%
);
animation: shimmer 1.5s infinite;
}
}
.splitLine {
display: flex;
justify-content: space-between;
gap: 16px;
background: none;
overflow: visible;
> div {
height: 32px;
border-radius: 4px;
background-color: #e0e0e0;
position: relative;
overflow: hidden;
&::after {
content: '';
position: absolute;
top: 0;
left: -150%;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.6) 50%,
rgba(255, 255, 255, 0) 100%
);
animation: shimmer 1.5s infinite;
}
}
}
.thirty { width: 30%; }
.seventy { width: 70%; }
@keyframes shimmer {
0% {
left: -150%;
}
100% {
left: 150%;
}
}
@@ -0,0 +1,22 @@
import styles from "./SkeletonPost.module.scss";
export const SkeletonPost = () => {
return (
<div className={styles.skeletonPost}>
<div className={styles.topLine}></div>
<div className={styles.textLine}></div>
<div className={styles.splitLine}>
<div className={styles.seventy}></div>
<div className={styles.thirty}></div>
</div>
<div className={styles.textLine}></div>
<div className={styles.splitLine}>
<div className={styles.thirty}></div>
<div className={styles.seventy}></div>
</div>
<div className={styles.textLine}></div>
</div>
);
};
@@ -0,0 +1,60 @@
.sliderSkeleton {
width: 100%;
margin: 0 auto;
position: relative;
padding: 10px 0;
}
.slideContainer {
display: flex;
gap: 20px;
@media (max-width: 768px) {
flex-direction: column;
gap: 15px;
}
}
.slide {
flex: 1;
position: relative;
overflow: hidden;
border-radius: 8px;
}
.image {
width: 100%;
height: 350px;
background-color: #e0e0e0;
position: relative;
overflow: hidden;
@media (max-width: 768px) {
height: 250px;
}
&::after {
content: '';
position: absolute;
top: 0;
left: -150%;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.6) 50%,
rgba(255, 255, 255, 0) 100%
);
animation: shimmer 1.5s infinite;
}
}
@keyframes shimmer {
0% {
left: -150%;
}
100% {
left: 150%;
}
}
@@ -0,0 +1,15 @@
import styles from "./SkeletonSlider.module.scss";
export const SkeletonSlider = () => {
return (
<div className={styles.sliderSkeleton}>
<div className={styles.slideContainer}>
{[...Array(2)].map((_, index) => (
<div key={index} className={styles.slide}>
<div className={styles.image}></div>
</div>
))}
</div>
</div>
);
};
@@ -0,0 +1,41 @@
// shared/lib/withLoading/withLoading.tsx
import React from "react";
import { SkeletonGrid } from "../SkeletonGrid/SkeletonGrid";
import styles from "../Skeleton/SkeletonCard.module.scss";
interface WithLoadingProps {
isLoading: boolean;
isError: boolean;
count?: number;
gridConfig?: { desktop: number; tablet: number; mobile: number };
variant?: "default" | "lab";
children: React.ReactNode;
}
export const WithLoading = ({
isLoading,
isError,
count = 3,
gridConfig = { desktop: 3, tablet: 2, mobile: 1 },
variant = "default",
children,
}: WithLoadingProps) => {
if (isLoading) {
return (
<div>
<div className={styles.titleSkeleton}></div>
<SkeletonGrid
count={count}
gridConfig={gridConfig}
variant={variant}
/>
</div>
);
}
if (isError) {
return <center>Ошибка при загрузке данных</center>;
}
return <>{children}</>;
};
+15 -2
View File
@@ -2,7 +2,8 @@ import Parse from "html-react-parser";
export type ParsedContent = export type ParsedContent =
| { type: "html"; element: any } // Сохраняем исходные HTML-элементы | { type: "html"; element: any } // Сохраняем исходные HTML-элементы
| { type: "mediablock"; value: string[] }; // Группируем медиа-элементы | { type: "mediablock"; value: string[] } // Группируем медиа-элементы
| { type: "slider"; value: string[] }; // Группируем картинки под слайдер
export const parseContent = (html: string): ParsedContent[] => { export const parseContent = (html: string): ParsedContent[] => {
const elements = Parse(html); const elements = Parse(html);
@@ -19,7 +20,7 @@ export const parseContent = (html: string): ParsedContent[] => {
} }
// Обработка медиа-элементов (img внутри figure) // Обработка медиа-элементов (img внутри figure)
if (node.type === "figure") { if (node.type === "figure" && node.props.className.includes('wp-block-image')) {
const imgSrc = node.props.children?.props?.src; const imgSrc = node.props.children?.props?.src;
if (imgSrc) { if (imgSrc) {
mediaBuffer.push(imgSrc); mediaBuffer.push(imgSrc);
@@ -33,6 +34,18 @@ export const parseContent = (html: string): ParsedContent[] => {
mediaBuffer = []; mediaBuffer = [];
} }
if (node.props.className?.includes('wp-block-gallery')) {
const slider = [];
for (const child of node.props.children) {
const imgSrc = child.props?.children.props?.src;
if (imgSrc) {
slider.push(imgSrc);
}
}
result.push({ type: "slider", value: slider });
return;
}
// Сохраняем текущий элемент как есть // Сохраняем текущий элемент как есть
result.push({ type: "html", element: node }); result.push({ type: "html", element: node });
}; };
@@ -0,0 +1,41 @@
import { useEffect } from 'react';
type ResizeHandler = (parent: HTMLElement, childHeight: number) => void;
interface UseResizeObserverConfig {
parentSelector: string;
childSelector?: string;
onResize?: ResizeHandler;
}
export const useResizeObserver = ({
parentSelector,
childSelector = 'blockquote',
onResize = (parent, height) => {
parent.style.paddingBottom = `calc(${height}px + 2em)`;
}
}: UseResizeObserverConfig) => {
useEffect(() => {
const resizeObserver = new ResizeObserver(entries => {
entries.forEach(entry => {
const parent = entry.target as HTMLElement;
const child = parent.querySelector(childSelector) as HTMLElement | null;
if (child) {
const childHeight = child.offsetHeight;
onResize(parent, childHeight);
}
});
});
const elements = document.querySelectorAll(parentSelector);
const elementsArray = Array.from(elements) as HTMLElement[];
elementsArray.forEach(element => resizeObserver.observe(element));
return () => {
elementsArray.forEach(element => resizeObserver.unobserve(element));
resizeObserver.disconnect();
};
}, [parentSelector, childSelector, onResize]);
};
+52
View File
@@ -0,0 +1,52 @@
// shared/styles/cardGrid.module.scss
:export {
--desktop-columns: 3;
--tablet-columns: 2;
--mobile-columns: 1;
}
.mainContainer {
margin: 0 10%;
@include mediaMax($mobile-xs-width) {
margin: 0 5%;
}
}
.gridСontainer {
display: grid;
gap: 2rem;
margin: 0 auto;
width: 100%;
max-width: 100%;
box-sizing: border-box;
grid-template-columns: repeat(3, 1fr);
@media (max-width: 1024px) {
grid-template-columns: repeat(var(--tablet-columns), 1fr);
}
@media (max-width: 768px) {
grid-template-columns: repeat(var(--mobile-columns), 1fr);
}
}
.cardSizes {
&--lab {
height: 300px;
@media (max-width: 768px) {
height: 215px;
}
}
&--news,
&--project {
height: 250px;
@media (max-width: 768px) {
height: 215px;
}
}
}
+1 -1
View File
@@ -291,7 +291,7 @@ declare namespace App {
value: string[]; value: string[];
} }
export type ParsedContent = HtmlElement | MediaBlock; export type ParsedContent = HtmlElement | MediaBlock | Slider;
export interface WpPost { export interface WpPost {
id: number; id: number;
+3 -6
View File
@@ -1,15 +1,12 @@
.mainContainer { @import "@/shared/styles/cardGrid.module.scss";
margin: 0 10%;
@include mediaMax($mobile-xs-width) {
margin: 0 5%;
}
}
.title { .title {
font-size: 36px; font-size: 36px;
font-weight: 600; font-weight: 600;
line-height: 44px; line-height: 44px;
margin-top: 0; margin-top: 0;
margin-bottom: 8px; margin-bottom: 8px;
@include mediaMax($tablet-max-width) { @include mediaMax($tablet-max-width) {
font-size: 24px; font-size: 24px;
margin-top: 0; margin-top: 0;
+20 -30
View File
@@ -1,5 +1,6 @@
// pages/MainPage/ui/MainPage/Lists.tsx // pages/MainPage/ui/MainPage/Lists.tsx
import { CardListTemplate } from "@/widgets/CardList/CardListTemplate"; import { CardListTemplate } from "@/widgets/CardList/CardListTemplate";
import { WithLoading } from "@/shared/Components/WithLoading/WithLoading";
import { GridConfig } from "@/widgets/CardList/types"; import { GridConfig } from "@/widgets/CardList/types";
import { usePosts } from "@/modules/posts/hooks/usePosts"; import { usePosts } from "@/modules/posts/hooks/usePosts";
import styles from "./CardList.module.scss"; import styles from "./CardList.module.scss";
@@ -20,17 +21,13 @@ const NewsList = ({
}: ListProps) => { }: ListProps) => {
const { data: newsData, isLoading, isError } = useNews(); const { data: newsData, isLoading, isError } = useNews();
if (isLoading)
return (
<div className="mainContainer">
<h2 className={styles.title}>Новости</h2>
<span className="loader"></span>
</div>
);
if (isError) return <div>Ошибка при загрузке данных</div>;
return ( return (
<WithLoading
isLoading={isLoading}
isError={isError}
count={4}
gridConfig={gridConfig}
>
<div className={styles.mainContainer}> <div className={styles.mainContainer}>
{newsData && ( {newsData && (
<CardListTemplate <CardListTemplate
@@ -41,6 +38,7 @@ const NewsList = ({
/> />
)} )}
</div> </div>
</WithLoading>
); );
}; };
@@ -50,17 +48,12 @@ const LabsList = ({
const { data: postsData, isLoading, isError } = usePosts(); const { data: postsData, isLoading, isError } = usePosts();
const labs = postsData?.labs ? Object.values(postsData.labs) : []; const labs = postsData?.labs ? Object.values(postsData.labs) : [];
if (isLoading)
return (
<div className="mainContainer">
<h2 className={styles.title}>Лаборатории</h2>
<span className="loader"></span>
</div>
);
if (isError) return <div>Ошибка при загрузке данных</div>;
return ( return (
<WithLoading
isLoading={isLoading}
isError={isError}
gridConfig={gridConfig}
>
<div className={styles.mainContainer}> <div className={styles.mainContainer}>
<CardListTemplate <CardListTemplate
items={transformPostsToCardData(labs)} items={transformPostsToCardData(labs)}
@@ -69,6 +62,7 @@ const LabsList = ({
title="Наши лаборатории" title="Наши лаборатории"
/> />
</div> </div>
</WithLoading>
); );
}; };
@@ -79,17 +73,12 @@ const ProjectsList = ({
const { data, isError, isLoading } = usePostProjects(tag); const { data, isError, isLoading } = usePostProjects(tag);
const projects = data ?? []; const projects = data ?? [];
if (isLoading)
return (
<div className="mainContainer">
<h2 className={styles.title}>Наши проекты</h2>
<span className="loader"></span>
</div>
);
if (isError || !projects) return <div>Ошибка при загрузке данных</div>;
return ( return (
<WithLoading
isLoading={isLoading}
isError={isError}
gridConfig={gridConfig}
>
<div className={styles.mainContainer}> <div className={styles.mainContainer}>
<CardListTemplate <CardListTemplate
//@ts-ignore //@ts-ignore
@@ -99,6 +88,7 @@ const ProjectsList = ({
title="Наши проекты" title="Наши проекты"
/> />
</div> </div>
</WithLoading>
); );
}; };
@@ -1,36 +1,40 @@
@import "@/shared/styles/cardGrid.module.scss";
.title { .title {
font-size: 36px; font-size: 36px;
font-weight: 600; font-weight: 600;
line-height: 44px; line-height: 44px;
margin-top: 0; margin-top: 0;
margin-bottom: 8px; margin-bottom: 8px;
@include mediaMax($tablet-max-width) { @include mediaMax($tablet-max-width) {
font-size: 24px; font-size: 24px;
margin-top: 0; margin-top: 0;
} }
} }
.list { .list {
display: grid; @extend .gridСontainer;
gap: 2rem;
width: 100%;
max-width: 100%;
box-sizing: border-box;
margin-bottom: 32px;
&__lab { &__lab {
grid-template-columns: repeat(var(--desktop-columns, 3), 1fr); grid-template-columns: repeat(var(--desktop-columns), 1fr);
@include mediaMax($desktop-small-width) { @include mediaMax($desktop-small-width) {
grid-template-columns: repeat(var(--tablet-columns, 3), 1fr); grid-template-columns: repeat(var(--tablet-columns), 1fr);
} }
@include mediaMax($tablet-max-width) { @include mediaMax($tablet-max-width) {
grid-template-columns: repeat(var(--mobile-columns, 3), 1fr); grid-template-columns: repeat(var(--mobile-columns), 1fr);
} }
} }
&__news { &__news {
grid-template-columns: repeat(var(--desktop-columns, 3), 1fr); grid-template-columns: repeat(var(--desktop-columns, 3), 1fr);
@include mediaMax($desktop-small-width) { @include mediaMax($desktop-small-width) {
grid-template-columns: repeat(var(--tablet-columns, 3), 1fr); grid-template-columns: repeat(var(--tablet-columns, 3), 1fr);
} }
@include mediaMax($tablet-max-width) { @include mediaMax($tablet-max-width) {
grid-template-columns: repeat(var(--mobile-columns, 3), 1fr); grid-template-columns: repeat(var(--mobile-columns, 3), 1fr);
} }
@@ -38,9 +42,11 @@
&__project { &__project {
grid-template-columns: repeat(var(--desktop-columns, 3), 1fr); grid-template-columns: repeat(var(--desktop-columns, 3), 1fr);
@include mediaMax($desktop-small-width) { @include mediaMax($desktop-small-width) {
grid-template-columns: repeat(var(--tablet-columns, 3), 1fr); grid-template-columns: repeat(var(--tablet-columns, 3), 1fr);
} }
@include mediaMax($tablet-max-width) { @include mediaMax($tablet-max-width) {
grid-template-columns: repeat(var(--mobile-columns, 3), 1fr); grid-template-columns: repeat(var(--mobile-columns, 3), 1fr);
} }
+5 -2
View File
@@ -1,5 +1,6 @@
import { usePosts } from "@/modules/posts/hooks/usePosts"; import { usePosts } from "@/modules/posts/hooks/usePosts";
import { WpPost } from "@/widgets/WpPost"; import { WpPost } from "@/widgets/WpPost";
import {SkeletonPost} from "@/shared/Components/SkeletonPost/SkeletonPost";
interface CategoryPageProps { interface CategoryPageProps {
category: string; category: string;
@@ -15,10 +16,12 @@ export function CategoryPage({ category }: CategoryPageProps) {
if (isLoading) if (isLoading)
return ( return (
<div className="mainContainer"> <div className="mainContainer">
<span className="loader"></span> {[...Array(1)].map((_, index) => (
<SkeletonPost key={index} />
))}
</div> </div>
); );
if (isError) return <div>Ошибка при загрузке данных</div>; if (isError) return <center>Ошибка при загрузке данных</center>;
return ( return (
<> <>
+39 -11
View File
@@ -1,4 +1,3 @@
#footer { #footer {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@@ -80,9 +79,11 @@
gap: 32px; gap: 32px;
justify-content: center; justify-content: center;
} }
.copyright { .copyright {
display: none; display: none;
} }
.visible { .visible {
display: block; display: block;
} }
@@ -100,6 +101,7 @@
.visible { .visible {
display: none !important; display: none !important;
} }
.copyright { .copyright {
display: block !important; // Показываем текст внизу только в мобильной версии display: block !important; // Показываем текст внизу только в мобильной версии
text-align: center; text-align: center;
@@ -122,6 +124,7 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
gap: 20px; gap: 20px;
.logo { .logo {
height: auto; height: auto;
width: 100%; width: 100%;
@@ -166,32 +169,57 @@
.footer-links-container { .footer-links-container {
display: flex; display: flex;
flex-direction: column; /* Arrange links vertically */ flex-direction: column;
justify-content: space-between; /* Spread out the items */ /* Arrange links vertically */
height: 100%; /* Make sure the container takes up full height */ justify-content: space-between;
/* Spread out the items */
height: 100%;
/* Make sure the container takes up full height */
} }
.footer-links { .footer-links {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
gap: 30px; // Между столбиками будет отступ gap: 30px;
.footer-column { .footer-column {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 20px; // Расстояние между ссылками в одном столбике gap: 20px;
a { a {
color: white; // Белый цвет текста color: white;
text-decoration: none; // Убираем подчеркивание text-decoration: none;
font-size: 16px; // Размер текста font-size: 16px;
position: relative;
display: inline-block;
width: fit-content;
&::after {
content: '';
position: absolute;
left: 50%;
bottom: -5px;
width: 0;
height: 1px;
background-color: white;
transition: width 0.3s ease, left 0.3s ease;
transform: translateX(-50%);
}
&:hover::after {
width: 100%;
left: 50%;
}
} }
} }
} }
.privacy-policy { .privacy-policy {
align-self: flex-end; /* Align the "Политика конфиденциальности" link to the bottom */ align-self: flex-end;
margin-top: auto; /* Ensure the link is pushed to the bottom */ /* Align the "Политика конфиденциальности" link to the bottom */
margin-top: auto;
/* Ensure the link is pushed to the bottom */
} }
} }
+1 -1
View File
@@ -1,5 +1,5 @@
#numbers { #numbers {
margin-bottom: 48px; margin-bottom: 24px;
img { img {
pointer-events: none; pointer-events: none;
+1 -1
View File
@@ -10,7 +10,7 @@ $logo-size: 200px;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
h1 { h1 {
font-family: Montserrat; font-family: 'Montserrat', sans-serif;
font-size: 36px; font-size: 36px;
font-weight: 600; font-weight: 600;
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
@@ -13,7 +13,7 @@
font-weight: 600; font-weight: 600;
line-height: 44px; line-height: 44px;
margin-top: 0; margin-top: 0;
margin-bottom: 8px; margin-bottom: 16px;
@include mediaMax($tablet-max-width) { @include mediaMax($tablet-max-width) {
font-size: 24px; font-size: 24px;
+11 -9
View File
@@ -1,5 +1,6 @@
import { useState } from "react"; import { useState } from "react";
import { useMedia } from "@/modules/media/hooks/useMedia"; import { useMedia } from "@/modules/media/hooks/useMedia";
import { SkeletonGallery } from "@/shared/Components/SkeletonGallery/SkeletonGallery";
import "./PhotoGallery.style.scss" import "./PhotoGallery.style.scss"
@@ -14,16 +15,19 @@ const PhotoGallery = ({ images }: PhotoGalleryProps) => {
const filteredMedia = images const filteredMedia = images
? images.map((src, id) => ({ id, src })) ? images.map((src, id) => ({ id, src }))
: mediaData || []; // без фильтра : mediaData || [];
if (isLoading) if (isLoading) {
return ( return (
<div className="mainContainer"> <div>
<span className="loader"></span> <SkeletonGallery />
</div> </div>
); );
}
if (isError) return <div>Ошибка при загрузке медиа</div>; if (isError || !filteredMedia || filteredMedia.length === 0) {
return <center>Ошибка при загрузке медиа</center>;
}
return ( return (
<div className="mainContainer"> <div className="mainContainer">
@@ -39,12 +43,10 @@ const PhotoGallery = ({ images }: PhotoGalleryProps) => {
</div> </div>
))} ))}
</div> </div>
<div className="btn">Загрузить ещё</div>
<div className="btn">
Загрузить ещё
</div>
</div> </div>
); );
}; };
export default PhotoGallery; export default PhotoGallery;
+13 -8
View File
@@ -10,14 +10,16 @@ import "swiper/css/pagination";
import "./Slider.styles.scss"; import "./Slider.styles.scss";
import { MediaItem } from "@/modules/media/api/get"; import { MediaItem } from "@/modules/media/api/get";
import { SkeletonSlider } from "@/shared/Components/SkeletonSlider/SkeletonSlider";
interface SliderProps { interface SliderProps {
autoPlay?: boolean; autoPlay?: boolean;
autoPlayTime?: number; autoPlayTime?: number;
images?: string[]; images?: string[];
category?: string; category?: string;
customPerSlide: number;
} }
// Update the SliderContextType interface to include the missing properties
interface SliderContextType { interface SliderContextType {
slideNumber: number; slideNumber: number;
mediaList: MediaItem[]; mediaList: MediaItem[];
@@ -26,9 +28,6 @@ interface SliderContextType {
slidesCount: number; // Added for Dots component slidesCount: number; // Added for Dots component
} }
// Then in your Slider component, update the context value:
// Create context with default values
export const SliderContext = createContext<SliderContextType>({ export const SliderContext = createContext<SliderContextType>({
slideNumber: 0, slideNumber: 0,
mediaList: [], mediaList: [],
@@ -41,9 +40,11 @@ function Slider({
autoPlayTime = 3000, autoPlayTime = 3000,
images, images,
category = "gallery", category = "gallery",
customPerSlide = 0
}: SliderProps) { }: SliderProps) {
const { data: mediaData, isLoading, isError } = useMedia(); const { data: mediaData, isLoading, isError } = useMedia();
const [itemsPerSlide, setItemsPerSlide] = useState<number>( const [itemsPerSlide, setItemsPerSlide] = useState<number>(
customPerSlide !== 0 ? 4 :
window.innerWidth <= 768 ? 1 : 2 window.innerWidth <= 768 ? 1 : 2
); );
const [enableButtons, setEnableButtons] = useState<boolean>(false); const [enableButtons, setEnableButtons] = useState<boolean>(false);
@@ -64,7 +65,7 @@ function Slider({
useEffect(() => { useEffect(() => {
const numberOfSlides = filteredMedia.length; const numberOfSlides = filteredMedia.length;
if (numberOfSlides > 2) { if (numberOfSlides > 2 || customPerSlide !== 0) {
setEnableButtons(true); setEnableButtons(true);
} else if (numberOfSlides === 1) { } else if (numberOfSlides === 1) {
setItemsPerSlide(1); setItemsPerSlide(1);
@@ -73,11 +74,13 @@ function Slider({
if (isLoading) if (isLoading)
return ( return (
<div className="mainContainer"> <div >
<span className="loader"></span> {[...Array(1)].map((_, index) => (
<SkeletonSlider key={index} />
))}
</div> </div>
); );
if (isError) return <div>Ошибка при загрузке медиа</div>; if (isError) return <center>Ошибка при загрузке медиа</center>;
// Create context value // Create context value
const contextValue: SliderContextType = { const contextValue: SliderContextType = {
@@ -91,6 +94,7 @@ function Slider({
return ( return (
<SliderContext.Provider value={contextValue}> <SliderContext.Provider value={contextValue}>
<div className="slider"> <div className="slider">
<div className="full-width-container">
<Swiper <Swiper
modules={[Navigation, Pagination]} modules={[Navigation, Pagination]}
spaceBetween={20} spaceBetween={20}
@@ -124,6 +128,7 @@ function Slider({
))} ))}
</Swiper> </Swiper>
</div> </div>
</div>
</SliderContext.Provider> </SliderContext.Provider>
); );
} }
+2 -3
View File
@@ -64,10 +64,9 @@ $btn-primary-bg: linear-gradient(
text-align: left; text-align: left;
font-size: 18px; font-size: 18px;
color: #000; color: #000;
font-family: "Montserrat"; font-family: 'Montserrat', sans-serif;
font-style: normal; font-style: normal;
font-display: swap; font-display: swap;
src: url("../fonts/Montserrat/Montserrat-VariableFont_wght.ttf") format("truetype");
} }
.bold { .bold {
@@ -100,5 +99,5 @@ $btn-primary-bg: linear-gradient(
font-size: 20px; font-size: 20px;
font-weight: 600; font-weight: 600;
text-align: center; text-align: center;
font-family: "Montserrat"; font-family: 'Montserrat', sans-serif;
} }
+192
View File
@@ -0,0 +1,192 @@
$color-highlight: #072AC8;
$table-header-color: #EEEEEE;
$table-body-bg: #ffffff;
$color-usual: #ACACAC;
$border-raduis: 16px;
$background-tape: #F5F5F7;
$slider: 476px;
$swiper-button-size: 48px;
$swiper-button-arrow-size: 20px;
:root {
--wp--preset--spacing--10: 5%;
--wp--preset--spacing--20: 10%;
--wp--preset--spacing--30: 15%;
--wp--preset--spacing--40: 20%;
--wp--preset--spacing--50: 25%;
--wp--preset--spacing--60: 30%;
}
.project {
.header {
text-align: center;
margin-bottom: 2em;
}
.wp-block-columns {
margin-bottom: 2em;
}
.is-layout-flex {
display: flex;
justify-content: space-between;
gap: 2em;
figure {
img {
max-width: 100%;
height: auto;
object-fit: contain !important; // Wordpress накидывает styles к элементу, приходится перебивать
}
}
}
.has-text-align-center {
text-align: center;
}
.has-text-align-justify {
text-align: justify;
}
.is-style-rounded * {
border-radius: 16px;
}
// "Цитаты"
.wp-block-pullquote {
* {
margin-bottom: 0;
}
blockquote {
display: flex;
justify-content: center;
position: absolute;
left: 0;
width: 100%;
padding: 16px 0;
background: $background-tape;
p {
display: inline-block;
max-width: 40%;
text-align: center;
}
}
}
// Таблица
.table-wrapper {
border: 1px solid $table-header-color;
border-radius: $border-raduis;
overflow-x: auto;
background: $table-header-color;
.comparison-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
font-size: 18px;
word-wrap: normal;
th,
td {
max-width: 200px;
border: none;
padding: 12px 16px;
vertical-align: middle;
background: $table-body-bg;
}
tr:not(:last-child) th,
tr:not(:last-child) td {
border-bottom: 1px solid $table-header-color;
}
tr:last-child th,
tr:last-child td {
border-bottom: 1px solid $table-body-bg;
}
thead th {
background-color: $table-header-color;
font-weight: 400;
padding: 12px 16px;
border: none;
}
tbody td:not(:first-child),
thead th:not(:first-child) {
text-align: center;
}
thead th.highlight {
font-weight: 600;
font-size: 24px;
border-radius: 10px 10px 0 0;
border-bottom: 1px solid $color-highlight;
color: #ffffff;
background-color: $color-highlight;
}
tbody td.highlight {
border: 1px solid $color-highlight;
border-top: none;
.icon {
filter: brightness(0) saturate(100%) invert(26%) sepia(94%) saturate(2350%) hue-rotate(225deg) brightness(95%) contrast(93%);
}
}
}
}
.slider {
position: static;
height: $slider;
.full-width-container {
position: absolute;
left: 0;
width: 100%;
}
.swiper {
padding-top: 4em;
.swiper-wrapper .swiper-slide .slide-image {
border-radius: 0;
}
.swiper-button-prev,
.swiper-button-next {
top: calc($swiper-button-size / 2);
left: auto;
width: $swiper-button-size;
height: $swiper-button-size;
color: black;
border: 2px solid black;
border-radius: 100%;
}
.swiper-button-prev::after,
.swiper-button-next::after {
font-size: $swiper-button-arrow-size;
}
.swiper-button-prev {
right: calc(10% + 24px + $swiper-button-size);
}
.swiper-button-next {
right: 10%;
}
.swiper-pagination {
display: none;
}
}
}
}
+11 -3
View File
@@ -1,10 +1,13 @@
import { ReactNode } from "react"; import { ReactNode } from "react";
import MediaBlock from "@/widgets/MediaBlock/MediaBlock"; import MediaBlock from "@/widgets/MediaBlock/MediaBlock";
import { PageContent, PageHeader } from "@/widgets/WpPost"; import { PageContent, PageHeader } from "@/widgets/WpPost";
import { useResizeObserver } from "@/shared/lib/ResizeObserver/ResizeObserver";
import { App } from "@/shared/types/app"; import { App } from "@/shared/types/app";
import "./Projects.scss";
import Slider from "../Slider/Slider";
interface WpPostProps { interface WpPostProps {
post: App.WpPostPage; post: App.WpPostPage;
children?: ReactNode; children?: ReactNode;
@@ -14,8 +17,11 @@ export default function WpPost({
post, post,
children, children,
}: WpPostProps) { }: WpPostProps) {
useResizeObserver({parentSelector: '.wp-block-pullquote'});
// useResizeObserver({parentSelector: ".swiper", childSelector: ".swiper-wrapper"});
return ( return (
<> <div className={post.categories?.includes('projects') ? "project" : ""}>
<PageHeader className="header"> <PageHeader className="header">
<h1>{post.title}</h1> <h1>{post.title}</h1>
</PageHeader> </PageHeader>
@@ -24,11 +30,13 @@ export default function WpPost({
post.content.map((el, index) => { post.content.map((el, index) => {
if (el.type === "mediablock") { if (el.type === "mediablock") {
return <MediaBlock key={index} images={el.value} />; return <MediaBlock key={index} images={el.value} />;
} else if (el.type === "slider") {
return <Slider images={el.value} customPerSlide={4} />
} }
return <div key={index}>{el.element}</div>; return <div key={index}>{el.element}</div>;
})} })}
{children} {children}
</PageContent> </PageContent>
</> </div>
); );
} }
+1 -1
View File
@@ -3,7 +3,7 @@ import react from "@vitejs/plugin-react";
import path from "path"; import path from "path";
export default defineConfig({ export default defineConfig({
base: "/wp-content/reactpress/apps/skb/dist/index.html", base: '/wp-content/reactpress/apps/skb/dist/',
plugins: [react()], plugins: [react()],
resolve: { resolve: {
alias: { alias: {