Skip to content

Commit

Permalink
546 improve lighthouse score (#556)
Browse files Browse the repository at this point in the history
* Improve SEO and a11y

* Add robots.txt
  • Loading branch information
camilovegag authored May 23, 2024
1 parent 1c36cf6 commit a7c6a47
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
4 changes: 4 additions & 0 deletions packages/berlin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
rel="stylesheet"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Plural Research Experiment. An experiment in collective intelligence and innovation"
/>
<title>Plural Research Experiment</title>
</head>
<body>
Expand Down
6 changes: 6 additions & 0 deletions packages/berlin/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
User-agent: *
Disallow: /admin/
Disallow: /private/
Allow: /

Sitemap: https://www.pluralresearch.org/sitemap.xml
25 changes: 17 additions & 8 deletions packages/berlin/src/components/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,23 @@ function Header() {
<ZupassLoginButton>Login with Zupass</ZupassLoginButton>
)}
</DesktopButtons>
<MenuButton onClick={() => setIsBurgerMenuOpen(!isBurgerMenuOpen)}>
<Bar $isOpen={isBurgerMenuOpen} />
<Bar $isOpen={isBurgerMenuOpen} />
<Bar $isOpen={isBurgerMenuOpen} />
</MenuButton>
<ThemeButton onClick={toggleTheme}>
<img src={`/icons/toggle-${theme}.svg`} height={20} width={20} />
</ThemeButton>
<li>
<MenuButton onClick={() => setIsBurgerMenuOpen(!isBurgerMenuOpen)}>
<Bar $isOpen={isBurgerMenuOpen} />
<Bar $isOpen={isBurgerMenuOpen} />
<Bar $isOpen={isBurgerMenuOpen} />
</MenuButton>
</li>
<li>
<ThemeButton onClick={toggleTheme}>
<img
src={`/icons/toggle-${theme}.svg`}
alt="Toggle theme icon"
height={20}
width={20}
/>
</ThemeButton>
</li>
</NavButtons>
</NavContainer>
<BurgerMenuContainer $$isOpen={isBurgerMenuOpen} onClick={() => setIsBurgerMenuOpen(false)}>
Expand Down

0 comments on commit a7c6a47

Please sign in to comment.