Skip to content

Commit

Permalink
Revert "refactor(docs): no logo in header on small screens"
Browse files Browse the repository at this point in the history
This reverts commit 8ae860a.
  • Loading branch information
kris7t committed Jul 29, 2024
1 parent 85b30d2 commit e21d38e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 39 deletions.
6 changes: 0 additions & 6 deletions subprojects/docs/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,6 @@ code {
--ifm-navbar-shadow: var(--ifm-global-shadow-lw) !important;
}

@media (max-width: 996px) {
.navbar__inner .navbar__logo {
display: none;
}
}

.button, .navbar__link, .footer__link-item {
text-transform: uppercase;
font-variation-settings: 'wdth' 87.5;
Expand Down
22 changes: 0 additions & 22 deletions subprojects/docs/src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,25 +39,3 @@
padding: 4rem 0;
background: var(--ifm-background-surface-color);
}

.title {
display: flex;
align-items: center;
}

.title__text {
display: block;
}

.logo {
display: none;
height: 1.25em;
width: 1.25em;
margin-right: 0.5rem;
}

@media (max-width: 996px) {
.logo {
display: block;
}
}
12 changes: 1 addition & 11 deletions subprojects/docs/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

import Link from '@docusaurus/Link';
import { useColorMode } from '@docusaurus/theme-common';
import Layout from '@theme/Layout';
import clsx from 'clsx';

Expand All @@ -15,20 +14,11 @@ import Features from '@site/src/components/Features';
import UseCases from '@site/src/components/UseCases';
import Video from '@site/src/components/Video';

function Logo() {
const { colorMode } = useColorMode();
const logoPath = colorMode === 'dark' ? '/logo-dark.svg' : '/logo.svg';
return <img src={logoPath} alt="" className={styles['logo']} />;
}

function Hero() {
return (
<header className={clsx('hero', 'hero--dark', styles['hero'])}>
<div className="container">
<h1 className={clsx('hero__title', styles['title'])}>
<Logo />
<span className={styles['title__text']}>Refinery</span>
</h1>
<h1 className="hero__title">Refinery</h1>
<p className="hero__subtitle">
An efficient graph solver for generating well-formed models
</p>
Expand Down

0 comments on commit e21d38e

Please sign in to comment.