Skip to content

Commit

Permalink
SP-07: Update focus
Browse files Browse the repository at this point in the history
  • Loading branch information
Tihi321 committed Aug 6, 2024
1 parent 6a867b8 commit eaca8d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/layouts/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
const focus = localStorage.getItem("focus");
if (focus === "true") {
document.body.classList.add("focus");
} else {
document.body.classList.remove("focus");
}
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const { title, description } = Astro.props;
<head>
<BaseHead title={title} description={description} />
</head>
<body>
<body class="focus">
<slot />
</body>
</html>

0 comments on commit eaca8d4

Please sign in to comment.