Skip to content

Commit

Permalink
adjust build
Browse files Browse the repository at this point in the history
  • Loading branch information
Janderson Souza Matias authored and Janderson Souza Matias committed Dec 4, 2023
1 parent 249b2e3 commit 885eae8
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
SourceCode,
Tablet,
} from "@site/static/img/home";
import BrowserOnly from "@docusaurus/BrowserOnly";

function HomepageHeader() {
return (
Expand All @@ -34,23 +35,24 @@ const Docs = [
];

export default function Home(): JSX.Element {
const HomeLogo = window.location.href.includes("/np/")
? HomeLogoNP
: HomeLogoSL;

return (
<Layout title={`Home`} description="Coach APP SL Documentation">
<HomepageHeader />

<img
src={HomeLogo}
style={{
objectFit: "cover",
width: "180px",
alignSelf: "center",
margin: "24px 0px",
}}
/>
<BrowserOnly>
{() => (
<img
src={
window.location.href.includes("/np/") ? HomeLogoNP : HomeLogoSL
}
style={{
objectFit: "cover",
width: "180px",
alignSelf: "center",
margin: "24px 0px",
}}
/>
)}
</BrowserOnly>

<div
style={{
Expand Down

0 comments on commit 885eae8

Please sign in to comment.