Skip to content

Commit

Permalink
wip(about): various updates inc. updating images to mdn.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoMcA committed Nov 13, 2024
1 parent 9bc4cec commit 88e5e1b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 33 deletions.
4 changes: 4 additions & 0 deletions client/src/about/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@

section {
padding-top: 5rem;

@media (max-width: $screen-md) {
padding-top: 0;
}
}

h1 {
Expand Down
48 changes: 16 additions & 32 deletions client/src/about/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -148,31 +148,15 @@ main.about-container {
--header-stats-height: var(--about-stats-height);
@include about.header;

h1 {
position: relative;
width: max-content;

&::after {
background: var(--header-text-primary);
content: "";
display: block;
height: 2rem;
mask-image: url("../assets/about/sparkle.svg");
mask-position: center;
mask-repeat: no-repeat;
mask-size: contain;
position: absolute;
right: -1.5rem;
top: -1rem;
width: 2rem;
}
}

h1 + p {
font-size: 2rem;
font-weight: 600;
line-height: 120%;
max-width: 43rem;

@media (max-width: $screen-md) {
font-size: 1.25rem;
}
}

ul {
Expand Down Expand Up @@ -412,11 +396,11 @@ main.about-container {
}

~ p:last-of-type::after {
background-image: url("https://storage.googleapis.com/mdn-dev-static-site/generic-content/about/screenshots/20050121103200-1280x720@0.5x.png");
background-image: url("https://mdn.dev/generic-content/about/screenshots/20050121103200-1280x720@0.5x.png");
background-image: image-set(
url("https://storage.googleapis.com/mdn-dev-static-site/generic-content/about/screenshots/20050121103200-1280x720@0.5x.png")
url("https://mdn.dev/generic-content/about/screenshots/20050121103200-1280x720@0.5x.png")
1x,
url("https://storage.googleapis.com/mdn-dev-static-site/generic-content/about/screenshots/20050121103200-1280x720@1x.png")
url("https://mdn.dev/generic-content/about/screenshots/20050121103200-1280x720@1x.png")
2x
);
}
Expand All @@ -429,11 +413,11 @@ main.about-container {
}

~ p:last-of-type::after {
background-image: url("https://storage.googleapis.com/mdn-dev-static-site/generic-content/about/screenshots/20100901014818-1280x720@0.5x.png");
background-image: url("https://mdn.dev/generic-content/about/screenshots/20100901014818-1280x720@0.5x.png");
background-image: image-set(
url("https://storage.googleapis.com/mdn-dev-static-site/generic-content/about/screenshots/20100901014818-1280x720@0.5x.png")
url("https://mdn.dev/generic-content/about/screenshots/20100901014818-1280x720@0.5x.png")
1x,
url("https://storage.googleapis.com/mdn-dev-static-site/generic-content/about/screenshots/20100901014818-1280x720@1x.png")
url("https://mdn.dev/generic-content/about/screenshots/20100901014818-1280x720@1x.png")
2x
);
}
Expand All @@ -446,11 +430,11 @@ main.about-container {
}

~ p:last-of-type::after {
background-image: url("https://storage.googleapis.com/mdn-dev-static-site/generic-content/about/screenshots/20200103045709-1280x720@0.5x.png");
background-image: url("https://mdn.dev/generic-content/about/screenshots/20200103045709-1280x720@0.5x.png");
background-image: image-set(
url("https://storage.googleapis.com/mdn-dev-static-site/generic-content/about/screenshots/20200103045709-1280x720@0.5x.png")
url("https://mdn.dev/generic-content/about/screenshots/20200103045709-1280x720@0.5x.png")
1x,
url("https://storage.googleapis.com/mdn-dev-static-site/generic-content/about/screenshots/20200103045709-1280x720@1x.png")
url("https://mdn.dev/generic-content/about/screenshots/20200103045709-1280x720@1x.png")
2x
);
}
Expand All @@ -463,11 +447,11 @@ main.about-container {
}

~ p:last-of-type::after {
background-image: url("https://storage.googleapis.com/mdn-dev-static-site/generic-content/about/screenshots/20220402010722-1280x720@0.5x.png");
background-image: url("https://mdn.dev/generic-content/about/screenshots/20220402010722-1280x720@0.5x.png");
background-image: image-set(
url("https://storage.googleapis.com/mdn-dev-static-site/generic-content/about/screenshots/20220402010722-1280x720@0.5x.png")
url("https://mdn.dev/generic-content/about/screenshots/20220402010722-1280x720@0.5x.png")
1x,
url("https://storage.googleapis.com/mdn-dev-static-site/generic-content/about/screenshots/20220402010722-1280x720@1x.png")
url("https://mdn.dev/generic-content/about/screenshots/20220402010722-1280x720@1x.png")
2x
);
}
Expand Down
2 changes: 1 addition & 1 deletion libs/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export const CSP_DIRECTIVES = {

// Shared assets.
"https://mdn.github.io/shared-assets/",
"https://storage.googleapis.com/mdn-dev-static-site/",
"https://mdn.dev/",

// GA4.
"https://*.google-analytics.com",
Expand Down

0 comments on commit 88e5e1b

Please sign in to comment.