From a0e004c45237f88f9b4a49d6a18e995292baf3fa Mon Sep 17 00:00:00 2001 From: Sophie Date: Wed, 24 Jan 2024 12:45:52 +0100 Subject: [PATCH] Feat/front updates (#588) * feat: add cta button * feat: add cta button * feat: change favicon --- services/docs/docusaurus.config.js | 2 +- services/docs/sidebars.js | 10 +++++++++- services/docs/src/css/custom.css | 11 +++++++++++ services/docs/static/img/favicon.ico | Bin 3626 -> 0 bytes services/docs/static/img/favicon.png | Bin 0 -> 565 bytes 5 files changed, 21 insertions(+), 2 deletions(-) delete mode 100644 services/docs/static/img/favicon.ico create mode 100644 services/docs/static/img/favicon.png diff --git a/services/docs/docusaurus.config.js b/services/docs/docusaurus.config.js index 95308fc4..371306b7 100644 --- a/services/docs/docusaurus.config.js +++ b/services/docs/docusaurus.config.js @@ -12,7 +12,7 @@ const config = { baseUrl: '/graphql-armor/', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', - favicon: 'img/favicon.ico', + favicon: 'img/favicon.png', // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. diff --git a/services/docs/sidebars.js b/services/docs/sidebars.js index ef1bd11a..c7e2a80c 100644 --- a/services/docs/sidebars.js +++ b/services/docs/sidebars.js @@ -14,7 +14,15 @@ /** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */ const sidebars = { // By default, Docusaurus generates a sidebar from the docs folder structure - tutorialSidebar: [{ type: 'autogenerated', dirName: '.' }], + tutorialSidebar: [ + { type: 'autogenerated', dirName: '.' }, + { + type: 'html', + value: + '
Visit Escape
', + defaultStyle: false, + }, + ], // But you can create a sidebar manually /* diff --git a/services/docs/src/css/custom.css b/services/docs/src/css/custom.css index 449ff3af..194e1180 100644 --- a/services/docs/src/css/custom.css +++ b/services/docs/src/css/custom.css @@ -28,3 +28,14 @@ --ifm-color-primary-lightest: #4fddbf; --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); } + + +#cta-escape-button { + text-align: center; + margin: 20px auto; + @media (min-width: 996px) { + position: absolute; + bottom: 0; + left: 30px; + } +} diff --git a/services/docs/static/img/favicon.ico b/services/docs/static/img/favicon.ico deleted file mode 100644 index c01d54bcd39a5f853428f3cd5aa0f383d963c484..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3626 zcmb`Je@s(X6vrR`EK3%b%orErlDW({vnABqA zcfaS{d+xbU5JKp0*;0YOg+;Fl!eT)XRuapIwFLL`=imZCSon$`se`_<%@MB=M~KG+ z=EW^FL`w|Bo>*ktlaS^(fut!95`iG5u=SZ8nfDHO#GaTlH1-XG^;vsjUb^gWTVz0+ z^=WR1wv9-2oeR=_;fL0H7rNWqAzGtO(D;`~cX(RcN0w2v24Y8)6t`cS^_ghs`_ho? z{0ka~1Dgo8TfAP$r*ua?>$_V+kZ!-(TvEJ7O2f;Y#tezt$&R4 zLI}=-y@Z!grf*h3>}DUL{km4R>ya_I5Ag#{h_&?+HpKS!;$x3LC#CqUQ8&nM?X))Q zXAy2?`YL4FbC5CgJu(M&Q|>1st8XXLZ|5MgwgjP$m_2Vt0(J z&Gu7bOlkbGzGm2sh?X`){7w69Y$1#@P@7DF{ZE=4%T0NDS)iH`tiPSKpDNW)zmtn( zw;4$f>k)4$LBc>eBAaTZeCM2(iD+sHlj!qd z2GjRJ>f_Qes(+mnzdA^NH?^NB(^o-%Gmg$c8MNMq&`vm@9Ut;*&$xSD)PKH{wBCEC z4P9%NQ;n2s59ffMn8*5)5AAg4-93gBXBDX`A7S& zH-|%S3Wd%T79fk-e&l`{!?lve8_epXhE{d3Hn$Cg!t=-4D(t$cK~7f&4s?t7wr3ZP z*!SRQ-+tr|e1|hbc__J`k3S!rMy<0PHy&R`v#aJv?`Y?2{avK5sQz%=Us()jcNuZV z*$>auD4cEw>;t`+m>h?f?%VFJZj8D|Y1e_SjxG%J4{-AkFtT2+ZZS5UScS~%;dp!V>)7zi`w(xwSd*FS;Lml=f6hn#jq)2is4nkp+aTrV?)F6N z>DY#SU0IZ;*?Hu%tSj4edd~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