From ea0d791657429cb48bde8d72823dea3360cbb44c Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sat, 26 Oct 2024 18:52:05 +0300 Subject: [PATCH] telegram --- quartz/components/_Remark.tsx | 20 +++++- quartz/styles/custom.scss | 131 ++++++++++++++++++++++++++++++++++ 2 files changed, 150 insertions(+), 1 deletion(-) diff --git a/quartz/components/_Remark.tsx b/quartz/components/_Remark.tsx index 4cb2ff0ff..22cc9b5bb 100644 --- a/quartz/components/_Remark.tsx +++ b/quartz/components/_Remark.tsx @@ -44,7 +44,25 @@ export default ((opts: Options) => { return ( <> -
+
+ +
+ + + +
Подписывайся
+
+
+
на Struchkov.Dev в Telegram
+
+
+ + + +
+
diff --git a/quartz/styles/custom.scss b/quartz/styles/custom.scss index 6f6666c17..407a43ad1 100644 --- a/quartz/styles/custom.scss +++ b/quartz/styles/custom.scss @@ -100,4 +100,135 @@ article strong { input[type="checkbox"] { border-color: var(--secondary); +} + +.notice { + border-radius: 8px; + align-items: flex-start; + border-radius: 8px; + border-radius: var(--default-border-radius); + display: flex; + flex-direction: column; + overflow: hidden; + padding: 1rem; + position: relative +} + +.notice.notice-telegram { + background-color: #5381bd +} + +.notice.notice-twitter { + background-color: #1da1f2 +} + +.notice.notice-comments { + background-color: #2c678d +} + +.notice.notice-donate { + background-color: #ee5162; + background-color: var(--notice-donate) +} + +.notice__head { + align-items: center; + border: 1px dashed rgba(206,226,241,.85); + border-radius: 6px; + display: flex; + padding: .5rem 2rem +} + +.notice__head-icon { + color: #fff; + width: 1.25rem +} + +.notice__head-text { + color: #fff; + font-size: .9375rem; + letter-spacing: .0625rem; + margin: 0 0 0 1rem +} + +.kg-width-wide .notice__head-text { + font-size: 1.1rem +} + +.notice__tail { + margin: .5rem 0 0 +} + +.notice__tail-left { + margin: 0 .5rem +} + +.notice__tail-text { + color: #fff; + font-size: .9375rem; + letter-spacing: .03125rem +} + +.kg-width-wide .notice__tail-text { + font-size: 1.3rem +} + +.notice__skin { + position: absolute; + right: 1rem; + top: 1rem +} + +.notice__skin-icon { + color: rgba(206,226,241,.15); + width: 10rem +} + +@media only screen and (min-width: 36em) { + .notice { + align-items:center; + flex-direction: row + } +} + +@media only screen and (min-width: 48em) { + .notice { + padding:1rem 3rem + } + + .kg-width-wide .notice { + padding: 2rem 3rem + } +} + +@media only screen and (min-width: 36em) { + .notice__tail { + margin:0 0 0 1.25rem + } + + .notice__tail-left { + margin: 0 1.25rem 0 0 + } + + .notice__tail-text { + font-size: 1.0625rem + } +} + +@media only screen and (min-width: 48em) { + .notice__skin { + right:3rem + } +} + +@media (max-width: 700px) { + .notice__tail-left { + display:none + } +} + +@media (max-width: 980px) { + .footer-notice .notice { + border-radius:0 + } } \ No newline at end of file