added asciinema demo on homepage

This commit is contained in:
Yasoob Khalid
2022-05-17 10:10:14 +05:00
parent 8cbe7e66a3
commit cbe8376bdb
2 changed files with 483 additions and 142 deletions

View File

@@ -16,7 +16,7 @@
--slate-border: #DADADA;
--animation-speed: 40s;
/* Used on the code showcase */
--gradient-shadow: linear-gradient( 45deg, #2A8FBD, #679ab2, #ffffff, #81ccef, #2abbbd, #c9e0eb, #66c1eb, #40809e, #2A8FBD);
--gradient-shadow: linear-gradient(45deg, #2A8FBD, #679ab2, #ffffff, #81ccef, #2abbbd, #c9e0eb, #66c1eb, #40809e, #2A8FBD);
--darkmode-light: #11398c;
--darkmode-button-light: #325fae;
@@ -257,13 +257,15 @@ a.platform:hover {
@keyframes animate {
0% {
background-position: 0 0;
background-position: 0 0;
}
50% {
background-position: 300% 0;
background-position: 300% 0;
}
100% {
background-position: 0 0;
background-position: 0 0;
}
}
@@ -359,10 +361,123 @@ a.copy-cta-btn:hover {
}
/* Getting started */
.getting-started {
margin-bottom: -20%;
z-index: 1;
}
.getting-started .container {
position: relative;
z-index: 1;
}
.getting-started h2 {
/* font-weight: 900; */
font-size: 2em;
}
.getting-started::after {
position: absolute;
content: "";
top: 30%;
left: 0;
right: 0;
bottom: 20%;
background: linear-gradient(0deg, rgba(52, 52, 87, 0.2) -40.97%, rgba(0, 0, 0, 0) 103.19%), #2781AB;
z-index: 0;
}
.nav-tabs {
width: fit-content;
margin: 0 auto;
padding: 10px;
background-color: #4794B8;
border-radius: 20px 20px 0px 0px;
}
.nav-tabs .nav-link {
background: rgba(85, 86, 153, 0.72);
border-radius: 0px;
padding: 0.6em 3em;
color: var(--transparent-white);
font-weight: bold;
border: 0px;
position: relative;
font-size: 18px;
}
.nav-tabs .nav-link:hover {
color: white;
}
.nav-tabs .nav-link:hover svg path {
fill: white;
}
.nav-tabs .nav-link svg {
margin-right: 10px;
}
.nav-tabs .nav-link svg path {
fill: var(--bs-gray-300);
transition: all .2s
}
.nav-tabs .nav-link.active {
background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), #555699;
color: white;
}
.nav-tabs .nav-link.active svg path {
fill: white;
}
.nav-tabs .nav-link.active::after {
content: '';
position: absolute;
margin-left: -10px;
left: 50%;
bottom: 0px;
height: 0;
width: 0;
border-bottom: 10px solid #4794B8;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
}
.nav-tabs .nav-link:nth-child(1) {
border-radius: 15px 0px 0px 0px;
}
.nav-tabs .nav-link:nth-child(3) {
border-radius: 0px 15px 0px 0px;
}
.tab-content {
margin: 0 auto;
margin-top: -10px;
background: #4794B8;
box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.25);
border-radius: 7px;
padding: 10px;
padding-bottom: 0px;
}
.tab-pane {
margin-top: -20px;
}
.tab-pane img {
width: 100%;
padding-top: 20px;
padding-bottom: 20px;
}
/* Plugins section */
section.plugins {
padding-top: 8rem;
padding-top: 23%;
padding-bottom: 8rem;
background: var(--slate-bg);
border-width: 2px 2px;
@@ -472,10 +587,11 @@ section.supportus {
@keyframes scroll {
from {
transform: translateX(0%);
transform: translateX(0%);
}
to {
transform: translateX(-50%);
transform: translateX(-50%);
}
}
@@ -517,15 +633,16 @@ footer a:hover {
/* Accessibility */
@media (prefers-reduced-motion) {
g#plugins,
g#plugins g,
.avatar-row,
.quickstart-code:before,
.quickstart-code:after {
-webkit-animation-play-state: paused !important;
-moz-animation-play-state: paused !important;
-o-animation-play-state: paused !important;
animation-play-state: paused !important;
-webkit-animation-play-state: paused !important;
-moz-animation-play-state: paused !important;
-o-animation-play-state: paused !important;
animation-play-state: paused !important;
}
}
@@ -538,19 +655,30 @@ footer a:hover {
color: #157577;
transition: all .1s;
}
a.list-group-item {
color: #666;
font-size: 1em;
}
a.list-group-item:focus, a.list-group-item:hover, button.list-group-item:focus, button.list-group-item:hover{
a.list-group-item:focus,
a.list-group-item:hover,
button.list-group-item:focus,
button.list-group-item:hover {
color: #555;
text-decoration: none;
background-color: #f5f5f5;
}
.list-group-item.disabled:first-child, .list-group-item.disabled:first-child:focus, .list-group-item.disabled:first-child:hover {
.list-group-item.disabled:first-child,
.list-group-item.disabled:first-child:focus,
.list-group-item.disabled:first-child:hover {
margin-top: 0;
}
.list-group-item.disabled, .list-group-item.disabled:focus, .list-group-item.disabled:hover {
.list-group-item.disabled,
.list-group-item.disabled:focus,
.list-group-item.disabled:hover {
background: none;
color: #bbb;
cursor: default;
@@ -559,18 +687,22 @@ a.list-group-item:focus, a.list-group-item:hover, button.list-group-item:focus,
margin-top: 2em;
text-transform: uppercase;
}
.table-of-contents {
font-size: 1.2em;
padding: 1em;
margin: 0 0 0.5em 0.5em;
}
.table-of-contents ul {
margin-bottom: 0;
padding-left: 20px;
}
.anchorjs-link {
color: #24cbce;
}
.markdown-body {
-webkit-font-smoothing: antialiased;
box-sizing: border-box;
@@ -581,6 +713,7 @@ a.list-group-item:focus, a.list-group-item:hover, button.list-group-item:focus,
line-height: 1.7;
text-align: left;
}
.markdown-body h1 {
border-bottom: 1px solid #dfdfdf;
color: #444;
@@ -590,6 +723,7 @@ a.list-group-item:focus, a.list-group-item:hover, button.list-group-item:focus,
text-rendering: optimizelegibility;
font-weight: 900;
}
.markdown-body h2 {
font-size: 1.3em;
font-weight: 700;
@@ -598,24 +732,29 @@ a.list-group-item:focus, a.list-group-item:hover, button.list-group-item:focus,
text-transform: uppercase;
font-weight: 900;
}
.markdown-body h3 {
font-size: 1.2em;
font-weight: 700;
color: #555;
margin: 1em 0;
}
.markdown-body h4 {
font-size: 1.1em;
font-weight: 700;
color: #555;
margin: 1em 0;
}
.markdown-body h1 + h2 {
.markdown-body h1+h2 {
margin-top: 1em;
}
.highlight-show-language {
position: relative;
}
.highlight-show-language-label {
color: black;
background-color: #CFCFCF;
@@ -641,11 +780,13 @@ a.list-group-item:focus, a.list-group-item:hover, button.list-group-item:focus,
-o-transform: none;
transform: none;
}
.highlight-output pre {
color: #fff;
background-color: #000;
padding: 10px;
}
code {
padding: 0;
padding-top: 0.2em;
@@ -658,18 +799,23 @@ code {
border-radius: 3px;
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
code:before {
letter-spacing: -0.2em;
content: "\00a0";
}
code:after {
letter-spacing: -0.2em;
content: "\00a0";
}
pre code:before, pre code:after {
pre code:before,
pre code:after {
letter-spacing: 0;
content: "";
}
pre {
display: block;
line-height: 1.428571429;
@@ -684,38 +830,48 @@ pre {
color: #4d4d4c;
margin: 2em 0;
}
blockquote {
border-left: 4px solid #5bc0de;
background-color: #f4f8fa;
padding: 15px 15px 1px;
margin-bottom: 30px;
}
.new-as-of {
border-left: 4px solid #d1f2a5;
background-color: #effab4;
}
.not-yet-released {
border-left: 4px solid #ef5b58;
background-color: #f9ad76;
}
.warning {
border-left: 4px solid #cd2512;
background-color: #d1675f;
color: white;
}
.fa:before {
-webkit-font-smoothing: antialiased
}
.clearfix {
*zoom: 1
}
.clearfix:before, .clearfix:after {
.clearfix:before,
.clearfix:after {
display: table;
content: ""
}
.clearfix:after {
clear: both
}
.improve-slideout {
position: fixed;
bottom: 66%;
@@ -728,12 +884,15 @@ blockquote {
padding: 0px 0 3px;
z-index: 90;
}
.improve-slideout:hover {
right: 205px;
}
.improve-slideout:hover .improve-slideout-inner {
right: 0;
}
.improve-slideout-inner {
position: fixed;
bottom: 66%;
@@ -746,6 +905,7 @@ blockquote {
padding: 4px 12px;
width: 205px;
}
.improve-slideout-inner h6 {
color: #363637;
font-weight: 700;
@@ -753,10 +913,12 @@ blockquote {
margin: 0;
font-size: 1em;
}
.git-improve {
vertical-align: baseline;
padding-left: 8px;
}
.back-to-contents {
position: fixed;
bottom: calc(66% - 34px);
@@ -765,31 +927,41 @@ blockquote {
padding: 5px 0 4px;
z-index: 90;
}
.icon-improve {
color: #bdbdb5;
padding: 2px 9px 0 10px;
}
a .fa {
display: inline-block;
text-decoration: inherit
}
li .fa {
display: inline-block
}
li .fa-large:before, li .fa-large:before {
li .fa-large:before,
li .fa-large:before {
width: 1.875em
}
ul.fas {
list-style-type: none;
margin-left: 2em;
text-indent: -0.8em
}
ul.fas li .fa {
width: 0.8em
}
ul.fas li .fa-large:before, ul.fas li .fa-large:before {
ul.fas li .fa-large:before,
ul.fas li .fa-large:before {
vertical-align: baseline
}
.rst-versions {
position: fixed;
bottom: 0;
@@ -801,13 +973,16 @@ ul.fas li .fa-large:before, ul.fas li .fa-large:before {
font-family: "Lato", "proxima-nova", "Helvetica Neue", Arial, sans-serif;
z-index: 400
}
.rst-versions a {
color: #7c8e98;
text-decoration: none
}
.rst-versions .rst-badge-small {
display: none
}
.rst-versions .rst-current-version {
padding: 12px;
background-color: #2475c3;
@@ -817,31 +992,40 @@ ul.fas li .fa-large:before, ul.fas li .fa-large:before {
color: #d8edf8;
*zoom: 1
}
.rst-versions .rst-current-version:before, .rst-versions .rst-current-version:after {
.rst-versions .rst-current-version:before,
.rst-versions .rst-current-version:after {
display: table;
content: ""
}
.rst-versions .rst-current-version:after {
clear: both
}
.rst-versions .rst-current-version .fa {
color: #fcfcfc
}
.rst-versions .rst-current-version .fa-book {
float: left;
line-height: 30px
}
.rst-versions .rst-current-version .icon-book {
float: left
}
.rst-versions .rst-current-version.rst-out-of-date {
background-color: #E74C3C;
color: #fff
}
.rst-versions .rst-current-version.rst-active-old-version {
background-color: #F1C40F;
color: #000
}
.rst-versions.rst-badge {
border: none;
bottom: 20px;
@@ -853,25 +1037,32 @@ ul.fas li .fa-large:before, ul.fas li .fa-large:before {
right: 20px;
width: auto;
}
.rst-versions.rst-badge.shift-up {
overflow-y: scroll;
height: calc(100vh - 100px);
}
.rst-versions.rst-badge .icon-book {
float: none
}
.rst-versions.rst-badge .fa-book {
float: none
}
.rst-versions.rst-badge.shift-up .rst-current-version {
text-align: right
}
.rst-versions.rst-badge.shift-up .rst-current-version .fa-book {
float: left
}
.rst-versions.rst-badge.shift-up .rst-current-version .icon-book {
float: left
}
.rst-versions.rst-badge .rst-current-version {
width: auto;
height: 30px;
@@ -880,17 +1071,21 @@ ul.fas li .fa-large:before, ul.fas li .fa-large:before {
display: block;
text-align: center
}
.rst-other-versions {
display: none;
padding: 12px;
text-align: left;
}
.shift-up .rst-other-versions {
display: block;
}
.rst-other-versions a {
border: 0;
}
.rst-other-versions hr {
display: block;
border: 0;
@@ -898,19 +1093,24 @@ ul.fas li .fa-large:before, ul.fas li .fa-large:before {
padding: 0;
border-top: solid 1px #d6edf9
}
.rst-other-versions dl {
margin: 0;
}
.rst-other-versions dd {
display: inline-block;
margin: 0
}
.rst-other-versions dd a {
display: inline-block;
padding: 6px;
color: #fcfcfc
}
.dev-warning, .outdated-warning {
.dev-warning,
.outdated-warning {
position: absolute;
top: 0;
width: 100%;
@@ -928,126 +1128,210 @@ ul.fas li .fa-large:before, ul.fas li .fa-large:before {
text-align: center;
background-color: #ffe761;
}
@media (prefers-color-scheme: dark) {
body {
background-color: var(--darkmode-dark);
color: white;
}
header, footer {
background: #0b1f4c !important;
}
.hero-section .cta {
background-color: var(--darkmode-button-light);
}
.hero-section .cta:hover {
background-color: var(--darkmode-button-light-hover);
}
.hero-section .explore-cta {
color: white;
}
.hero-section .explore-cta:hover {
color: white;
}
.powered-by_brands {
filter: contrast(2);
}
div.quickstart-code{
filter: none;
}
.quickstart-code .shell {
background: #313274;
}
section.powered-by {
background: var(--darkmode-light);
}
section.plugins {
background: var(--darkmode-dark);
border-width: 0px;
}
section.supportus {
background: var(--darkmode-light);
border-width: 0px;
}
section.pro-cta {
background: var(--darkmode-dark);
border-width: 0px;
}
.avatar-section:before{
background: var(--avatar-darkmode-before-gradient);
}
.avatar-section:after{
background: var(--avatar-darkmode-after-gradient);
}
.blurb {
filter: invert(1);
}
.slack-channel {
background-color: #110e09;
}
code {
background-color: #052148;
color: #bbb;
}
pre {
background-color: #052148;
color: #bbb;
border: 1px solid #052148;
box-shadow: 0 0 0 3px #07387b;
}
.list-group-item.disabled, .list-group-item.disabled:focus, .list-group-item.disabled:hover {
color: var(--bs-gray-100);
}
a.list-group-item {
background-color: var(--darkmode-dark);
color: var(--bs-gray-500);
}
a.list-group-item:focus, a.list-group-item:hover, button.list-group-item:focus, button.list-group-item:hover {
color: white;
background-color: var(--darkmode-button-light-hover);
}
blockquote {
background-color: rgba(0, 82, 204, 0.18);
border-left: 4px solid rgba(108, 169, 255, 0.3);;
color: rgb(108, 169, 255);
}
blockquote.warning {
border-left: 4px solid rgba(239, 136, 84, 0.3);
background-color: rgba(235, 100, 32, 0.18);
color: rgb(239, 136, 84);
}
blockquote.new-as-of {
border-left: 4px solid rgba(11, 216, 73, 0.3);
background-color: rgba(9, 171, 60, 0.18);
color: rgb(11, 216, 73);
}
.dev-warning, .outdated-warning {
background-color: #4e440d;
color: #fff;
}
.table-striped tbody tr:nth-of-type(odd) {
background-color: #080808
}
.table-hover tbody tr:hover {
background-color: #3b3b3b;
color: #bbb;
}
.table td, .table th {
border-top: 1px solid #131110;
}
.table thead th {
border-bottom: 2px solid #131110;
}
.markdown-body {
color: var(--bs-gray-400);
}
.markdown-body h1 {
color: white;
}
.markdown-body h2, .markdown-body h3, .markdown-body h4 {
color: var(--bs-gray-300);
}
.markdown-body a{
color: #ffffff;
}
/* Large devices (desktops, 992px and up) */
@media (max-width: 992px) {
.nav-item a.cta {
width: 100%;
}
.powered-by {
padding-bottom: 4rem;
}
.nav-tabs .nav-link {
padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
}
.nav-tabs .nav-link {
padding: 0.5em 0.8em;
}
.nav-tabs .nav-link svg {
margin-right: 5px;
}
section.plugins {
padding-top: 30%;
}
}
@media (prefers-color-scheme: dark) {
body {
background-color: var(--darkmode-dark);
color: white;
}
header,
footer {
background: #0b1f4c !important;
}
.hero-section .cta {
background-color: var(--darkmode-button-light);
}
.hero-section .cta:hover {
background-color: var(--darkmode-button-light-hover);
}
.hero-section .explore-cta {
color: white;
}
.hero-section .explore-cta:hover {
color: white;
}
.getting-started::after {
background: linear-gradient(0deg, rgba(52, 52, 87, 0.2) -40.97%, rgba(0, 0, 0, 0) 103.19%),
#043791;
}
.tab-content {
background: #043791;
}
.nav-tabs {
background: #043791;
}
.powered-by_brands {
filter: contrast(2);
}
div.quickstart-code {
filter: none;
}
.quickstart-code .shell {
background: #313274;
}
section.powered-by {
background: var(--darkmode-light);
}
section.plugins {
background: var(--darkmode-dark);
border-width: 0px;
}
section.supportus {
background: var(--darkmode-light);
border-width: 0px;
}
section.pro-cta {
background: var(--darkmode-dark);
border-width: 0px;
}
.avatar-section:before {
background: var(--avatar-darkmode-before-gradient);
}
.avatar-section:after {
background: var(--avatar-darkmode-after-gradient);
}
.blurb {
filter: invert(1);
}
.slack-channel {
background-color: #110e09;
}
code {
background-color: #052148;
color: #bbb;
}
pre {
background-color: #052148;
color: #bbb;
border: 1px solid #052148;
box-shadow: 0 0 0 3px #07387b;
}
.list-group-item.disabled,
.list-group-item.disabled:focus,
.list-group-item.disabled:hover {
color: var(--bs-gray-100);
}
a.list-group-item {
background-color: var(--darkmode-dark);
color: var(--bs-gray-500);
}
a.list-group-item:focus,
a.list-group-item:hover,
button.list-group-item:focus,
button.list-group-item:hover {
color: white;
background-color: var(--darkmode-button-light-hover);
}
blockquote {
background-color: rgba(0, 82, 204, 0.18);
border-left: 4px solid rgba(108, 169, 255, 0.3);
;
color: rgb(108, 169, 255);
}
blockquote.warning {
border-left: 4px solid rgba(239, 136, 84, 0.3);
background-color: rgba(235, 100, 32, 0.18);
color: rgb(239, 136, 84);
}
blockquote.new-as-of {
border-left: 4px solid rgba(11, 216, 73, 0.3);
background-color: rgba(9, 171, 60, 0.18);
color: rgb(11, 216, 73);
}
.dev-warning,
.outdated-warning {
background-color: #4e440d;
color: #fff;
}
.table-striped tbody tr:nth-of-type(odd) {
background-color: #080808
}
.table-hover tbody tr:hover {
background-color: #3b3b3b;
color: #bbb;
}
.table td,
.table th {
border-top: 1px solid #131110;
}
.table thead th {
border-bottom: 2px solid #131110;
}
.markdown-body {
color: var(--bs-gray-400);
}
.markdown-body h1 {
color: white;
}
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
color: var(--bs-gray-300);
}
.markdown-body a {
color: #ffffff;
}
}