Skip to content

Commit

Permalink
Dot matrix background
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheraff committed Feb 25, 2024
1 parent ee1bfce commit c58626e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
8 changes: 8 additions & 0 deletions client/src/App.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.main {
background:
fixed no-repeat center / 100dvw 100dvh
radial-gradient(transparent 30%, var(--background) 70%),
repeat center / 40px 40px
radial-gradient(hsl(from var(--foreground) h s l / 0.1) 1px, transparent 0),
var(--background);
}
5 changes: 3 additions & 2 deletions client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ import { WorkerDemo } from "client/components/WorkerDemo"
import { DbDemo } from "client/components/DbDemo"
import { ReadTheDocs } from "client/components/ReadTheDocs"
import { Header } from "client/components/Header/Header"
import styles from "client/App.module.css"

fooBar()

export default function App() {
return (
<div>
<main className={styles.main}>
<Header>
<h1>🌳 Root</h1>
<ReadTheDocs />
Expand All @@ -34,6 +35,6 @@ export default function App() {
<DbDemo />
</Cell>
</Grid>
</div>
</main>
)
}
5 changes: 3 additions & 2 deletions client/src/components/Bento/GridCell.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
grid-row: span var(--y);
border-radius: var(--s-0-5);
overflow: hidden;
border: 1px solid hsl(from var(--foreground) h s l / 0.1);
background-color: hsl(from var(--background) h s 3%);
border: 1px solid hsl(from var(--background) h 25% 10%);
background-color: hsl(from var(--background) h s 3% / 0.3);
backdrop-filter: blur(1px) brightness(120%);
padding: var(--s);

@media (width < 500px) {
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/Divider/Divider.module.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.divider {
border: none;
height: 1px;
background-color: hsl(from var(--foreground) h s l / 0.1);
background-color: hsl(from var(--background) h 25% 10%);
margin: 1em 0;
}

.accent {
background-color: hsl(from var(--accent) h s l / 0.4);
background-color: hsl(from var(--accent) h s 15%);
}

.full {
Expand Down

0 comments on commit c58626e

Please sign in to comment.