-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
favicon added and compressed, deps updated, migrated to nextra v3, bu…
…ild wf updated, tailwindcss added.
- Loading branch information
Showing
81 changed files
with
3,281 additions
and
2,024 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.next | ||
node_modules | ||
next-env.d.ts | ||
dist | ||
out | ||
gserv.json | ||
.hawk.lrs |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { compressImages } from "@cresteem/minomax"; | ||
|
||
class Compress { | ||
favicons() { | ||
// compress favicons | ||
compressImages("public/favicons/*png", "webp", "compressed").catch( | ||
console.error | ||
); | ||
} | ||
|
||
svg() { | ||
// compress all svg | ||
compressImages("public/**/*svg", "svg", "compressed").catch(console.error); | ||
} | ||
|
||
serviceImages() { | ||
// compress service visuals | ||
compressImages( | ||
"public/services-visuals/**/*{jpg,webp}", | ||
"avif", | ||
"compressed" | ||
).catch(console.error); | ||
} | ||
|
||
brandAssets() { | ||
// compress brand-assets non-svg | ||
compressImages( | ||
"public/brand-assets/*{png,webp}", | ||
"webp", | ||
"compressed" | ||
).catch(console.error); | ||
} | ||
} | ||
|
||
new Compress().favicons(); |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
const withNextra = require("nextra")({ | ||
import nextra from "nextra"; | ||
|
||
const withNextra = nextra({ | ||
theme: "nextra-theme-docs", | ||
themeConfig: "./theme.config.tsx", | ||
themeConfig: "./theme.config.jsx", | ||
staticImage: true, | ||
}); | ||
|
||
module.exports = { | ||
const config = { | ||
...withNextra(), | ||
images: { | ||
unoptimized: true, | ||
}, | ||
basePath: "", | ||
output: "export", | ||
distDir: "dist", | ||
distDir: "out", | ||
sassOptions: { silenceDeprecations: ["legacy-js-api"] }, | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import "../stylesheets/globals.scss"; | ||
|
||
export default function App({ | ||
Component, | ||
pageProps, | ||
}: { | ||
Component: any; | ||
pageProps: Record<any, any>; | ||
}) { | ||
return <Component {...pageProps} />; | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.