From 33f30032a7b91857867213b580eaf21c89ab35a2 Mon Sep 17 00:00:00 2001
From: Mykola Fant
Date: Tue, 22 Oct 2024 11:18:26 +0300
Subject: [PATCH 1/4] global check-links
---
src/css/cookie.css | 27 +++++++++++++++++----------
src/css/vars.css | 2 +-
src/partials/cookie.hbs | 16 +++++++++++-----
src/partials/head-scripts.hbs | 2 +-
4 files changed, 30 insertions(+), 17 deletions(-)
diff --git a/src/css/cookie.css b/src/css/cookie.css
index 9ba589db..923b3b06 100644
--- a/src/css/cookie.css
+++ b/src/css/cookie.css
@@ -2,22 +2,29 @@
position: fixed;
display: none;
bottom: 0;
+ left: 0;
width: 100%;
- padding: 20px 14px;
+ padding: 18px 16px;
align-items: center;
justify-content: space-between;
- background-color: var(--neutral-lighter);
- border-radius: var(--border-radius);
- border-top: 1px solid var(--primary);
+ gap: 10px;
+ background-color: var(--header-color);
+ color: var(--neutral-white);
+ font-size: 14px;
+ border-top: 1px solid var(--header-color);
z-index: 1000;
}
-#cookie-close {
- background: var(--navbar-button-background);
+.cookie-banner p {
+ margin: 0;
+ font-family: var(--heading-font-family);
+ letter-spacing: 0.4px;
+}
+
+.cookie-close {
border-radius: 10px;
- font-size: 1em;
+ background: transparent;
+ font-size: 25px;
border: none;
- padding: 10px;
- color: white;
- cursor: pointer;
+ color: var(--neutral-white);
}
diff --git a/src/css/vars.css b/src/css/vars.css
index 3887e63b..1978a879 100644
--- a/src/css/vars.css
+++ b/src/css/vars.css
@@ -44,7 +44,7 @@
--body-font-size--print: 0.9375em; /* 15px */
--body-line-height: 1.4;
--body-font-color: var(--text);
- --header-color: #071627;
+ --header-color: #0b2b39;
--body-font-family: "Open Sans", sans-serif;
--body-font-weight-bold: 500;
--nav-font-family: "PP Telegraf", sans-serif;
diff --git a/src/partials/cookie.hbs b/src/partials/cookie.hbs
index 2c1a4c84..c57dede3 100644
--- a/src/partials/cookie.hbs
+++ b/src/partials/cookie.hbs
@@ -1,7 +1,13 @@
-
- This website uses cookies to give you the best experience.
- Learn more
+
+ This website uses cookies to ensure you get the best experience on our website.
+
-
-
\ No newline at end of file
+
+
+
+
+
+
+
+
diff --git a/src/partials/head-scripts.hbs b/src/partials/head-scripts.hbs
index 2b285a73..ec019800 100644
--- a/src/partials/head-scripts.hbs
+++ b/src/partials/head-scripts.hbs
@@ -31,7 +31,7 @@
data-button-image-height="40"
data-button-border="1px solid #AFE922"
data-button-border-radius="10px"
- data-button-bg-color="#0D2B39"
+ data-button-bg-color="#0b2b39"
data-button-text-font-family="PP Telegraf"
data-button-text-font-size="16px"
data-button-text-font-weight="400"
From 9ee9c6cc9c039d98564c90f7849db341ca7da66c Mon Sep 17 00:00:00 2001
From: Mykola Fant
Date: Tue, 22 Oct 2024 14:51:33 +0300
Subject: [PATCH 2/4] add decline allow btns
---
src/css/cookie.css | 31 ++++++++++++++++++++++++++++++-
src/partials/cookie.hbs | 12 ++++++------
2 files changed, 36 insertions(+), 7 deletions(-)
diff --git a/src/css/cookie.css b/src/css/cookie.css
index 923b3b06..edf72e26 100644
--- a/src/css/cookie.css
+++ b/src/css/cookie.css
@@ -11,13 +11,13 @@
background-color: var(--header-color);
color: var(--neutral-white);
font-size: 14px;
+ font-family: var(--heading-font-family);
border-top: 1px solid var(--header-color);
z-index: 1000;
}
.cookie-banner p {
margin: 0;
- font-family: var(--heading-font-family);
letter-spacing: 0.4px;
}
@@ -28,3 +28,32 @@
border: none;
color: var(--neutral-white);
}
+
+.cookie-decision-btn {
+ border-radius: 9px;
+ border: 1px solid var(--accent4);
+ padding: 8px 24px;
+ font-size: 13px;
+ line-height: 18px;
+ margin: 0;
+ transition: all ease 0.3s;
+ white-space: nowrap;
+}
+
+.allow-btn {
+ background-color: var(--accent4);
+ color: var(--header-color);
+}
+
+.decline-btn {
+ color: var(--accent4);
+ background-color: var(--header-color);
+}
+
+.allow-btn:hover {
+ background-color: #c5ed65;
+}
+
+.decline-btn:hover {
+ background-color: #061827;
+}
diff --git a/src/partials/cookie.hbs b/src/partials/cookie.hbs
index c57dede3..4e778fcd 100644
--- a/src/partials/cookie.hbs
+++ b/src/partials/cookie.hbs
@@ -3,11 +3,11 @@
This website uses cookies to ensure you get the best experience on our website.
-
-
-
-
-
-
+
+
From 86b5961a708f5ca09e2dd8e5db68b758b1fef30e Mon Sep 17 00:00:00 2001
From: Mykola Fant
Date: Tue, 22 Oct 2024 16:21:48 +0300
Subject: [PATCH 3/4] add decline allow btns
---
src/css/cookie.css | 14 ++++++++++++++
src/js/12-cookie-banner.js | 2 +-
src/partials/cookie.hbs | 19 ++++++++++++-------
3 files changed, 27 insertions(+), 8 deletions(-)
diff --git a/src/css/cookie.css b/src/css/cookie.css
index edf72e26..fc293f22 100644
--- a/src/css/cookie.css
+++ b/src/css/cookie.css
@@ -16,6 +16,13 @@
z-index: 1000;
}
+.cookie-banner-btns-wrapper {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 10px;
+}
+
.cookie-banner p {
margin: 0;
letter-spacing: 0.4px;
@@ -57,3 +64,10 @@
.decline-btn:hover {
background-color: #061827;
}
+
+.manage-cookies-link {
+ color: var(--accent);
+ white-space: nowrap;
+ margin: 0 18px;
+ font-size: 13px;
+}
diff --git a/src/js/12-cookie-banner.js b/src/js/12-cookie-banner.js
index d1d4e1cf..f1ff0899 100644
--- a/src/js/12-cookie-banner.js
+++ b/src/js/12-cookie-banner.js
@@ -2,7 +2,7 @@
'use strict'
var cookieBanner = document.getElementById('cookie')
- var cookieButton = document.getElementById('cookie-close')
+ var cookieButton = document.getElementById('closeCookies')
var latestBanner = document.getElementById('latest-banner')
if (window.localStorage.getItem('docsCookie') !== 'closed') {
diff --git a/src/partials/cookie.hbs b/src/partials/cookie.hbs
index 4e778fcd..7276d51f 100644
--- a/src/partials/cookie.hbs
+++ b/src/partials/cookie.hbs
@@ -3,11 +3,16 @@
This website uses cookies to ensure you get the best experience on our website.
-
-
-
+
From 00e8b05472782ebb830a1e6b62b4b1e0a9911882 Mon Sep 17 00:00:00 2001
From: Mykola Fant
Date: Fri, 1 Nov 2024 17:48:41 +0200
Subject: [PATCH 4/4] fix bold font
---
preview-src/java.adoc | 2 +-
src/css/admonition.css | 1 +
src/css/cookie.css | 11 ++++++-----
src/css/fontsource-open-sans.css | 2 +-
src/partials/cookie.hbs | 18 +++++++++---------
5 files changed, 18 insertions(+), 16 deletions(-)
diff --git a/preview-src/java.adoc b/preview-src/java.adoc
index 51d6b15f..e1040fca 100644
--- a/preview-src/java.adoc
+++ b/preview-src/java.adoc
@@ -1,7 +1,7 @@
= Java Client
[[java-client]]
-The Java client is the most full featured Hazelcast native client.
+The Java client is **the most full featured** Hazelcast native client.
It is offered both with Hazelcast IMDG and Hazelcast IMDG Enterprise.
The main idea behind the Java client is to provide the same Hazelcast
functionality by proxying each operation through a Hazelcast member.
diff --git a/src/css/admonition.css b/src/css/admonition.css
index 38211550..e4e0a0c3 100644
--- a/src/css/admonition.css
+++ b/src/css/admonition.css
@@ -33,6 +33,7 @@
.admonitionblock::before {
display: block;
font-weight: 500;
+ font-family: var(--heading-font-family);
margin-bottom: 10px;
}
diff --git a/src/css/cookie.css b/src/css/cookie.css
index fc293f22..e11aff45 100644
--- a/src/css/cookie.css
+++ b/src/css/cookie.css
@@ -1,18 +1,19 @@
.cookie-banner {
position: fixed;
display: none;
- bottom: 0;
- left: 0;
- width: 100%;
- padding: 18px 16px;
+ bottom: 20px;
+ left: 20px;
+ right: 112px;
+ padding: 20px 16px;
align-items: center;
justify-content: space-between;
gap: 10px;
background-color: var(--header-color);
color: var(--neutral-white);
+ border: 1px solid var(--accent);
+ border-radius: 10px;
font-size: 14px;
font-family: var(--heading-font-family);
- border-top: 1px solid var(--header-color);
z-index: 1000;
}
diff --git a/src/css/fontsource-open-sans.css b/src/css/fontsource-open-sans.css
index ab593d89..915beec9 100644
--- a/src/css/fontsource-open-sans.css
+++ b/src/css/fontsource-open-sans.css
@@ -21,7 +21,7 @@
@font-face {
font-family: "Open Sans";
font-style: bold;
- font-weight: 600;
+ font-weight: 500;
src:
local("Open Sans"),
local("Open Sans-Bold"),
diff --git a/src/partials/cookie.hbs b/src/partials/cookie.hbs
index 7276d51f..f5b2f821 100644
--- a/src/partials/cookie.hbs
+++ b/src/partials/cookie.hbs
@@ -4,15 +4,15 @@