Skip to content

Commit

Permalink
style: update logo and styling
Browse files Browse the repository at this point in the history
Signed-off-by: Karim Stekelenburg <karim@animo.id>
  • Loading branch information
karimStekelenburg committed Jan 30, 2024
1 parent 6cf2e35 commit 4cdbcd2
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 26 deletions.
4 changes: 2 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ const config = {
navbar: {
title: 'Credo Docs',
logo: {
alt: 'Hyperledger Aries Logo',
src: 'img/aries-logo.png',
alt: 'Credo Logo',
src: 'img/credo-logo.png',
},
items: [
{
Expand Down
46 changes: 26 additions & 20 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,34 @@

/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: #2e8555;
--ifm-color-primary-dark: #29784c;
--ifm-color-primary-darker: #277148;
--ifm-color-primary-darkest: #205d3b;
--ifm-color-primary-light: #33925d;
--ifm-color-primary-lighter: #359962;
--ifm-color-primary-lightest: #3cad6e;
--ifm-code-font-size: 95%;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
}

/* For readability concerns, you should choose a lighter palette in dark mode. */
--ifm-color-primary: #fe008e;
--ifm-color-primary-dark: #e50080;
--ifm-color-primary-darker: #d80079;
--ifm-color-primary-darkest: #b20063;
--ifm-color-primary-light: #ff1899;
--ifm-color-primary-lighter: #ff259f;
--ifm-color-primary-lightest: #ff4bb0;
--ifm-background-color: #faf9f6;
--ifm-code-font-size: 95%;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
}

/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme="dark"] {
--ifm-color-primary: #25c2a0;
--ifm-color-primary-dark: #21af90;
--ifm-color-primary-darker: #1fa588;
--ifm-color-primary-darkest: #1a8870;
--ifm-color-primary-light: #29d5b0;
--ifm-color-primary-lighter: #32d8b4;
--ifm-color-primary-lightest: #4fddbf;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
--ifm-color-primary: #cf00b8;
--ifm-color-primary-dark: #ba00a6;
--ifm-color-primary-darker: #b0009c;
--ifm-color-primary-darkest: #910081;
--ifm-color-primary-light: #e400ca;
--ifm-color-primary-lighter: #ee00d4;
--ifm-color-primary-lightest: #ff0ee4;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
}

.custom-banner-bg {
background: linear-gradient(135deg, #ff008e 0%, #CF00B8 100%);
}


.admonition-holder {
--ifm-alert-background-color: #b6b2f5;
Expand Down
3 changes: 3 additions & 0 deletions src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
text-align: center;
position: relative;
overflow: hidden;
/* --ifm-hero-background-color: linear-gradient(90deg, #ff008e 0%, #8e00f2 100%); */
}



@media screen and (max-width: 996px) {
.heroBanner {
padding: 2rem;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import HomepageFeatures from '@site/src/components/HomepageFeatures'
function HomepageHeader() {
const { siteConfig } = useDocusaurusContext()
return (
<header className={clsx('hero hero--primary', styles.heroBanner)}>
<header className={clsx('hero hero--primary', styles.heroBanner) + ' custom-banner-bg'}>
<div className="container">
<h1 className="hero__title">{siteConfig.title}</h1>
<p className="hero__subtitle">{siteConfig.tagline}</p>
Expand Down
Binary file removed static/img/aries-logo.png
Binary file not shown.
Binary file added static/img/credo-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion static/img/easy-to-use.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion static/img/multiplatform.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion static/img/standards.svg
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 4cdbcd2

Please sign in to comment.