From 5c1ebf1055d33b8ad4a6f63c0b4bfce7f742b181 Mon Sep 17 00:00:00 2001 From: ifraimka1 Date: Mon, 24 Mar 2025 18:35:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D1=89=D0=B8=D0=B5=20=D1=81=D1=82?= =?UTF-8?q?=D0=B8=D0=BB=D0=B8=20=D0=B4=D0=BB=D1=8F=20=D0=BA=D0=B0=D1=81?= =?UTF-8?q?=D1=82=D0=BE=D0=BC=D0=BD=D1=8B=D1=85=20=D0=BF=D1=80=D0=BE=D0=B5?= =?UTF-8?q?=D0=BA=D1=82=D0=BE=D0=B2:=20"=D0=A6=D0=B8=D1=82=D0=B0=D1=82?= =?UTF-8?q?=D1=8B",=20=D1=82=D0=B0=D0=B1=D0=BB=D0=B8=D1=86=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Projects/components/Project.jsx | 2 + .../Projects/components/Project.styles.scss | 1 + .../Project.TrashSensor.styles.scss | 69 ++++++++++++++++++ src/pages/components/PagePost.styles.scss | 72 +++++++++++++++++++ 4 files changed, 144 insertions(+) create mode 100644 src/pages/Projects/components/Project.styles.scss create mode 100644 src/pages/Projects/components/uniqueStyles/Project.TrashSensor.styles.scss create mode 100644 src/pages/components/PagePost.styles.scss diff --git a/src/pages/Projects/components/Project.jsx b/src/pages/Projects/components/Project.jsx index 6767ef0..b5ec191 100644 --- a/src/pages/Projects/components/Project.jsx +++ b/src/pages/Projects/components/Project.jsx @@ -5,6 +5,8 @@ import { PagePost } from "../../components"; import { getProjectByID } from "../../../api"; +import "./Project.styles.scss"; + function Project() { const [project, setProject] = useState(); diff --git a/src/pages/Projects/components/Project.styles.scss b/src/pages/Projects/components/Project.styles.scss new file mode 100644 index 0000000..ec44a32 --- /dev/null +++ b/src/pages/Projects/components/Project.styles.scss @@ -0,0 +1 @@ +@import "./uniqueStyles/Project.TrashSensor.styles.scss"; \ No newline at end of file diff --git a/src/pages/Projects/components/uniqueStyles/Project.TrashSensor.styles.scss b/src/pages/Projects/components/uniqueStyles/Project.TrashSensor.styles.scss new file mode 100644 index 0000000..b337ac8 --- /dev/null +++ b/src/pages/Projects/components/uniqueStyles/Project.TrashSensor.styles.scss @@ -0,0 +1,69 @@ +$color-highlight: #072AC8; +$table-header-color: #EEEEEE; +$table-body-bg: #ffffff; +$color-usual: #ACACAC; +$border-raduis: 16px; + + +.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: 20px; + + 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%); + } + } + } +} \ No newline at end of file diff --git a/src/pages/components/PagePost.styles.scss b/src/pages/components/PagePost.styles.scss new file mode 100644 index 0000000..c40b148 --- /dev/null +++ b/src/pages/components/PagePost.styles.scss @@ -0,0 +1,72 @@ +$background-tape: #F5F5F7; + +: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%; +} + +.content>h1, +.content>h2, +.content>h3 { + margin-bottom: 1em; +} + +.custom { + .header { + text-align: center; + margin-bottom: 4em; + } +} + +.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; +} + +.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; + } + } +} +