From bdf1022bb6814ff44ec585a3b5b9d6b161222724 Mon Sep 17 00:00:00 2001 From: Alexandra Goff Date: Thu, 19 Dec 2024 17:01:05 -0500 Subject: [PATCH] fix: set revalidation time, fix subnav height --- components/molecules/Logo/styles.module.css | 1 + .../organisms/Header/_subnavigation.scss | 1 - components/svg/unique/index.js | 4 - components/svg/unique/site/Logo.js | 35 -------- components/svg/unique/site/LogoFullSize.js | 79 ------------------- lib/api/globals/index.ts | 2 +- yarn.lock | 42 +++------- 7 files changed, 15 insertions(+), 149 deletions(-) delete mode 100644 components/svg/unique/site/Logo.js delete mode 100644 components/svg/unique/site/LogoFullSize.js diff --git a/components/molecules/Logo/styles.module.css b/components/molecules/Logo/styles.module.css index 078e71f5..9c3286c8 100644 --- a/components/molecules/Logo/styles.module.css +++ b/components/molecules/Logo/styles.module.css @@ -8,6 +8,7 @@ width: auto; & > img { + height: 100%; max-height: 100%; } } diff --git a/components/organisms/Header/_subnavigation.scss b/components/organisms/Header/_subnavigation.scss index 2a806167..553d786b 100644 --- a/components/organisms/Header/_subnavigation.scss +++ b/components/organisms/Header/_subnavigation.scss @@ -14,7 +14,6 @@ top: 0; left: 0; width: functions.header(nav-width-mobile); - height: 100%; &--is-active { transform: translateX(-100%); diff --git a/components/svg/unique/index.js b/components/svg/unique/index.js index e5b9f0dd..d9b3e2bf 100644 --- a/components/svg/unique/index.js +++ b/components/svg/unique/index.js @@ -2,8 +2,6 @@ import Arrow from "./Arrow"; import Cloudy from "./weather/Cloudy"; import CloudyPartial from "./weather/CloudyPartial"; import Gear from "./Gear"; -import Logo from "./site/Logo"; -import LogoFullSize from "./site/LogoFullSize"; import Rain from "./weather/Rain"; import RainHeavy from "./weather/RainHeavy"; import RainLight from "./weather/RainLight"; @@ -17,8 +15,6 @@ export default { Cloudy, CloudyPartial, Gear, - Logo, - LogoFullSize, Rain, RainHeavy, RainLight, diff --git a/components/svg/unique/site/Logo.js b/components/svg/unique/site/Logo.js deleted file mode 100644 index e21312b8..00000000 --- a/components/svg/unique/site/Logo.js +++ /dev/null @@ -1,35 +0,0 @@ -import PropTypes from "prop-types"; -import classNames from "classnames"; -export default function Logo({ className }) { - return ( - - - - - - - - - - - - - - - - - - ); -} - -Logo.displayName = "SVG.Logo"; - -Logo.propTypes = { - className: PropTypes.string, -}; diff --git a/components/svg/unique/site/LogoFullSize.js b/components/svg/unique/site/LogoFullSize.js deleted file mode 100644 index 12fdfd07..00000000 --- a/components/svg/unique/site/LogoFullSize.js +++ /dev/null @@ -1,79 +0,0 @@ -import PropTypes from "prop-types"; -import classNames from "classnames"; -export default function LogoFullSize({ className }) { - return ( - - - - ); -} - -LogoFullSize.displayName = "SVG.LogoFullSize"; - -LogoFullSize.propTypes = { - className: PropTypes.string, -}; diff --git a/lib/api/globals/index.ts b/lib/api/globals/index.ts index 2c6f4776..d091f5c3 100644 --- a/lib/api/globals/index.ts +++ b/lib/api/globals/index.ts @@ -41,7 +41,7 @@ export async function getLogos() { const { data } = await queryAPI({ query, variables: { set: "siteInfo" }, - fetchOptions: { next: { tags: [tags.globals] } }, + fetchOptions: { next: { tags: [tags.globals], revalidate: 60 * 60 } }, }); if (!data || !data.siteInfo) { diff --git a/yarn.lock b/yarn.lock index 15e39503..80f414b2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10851,7 +10851,16 @@ postcss@8.4.38: picocolors "^1.0.0" source-map-js "^1.2.0" -postcss@^8.2.14, postcss@^8.3.11, postcss@^8.4.14, postcss@^8.4.19, postcss@^8.4.21, postcss@^8.4.24: +postcss@^8.0.0, postcss@^8.4.28, postcss@^8.4.35: + version "8.4.49" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.49.tgz#4ea479048ab059ab3ae61d082190fabfd994fe19" + integrity sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA== + dependencies: + nanoid "^3.3.7" + picocolors "^1.1.1" + source-map-js "^1.2.1" + +postcss@^8.2.14, postcss@^8.3.11, postcss@^8.4.14, postcss@^8.4.19, postcss@^8.4.21: version "8.4.47" resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.47.tgz#5bf6c9a010f3e724c503bf03ef7947dcb0fea365" integrity sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ== @@ -12234,16 +12243,7 @@ string-argv@^0.3.1: resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.1.tgz#95e2fbec0427ae19184935f816d74aaa4c5c19da" integrity sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg== -"string-width-cjs@npm:string-width@^4.2.0": - version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3: +"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -12390,7 +12390,7 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1": +"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -12411,13 +12411,6 @@ strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0: dependencies: ansi-regex "^4.1.0" -strip-ansi@^6.0.0, strip-ansi@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - strip-ansi@^7.0.1: version "7.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.0.1.tgz#61740a08ce36b61e50e65653f07060d000975fb2" @@ -13601,7 +13594,7 @@ wordwrap@^1.0.0: resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q== -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== @@ -13628,15 +13621,6 @@ wrap-ansi@^6.2.0: string-width "^4.1.0" strip-ansi "^6.0.0" -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - wrap-ansi@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"