Skip to content

design: landing page & docs ui updates #931

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 19 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/ui/preview-src/ui-model.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
antoraVersion: '1.0.0'
site:
url: http://localhost:5252
title: Brand Docs
title: MrDocs
homeUrl: &home_url /xyz/5.2/index.html
components:
- name: abc
Expand Down
15 changes: 13 additions & 2 deletions docs/ui/src/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ html {
font-size: var(--body-font-size);
height: 100%;
scroll-behavior: smooth;
background:
radial-gradient(ellipse 100% 100% at var(--x1) var(--y1), rgba(89, 36, 99, 0.8), transparent 50%),
radial-gradient(ellipse 80% 120% at var(--x2) var(--y2), rgba(138, 214, 236, 0.5), transparent 55%),
radial-gradient(ellipse 150% 90% at var(--x3) var(--y3), rgba(40, 98, 114, 0.6), transparent 65%),
radial-gradient(ellipse 100% 100% at 80% 100%, rgba(89, 36, 99, 0.8), transparent 60%),
linear-gradient(135deg, #124b83, #124b83, #124b83);
background-attachment: fixed;
background-blend-mode: screen;
background-size: cover;
background-repeat: no-repeat;
}

@media screen and (min-width: 1024px) {
Expand All @@ -18,13 +28,14 @@ html {
}

body {
background: var(--body-background);
/* Remove the solid background since we're using gradient on html */
/* background: var(--body-background); */
color: var(--body-font-color);
font-family: var(--body-font-family);
line-height: var(--body-line-height);
margin: 0;
tab-size: 4;
word-wrap: anywhere; /* aka overflow-wrap; used when hyphens are disabled or aren't sufficient */
word-wrap: anywhere;
}

a {
Expand Down
89 changes: 89 additions & 0 deletions docs/ui/src/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/* Inherits styles from landing page */

.dotted {
background-image: url("../../../../docs/website/assets/halftone.png");
background-size: 158%;
background-repeat: repeat-y;
background-position: center center;
width: 190px;
height: 100vh;
position: fixed;
left: 0;
opacity: 0.1;
top: 0;
z-index: -5;
pointer-events: none;
}

.dotted-right {
background-image: url("../../../../docs/website/assets/halftone.png");
background-size: 158%;
transform: rotate(180deg);
background-repeat: repeat-y;
background-position: center center;
width: 190px;
height: 100vh;
position: fixed;
right: 0;
opacity: 0.1;
top: 0;
z-index: -5;
pointer-events: none;
}

@media (max-width: 576px) {
.dotted,
.dotted-right {
opacity: 0.05;
}

.dotted {
left: -80px;
}

.dotted-right {
right: -80px;
}
}

.doc {
color: var(--navbar-font-color);
}

.doc .content {
backdrop-filter: blur(10px);
}

.body .article {
backdrop-filter: blur(10px);
background-color: rgba(255, 255, 255, 0.1);
}

.doc h1,
.doc h2,
.doc h3,
.doc h4,
.doc h5,
.doc h6 {
color: var(--navbar-font-color);
}

.toc.sidebar .toc-menu {
color: var(--navbar-font-color);
}

.toc.sidebar .toc-menu h3 {
color: var(--navbar-font-color);
}

.breadcrumbs li {
color: var(--color-white-50);
}

.toc .toc-menu a.is-active {
color: var(--color-white-50);
}

.nav-text {
color: var(--color-white-50);
}
3 changes: 2 additions & 1 deletion docs/ui/src/css/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ body {
}

.navbar {
background: var(--navbar-background);
background-color: rgba(0, 0, 0, 0.1);
backdrop-filter: blur(10px);
color: var(--navbar-font-color);
font-size: calc(16 / var(--rem-base) * 1rem);
height: var(--navbar-height);
Expand Down
6 changes: 4 additions & 2 deletions docs/ui/src/css/nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
}

.nav-container {
background-color: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
position: fixed;
top: var(--navbar-height);
left: 0;
Expand Down Expand Up @@ -35,7 +37,7 @@
}

.nav {
background: var(--nav-background);
/* background: var(--nav-background); */
position: relative;
top: var(--toolbar-height);
height: var(--nav-height);
Expand All @@ -57,7 +59,7 @@
}

.nav a {
color: inherit;
color: var(--color-white);
}

.nav .panels {
Expand Down
1 change: 1 addition & 0 deletions docs/ui/src/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
@import "footer.css";
@import "highlight.css";
@import "print.css";
@import "custom.css";
6 changes: 2 additions & 4 deletions docs/ui/src/css/toolbar.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
.toolbar {
color: var(--toolbar-font-color);
align-items: center;
background-color: var(--toolbar-background);
box-shadow: 0 1px 0 var(--toolbar-border-color);
display: flex;
font-size: calc(15 / var(--rem-base) * 1rem);
height: var(--toolbar-height);
justify-content: flex-start;
position: sticky;
position: static;
top: var(--navbar-height);
z-index: var(--z-index-toolbar);
}

.toolbar a {
color: inherit;
color: var(--navbar-font-color);
}

.nav-toggle {
Expand Down
43 changes: 26 additions & 17 deletions docs/ui/src/css/vars.css
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
:root {
/* colors */
--color-white: #fff;
--color-smoke-10: #fefefe;
--color-smoke-30: #fafafa;
--color-smoke-50: #f5f5f5;
--color-smoke-70: #f0f0f0;
--color-smoke-90: #e1e1e1;
--color-gray-10: #c1c1c1;
--color-gray-30: #9c9c9c;
--color-gray-40: #8e8e8e;
--color-gray-50: #808080;
--color-gray-70: #5d5d5d;
--color-jet-20: #4a4a4a;
--color-jet-30: #424242;
--color-jet-50: #333;
--color-jet-70: #222;
--color-jet-80: #191919;
--color-black: #000;
--color-white: rgba(255, 255, 255, 1);
--color-white-50: rgba(255, 255, 255, 0.5);
--color-smoke-10: rgba(254, 254, 254, 0.95);
--color-smoke-30: rgba(250, 250, 250, 0.9);
--color-smoke-50: rgba(245, 245, 245, 0.85);
--color-smoke-70: rgba(240, 240, 240, 0.8);
--color-smoke-90: rgba(225, 225, 225, 0.75);
--color-gray-10: rgba(193, 193, 193, 0.7);
--color-gray-30: rgba(156, 156, 156, 0.65);
--color-gray-40: rgba(142, 142, 142, 0.6);
--color-gray-50: rgba(128, 128, 128, 0.55);
--color-gray-70: rgba(93, 93, 93, 0.5);
--color-jet-20: rgba(74, 74, 74, 0.45);
--color-jet-30: rgba(66, 66, 66, 0.4);
--color-jet-50: rgba(51, 51, 51, 0.35);
--color-jet-70: rgba(34, 34, 34, 0.3);
--color-jet-80: rgba(25, 25, 25, 0.25);
--color-black: rgba(0, 0, 0, 0.2);
/* fonts */
--rem-base: 18; /* used to compute rem value from desired pixel value (e.g., calc(18 / var(--rem-base) * 1rem) = 18px) */
--body-font-size: 1.0625em; /* 17px */
Expand Down Expand Up @@ -148,4 +149,12 @@
--z-index-toolbar: 2;
--z-index-page-version-menu: 3;
--z-index-navbar: 4;

/* Background gradient position variables */
--x1: 20%;
--y1: 20%;
--x2: 75%;
--y2: 25%;
--x3: 50%;
--y3: 50%;
}
2 changes: 2 additions & 0 deletions docs/ui/src/partials/main.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<main class="article">
<div class="dotted"></div>
<div class="dotted"></div>
{{> toolbar}}
<div class="content">
{{#if (eq page.layout '404')}}
Expand Down
Binary file added docs/website/assets/cards1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/website/assets/cry1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/website/assets/glasses.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/website/assets/halftone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions docs/website/assets/image-box.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions docs/website/assets/image-box2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions docs/website/assets/image-box3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/website/assets/investigate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/website/assets/man1.webp
Binary file not shown.
Loading
Loading