Skip to content
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

feat(new-layout) #841

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
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
Next Next commit
Add Navbar, Footer and background styles
  • Loading branch information
vivekjain23 committed Jun 26, 2024
commit ce72c72990c8265447d3328b2065d052319cb10a
30 changes: 12 additions & 18 deletions docs/site/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -174,7 +174,7 @@ const config = {
},
},
navbar: {
title: "IOTA Documentation",
title: "",
logo: {
alt: "IOTA Docs Logo",
src: "img/iota-logo.svg",
@@ -196,28 +196,22 @@ const config = {
label: "References",
to: "references",
},

/*
{
type: "docsVersionDropdown",
position: "right",
dropdownActiveClassDisabled: true,
},
{
type: "localeDropdown",
position: "right",
},
*/
],
},
footer: {
logo: {
alt: "IOTA Logo",
src: "img/iota-logo-footer.svg",
href: "https://iota.io",
alt: "IOTA Wiki Logo",
src: "img/IOTA-logo.svg",
srcDark: "img/IOTA-logo.svg",
vivekjain23 marked this conversation as resolved.
Show resolved Hide resolved
width: 138,
height: 48,
},
style: "dark",
copyright: `© ${new Date().getFullYear()} IOTA Foundation | Documentation distributed under <a href="https://github.com/iota-foundation/iota-docs/blob/main/LICENSE">CC BY 4.0</a>`,
copyright: `<div style={{ dispay: "flex", flexDirection: "column" }}>
© ${new Date().getFullYear()} IOTA Foundation
<div>
<a>Privacy Policy</a> • <a>Impressum</a> • <a>Contact Us</a>
</div>
</div>`,
vivekjain23 marked this conversation as resolved.
Show resolved Hide resolved
},
prism: {
theme: themes.github,
59 changes: 29 additions & 30 deletions docs/site/src/components/Cards/styles.module.css
Original file line number Diff line number Diff line change
@@ -1,46 +1,45 @@
:root {
--iota-cards-border-color: transparent;
--iota-cards-background: #F5F8FA;
--iota-cards-header: #4DA2FF;
--iota-cards-copy: #91A3B1;
--iota-cards-background-hover: #EBF1F5;
--iota-cards-background: #f5f8fa;
--iota-cards-header: #4da2ff;
--iota-cards-copy: #91a3b1;
--iota-cards-background-hover: #ebf1f5;
}

[data-theme='dark'] {
--iota-cards-border-color: rgba(247, 247, 248, 0.05);
--iota-cards-background: rgba(247, 247, 248, 0.05);
--iota-cards-background-hover: rgba(247, 247, 248, 0.15);
--iota-cards-header: #4DA2FF;
--iota-cards-copy: #ABBDCC;
[data-theme="dark"] {
--iota-cards-border-color: rgba(247, 247, 248, 0.05);
--iota-cards-background: rgba(247, 247, 248, 0.05);
--iota-cards-background-hover: rgba(247, 247, 248, 0.15);
--iota-cards-header: #4da2ff;
--iota-cards-copy: #abbdcc;
}

.card {
display: flex;
flex-direction: column;
justify-content: flex-start;
row-gap: .75rem;
border-radius: 20px;
padding: 1.25rem;
padding-bottom: 1.5rem;
background: var(--iota-cards-background);
cursor: pointer;
transition: background .25s ease-in-out;
border: solid 1px var(--iota-cards-border-color);
display: flex;
flex-direction: column;
justify-content: flex-start;
row-gap: 0.75rem;
border-radius: 20px;
padding: 1.25rem;
padding-bottom: 1.5rem;
background: var(--iota-cards-background);
cursor: pointer;
transition: background 0.25s ease-in-out;
border: solid 1px var(--iota-cards-border-color);
}
.card:hover {
background: var(--iota-cards-background-hover);
background: var(--iota-cards-background-hover);
}

.card__header__copy {
margin: 0;
font-size: 1.125rem;
line-height: 1.25rem;
color: var(--iota-cards-header);
margin: 0;
font-size: 1.125rem;
line-height: 1.25rem;
color: var(--iota-cards-header);
}

.card__copy {
font-size: .8125rem;
line-height: 1.3125rem;
color: var(--iota-cards-copy);
font-size: 0.8125rem;
line-height: 1.3125rem;
color: var(--iota-cards-copy);
}

Loading
Loading