Skip to content

Commit

Permalink
Feat/front updates (#588)
Browse files Browse the repository at this point in the history
* feat: add cta button

* feat: add cta button

* feat: change favicon
  • Loading branch information
sophiebl authored Jan 24, 2024
1 parent 87d3acf commit a0e004c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion services/docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 9 additions & 1 deletion services/docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
'<a href="https://escape.tech/?utm_source=graphql-armor&utm_medium=referral&utm_campaign=docs"><div id="cta-escape-button"><img src="https://uploads-ssl.webflow.com/653f800ead95abddab588b44/65ae311dfcac549806f5fbdd_graphql-armor-docs-cta.svg" alt="Visit Escape"></div></a>',
defaultStyle: false,
},
],

// But you can create a sidebar manually
/*
Expand Down
11 changes: 11 additions & 0 deletions services/docs/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Binary file removed services/docs/static/img/favicon.ico
Binary file not shown.
Binary file added services/docs/static/img/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a0e004c

Please sign in to comment.