Skip to content

Commit

Permalink
More optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKiwi committed Jan 16, 2024
1 parent a387d19 commit c2b8ee4
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 4 deletions.
6 changes: 4 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import { defineConfig } from "astro/config";
import partytown from '@astrojs/partytown';
import react from "@astrojs/react";

import compressor from "astro-compressor";

import robotsTxt from "astro-robots-txt";

// https://astro.build/config
export default defineConfig({
site: "https://uwucrew.art",
integrations: [react(), partytown({
config: {
forward: ["dataLayer.push"]
}
}), compressor()]
}), compressor(), robotsTxt()]
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@types/react-dom": "^18.0.6",
"astro": "^2.4.1",
"astro-compressor": "^0.4.1",
"astro-robots-txt": "^1.0.0",
"astro-seo-metadata": "^0.6.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
Expand Down
3 changes: 2 additions & 1 deletion src/components/HeroContent.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@
.socials-text {
font-size: 2rem;
font-weight: 700;
margin-right: 0.5rem;
color: var(--sub);
}

.social {
margin-left: 1rem;
margin: 0.5rem;
height: 1.8rem;
width: 2rem;
transition: transform 0.3s ease-in-out;
Expand Down
3 changes: 2 additions & 1 deletion src/components/Why.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const Why = () => {
<img
src={uwu1}
alt="uwu"
loading="eager"
className={`why-fixed-image ${image == 0 ? "why-active" : ""}`}
/>
<img
Expand All @@ -50,7 +51,7 @@ const Why = () => {
<div className="why-content">
<h1 className="why-header">Why uwucrew?!</h1>
<div className="why-image-container">
<img className="why-image" src={uwu1} alt="uwu" />
<img className="why-image" src={uwu1} alt="uwu" loading="eager" />
<a
href={`https://twitter.com/${imageCredits[0]}`}
target="_blank"
Expand Down
25 changes: 25 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,14 @@ astro-compressor@^0.4.1:
resolved "https://registry.yarnpkg.com/astro-compressor/-/astro-compressor-0.4.1.tgz#f1253847d88f62188a851dc028206d2d67553731"
integrity sha512-IAgYAlxYRMolaptsFB9quH7RxX4eUeC4UfULCPhT+ILcg7m1kbaxuyUKqGg9Hh+KZ+FNPPDAz7DqUfl+HDWhQg==

astro-robots-txt@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/astro-robots-txt/-/astro-robots-txt-1.0.0.tgz#d5e47c03e7b3d6b070d75eb470dd3661fa19fe96"
integrity sha512-6JQSLid4gMhoWjOm85UHLkgrw0+hHIjnJVIUqxjU2D6feKlVyYukMNYjH44ZDZBK1P8hNxd33PgWlHzCASvedA==
dependencies:
valid-filename "^4.0.0"
zod "^3.22.2"

astro-seo-metadata@^0.6.0:
version "0.6.0"
resolved "https://registry.yarnpkg.com/astro-seo-metadata/-/astro-seo-metadata-0.6.0.tgz#1652a04f7996e0b83610efb32d429f40dc7d97b9"
Expand Down Expand Up @@ -1266,6 +1274,11 @@ fastq@^1.6.0:
dependencies:
reusify "^1.0.4"

filename-reserved-regex@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/filename-reserved-regex/-/filename-reserved-regex-3.0.0.tgz#3d5dd6d4e2d73a3fed2ebc4cd0b3448869a081f7"
integrity sha512-hn4cQfU6GOT/7cFHXBqeBg2TbrMBgdD0kcjLhvSQYYwm3s4B6cjvBfb7nBALJLAXqmU5xajSa7X2NnUud/VCdw==

fill-range@^7.0.1:
version "7.0.1"
resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40"
Expand Down Expand Up @@ -2996,6 +3009,13 @@ uvu@^0.5.0:
kleur "^4.0.3"
sade "^1.7.3"

valid-filename@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/valid-filename/-/valid-filename-4.0.0.tgz#64f1528cffa0725491de84bf1a65733c6125ab06"
integrity sha512-VEYTpTVPMgO799f2wI7zWf0x2C54bPX6NAfbZ2Z8kZn76p+3rEYCTYVYzMUcVSMvakxMQTriBf24s3+WeXJtEg==
dependencies:
filename-reserved-regex "^3.0.0"

vfile-location@^4.0.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/vfile-location/-/vfile-location-4.1.0.tgz#69df82fb9ef0a38d0d02b90dd84620e120050dd0"
Expand Down Expand Up @@ -3181,6 +3201,11 @@ zod@^3.20.6:
resolved "https://registry.yarnpkg.com/zod/-/zod-3.21.4.tgz#10882231d992519f0a10b5dd58a38c9dabbb64db"
integrity sha512-m46AKbrzKVzOzs/DZgVnG5H55N1sv1M8qZU3A8RIKbs3mrACDNeIOeilDymVb2HdmP8uwshOCF4uJ8uM9rCqJw==

zod@^3.22.2:
version "3.22.4"
resolved "https://registry.yarnpkg.com/zod/-/zod-3.22.4.tgz#f31c3a9386f61b1f228af56faa9255e845cf3fff"
integrity sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==

zwitch@^2.0.0, zwitch@^2.0.4:
version "2.0.4"
resolved "https://registry.yarnpkg.com/zwitch/-/zwitch-2.0.4.tgz#c827d4b0acb76fc3e685a4c6ec2902d51070e9d7"
Expand Down

0 comments on commit c2b8ee4

Please sign in to comment.