Skip to content

Commit

Permalink
feat(a11y): make layout a bit more responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
H1ghBre4k3r committed Dec 26, 2024
1 parent 64f7650 commit 9070318
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 11 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"vite": "^6.0.3"
},
"dependencies": {
"@pesca-dev/atomicity": "^0.1.4",
"@pesca-dev/atomicity": "^0.1.5",
"simple-icons": "^14.0.0"
}
}
6 changes: 1 addition & 5 deletions src/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ website-header {
}

header {
padding-inline-start: 25px;

a {
text-decoration: none;
color: inherit;
Expand All @@ -31,10 +29,8 @@ header {
}
}

@media only screen and (min-width: 768px) {
@media only screen and (min-width: 1420px) {
header {
padding-inline-start: 100px;

h1 {
font-size: 6em;
}
Expand Down
6 changes: 5 additions & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export class WebsiteMain extends AbstractElement {
}

render() {
return <website-header></website-header>;
return (
<main>
<website-header></website-header>
</main>
);
}
}
18 changes: 18 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
-moz-osx-font-smoothing: grayscale;
}

body {
display: flex;
flex-direction: column;
align-items: center;
}

svg {
fill: currentColor;
}
Expand All @@ -28,3 +34,15 @@ svg {
website-main {
display: contents;
}

main {
width: 800px;
max-width: calc(100vw - 40px);
}

@media only screen and (min-width: 1420px) {
main {
width: 1400px;
max-width: calc(100vw - 20px);
}
}

0 comments on commit 9070318

Please sign in to comment.