Skip to content

Docs site redesign #3636

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

Merged
merged 11 commits into from
Mar 20, 2025
Merged
Show file tree
Hide file tree
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
Prev Previous commit
Next Next commit
add custom footer
  • Loading branch information
Inbal-Tish committed Mar 19, 2025
commit 35e89de71261e134809242b54cc39af268e79c4d
39 changes: 0 additions & 39 deletions docuilib/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,45 +120,6 @@ const darkCodeTheme = themes.dracula;
]
},
footer: {
links: [
{
html: `
<a href="/docs/getting-started/setup" target="_blank" rel="noreferrer noopener" aria-label="Go to docs">
<img src="https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/site/logo_rnui_footer.png" alt="rnui logo" width="139" height="38" />
</a>
`
},
{
html: `
<a herf="https://github.com/wix/react-native-ui-lib" target="_blank" rel="noreferrer noopener" aria-label="Open gitHub">
<span>GitHub</span>
<image src="https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/site/externalSmall.png" alt="external link icon" width="17" height="16" />
</a>
`
},
{
html: `
<a herf="https://snack.expo.io/@ethanshar/rnuilib_snack?platform=ios&supportedPlatforms=ios,android" target="_blank" rel="noreferrer noopener" aria-label="Open expo snack">
<span>Expo-Snack</span>
<image src="https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/site/externalSmall.png" alt="external link icon" width="17" height="16" />
</a>
`
},
{
html: `
<a href="https://discord.gg/2eW4g6Z" target="_blank" rel="noreferrer noopener" aria-label="Open discord">
<img src="https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/site/discord.png" alt="Discord icon" width="28" height="28" />
</a>
`
},
{
html: `
<a href="https://twitter.com/rnuilib" target="_blank" rel="noreferrer noopener" aria-label="Open x">
<img src="https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/site/xSocial.png" alt="x icon" width="28" height="28" />
</a>
`
}
],
copyright: `© 2006-${new Date().getFullYear()} Wix.com, Inc.`
},
prism: {
Expand Down
87 changes: 38 additions & 49 deletions docuilib/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,8 @@
--ifm-color-primary-light: #1e2835;
--ifm-color-primary-lighter: #1f2937;
--ifm-color-primary-lightest: #232f3e;

--ifm-code-font-size: 95%;
--ifm-font-color-base: #20303C;

--ifm-navbar-item-padding-horizontal: 0.10rem;
--ifm-breadcrumb-item-background-active: #FFF;
--ifm-breadcrumb-color: #4D5963;
--ifm-breadcrumb-color-active: #20303C;
/* --ifm-footer-background-color: #F8F9FA; */
}

.docusaurus-highlight-code-line {
Expand Down Expand Up @@ -116,67 +109,63 @@ html[data-theme='dark'] .docusaurus-highlight-code-line {
font-weight: 700;
}

/** Docusaurus Footer */
/** Docusaurus Breadcrumbs */

.breadcrumbs__link {
color: #4D5963;
}
.breadcrumbs__item--active .breadcrumbs__link {
color: #20303C;
background-color: #FFF;
}
.breadcrumbHomeIcon_YNFT {
color: #20303C;
}

/** Custom Footer */

.footer {
padding-top: 64px;
padding-bottom: 107px;
padding-left: 350px;
padding-right: 350px;
border-top: 1px solid #D2D6D8;
background-color: #F8F9FA;
color: #6D7280;
text-align: center;
font-size: 12px;
font-weight: 600;
line-height: 130%;
padding-top: 64px;
padding-bottom: 107px;
justify-content: center;
}
.container.container-fluid {
padding-top: 20px;
padding-left: 0;
padding-right: 0;
.footer__container {
justify-content: center;
border-top: 1px solid #D2D6D8;
padding-top: 20px;
margin-left: 350px;
margin-right: 350px;
}
.footer__links {
display: flex;
align-items: center;
width: 100%;
justify-content: center;
justify-content: space-between;
margin-bottom: 40px;
}
/* .footer__link-item:first-child {
.footer__section {
width: 200px;
} */
.footer__link-item {
margin-right: 16px;
}
.footer__link-item:last-child {
margin-right: 0;
}
.footer__link-item a {
.right__section {
display: flex;
align-items: center;
justify-content: end;
}
.footer__link-item span {
margin: 4px;
color: #4D5963 !important;
font-size: 14px;
font-weight: 500;
line-height: 20px;
letter-spacing: -0.028px;
}
.footer__link-separator {
display: none;
.text__link {
margin-right: 24px;
}

/** Docusaurus Breadcrumbs */

.breadcrumbs__link {
color: #4D5963;
.icon__link {
margin-right: 16px;
}
.breadcrumbHomeIcon_YNFT {
color: #20303C;
.footer__copyright {
color: #6D7280;
text-align: center;
font-size: 12px;
font-weight: 600;
line-height: 130%;
}


/** Component page tabs */

.main-tabs {
Expand Down
86 changes: 86 additions & 0 deletions docuilib/src/theme/Footer/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
import React from 'react';
import {useThemeConfig} from '@docusaurus/theme-common';
// import useBaseUrl from '@docusaurus/useBaseUrl';

function Footer() {
const {footer} = useThemeConfig();

if (!footer) {
return null;
}

return (
<footer className="footer">
<div className="footer__container">
<div className={'footer__links'}>
<div className="footer__section">
<a href="/docs/getting-started/setup" target="_blank" rel="noreferrer noopener" aria-label="Go to docs">
<img
src="https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/site/logo_rnui_footer.png"
alt="rnui logo"
width="139"
height="38"
/>
</a>
</div>

<div className="footer__section">
<a
href="https://github.com/wix/react-native-ui-lib"
target="_blank"
rel="noreferrer noopener"
aria-label="Open gitHub"
className="text__link"
>
<span>GitHub</span>
<img
src="https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/site/externalSmall.png"
alt="external link icon"
width="17"
height="16"
/>
</a>
<a
href="https://snack.expo.io/@ethanshar/rnuilib_snack?platform=ios&supportedPlatforms=ios,android"
target="_blank"
rel="noreferrer noopener"
aria-label="Open expo snack"
>
<span>Expo-Snack</span>
<img
src="https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/site/externalSmall.png"
alt="external link icon"
width="17"
height="16"
/>
</a>
</div>

<div className="footer__section right__section">
<a href="https://discord.gg/2eW4g6Z" target="_blank" rel="noreferrer noopener" aria-label="Open discord" className="icon__link">
<img
src="https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/site/discord.png"
alt="Discord icon"
width="28"
height="28"
/>
</a>
<a href="https://twitter.com/rnuilib" target="_blank" rel="noreferrer noopener" aria-label="Open x">
<img
src="https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/site/xSocial.png"
alt="x icon"
width="28"
height="28"
/>
</a>
</div>
</div>
<div className="footer__bottom text--center">
<div className="footer__copyright">© 2006-{new Date().getFullYear()} Wix.com, Inc.</div>
</div>
</div>
</footer>
);
}

export default Footer;