Skip to content

Commit

Permalink
optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
manueldeutsch committed Oct 17, 2024
1 parent 936ce5f commit 5e2486c
Show file tree
Hide file tree
Showing 19 changed files with 737 additions and 476 deletions.
17 changes: 9 additions & 8 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -181,22 +181,23 @@ ExpiresByType video/webm "access plus 4 month"
# Web fonts

# Embedded OpenType (EOT)
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
ExpiresByType font/eot "access plus 1 month"
ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
ExpiresByType font/eot "access plus 1 year"

# OpenType
ExpiresByType font/opentype "access plus 1 month"
ExpiresByType font/opentype "access plus 1 year"

# TrueType
ExpiresByType application/x-font-ttf "access plus 1 month"
ExpiresByType application/x-font-ttf "access plus 1 year"

# Web Open Font Format (WOFF) 1.0
ExpiresByType application/font-woff "access plus 1 month"
ExpiresByType application/x-font-woff "access plus 1 month"
ExpiresByType font/woff "access plus 1 month"
ExpiresByType application/font-woff "access plus 1 year"
ExpiresByType application/x-font-woff "access plus 1 year"
ExpiresByType font/woff "access plus 1 year"

# Web Open Font Format (WOFF) 2.0
ExpiresByType application/font-woff2 "access plus 1 month"
ExpiresByType application/font-woff2 "access plus 1 year"
ExpiresByType font/woff2 "access plus 1 year"

# Other
ExpiresByType text/x-cross-domain-policy "access plus 1 week"
Expand Down
3 changes: 3 additions & 0 deletions .sassrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"silenceDeprecations": ["legacy-js-api"]
}
28 changes: 14 additions & 14 deletions assets/css/main.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
@import "~/node_modules/modern-normalize/modern-normalize.css";
@forward "~/node_modules/modern-normalize/modern-normalize.css";

@import "common/variables";
@import "common/fonts";
@import "common/typo";
@import "common/global";
@import "common/helper";
@import "common/grid";
@forward "common/variables";
@forward "common/fonts";
@forward "common/typo";
@forward "common/global";
@forward "common/helper";
@forward "common/grid";

@import "components/header";
@import "components/footer";
@import "components/button";
@import "components/nav";
@forward "components/header";
@forward "components/footer";
@forward "components/button";
@forward "components/nav";

@import "pages/default";
@import "pages/error";
@import "pages/home";
@forward "pages/default";
@forward "pages/error";
@forward "pages/home";
4 changes: 3 additions & 1 deletion assets/css/pages/_default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
main {
padding: 20px 0;

.wrapper {
.content-wrapper {
max-width: 900px;
margin-left: 0;
margin-right: auto;
}
}
}
6 changes: 6 additions & 0 deletions assets/css/pages/_error.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
.error {
justify-content: space-between;

h1 {
font-size: clamp(3rem, 10vw, 20rem);
}

.footer {
margin-top: 0;
}
}
2 changes: 1 addition & 1 deletion assets/js/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import initComponent from "./components/component.js";

window.addEventListener('load', () => {
window.addEventListener('DOMContentLoaded', () => {
initComponent();
});
Loading

0 comments on commit 5e2486c

Please sign in to comment.