Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mdn developer whatsnew page #15836

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ <h1 class="c-mdn-header-title">{{ ftl('developer-mdnplus-more-mdn-your-mdn') }}<
</div>

<div class="mandala-wrapper">
<div id="mandala" class="mandala-container animate-colors" aria-hidden="true">
<div class="mandala-translate mandala-rotate">
Comment on lines -38 to -39
Copy link
Contributor

@janbrasna janbrasna Jan 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maureenlholland FYI I'm fiddling with a change that would only animate the mandala on body:hover, and stop after a minute and half: #15844 (in case the limited timeline would be an alternative to completely removing it…)

<div id="mandala" class="mandala-container" aria-hidden="true">
<div>
<svg width="675" height="675" viewBox="0 0 675 675" fill="none" xmlns="http://www.w3.org/2000/svg" class="mandala">
<defs>
<path d="M337.5,337.5 m-320,0 a320,320 0 1,1 640,0 a320,320 0 1,1 -640,0" id="circle1"></path>
Expand Down Expand Up @@ -71,9 +71,9 @@ <h1 class="c-mdn-header-title">{{ ftl('developer-mdnplus-more-mdn-your-mdn') }}<
<h2 class="c-mdn-body-title">{{ ftl('developer-mdnplus-whats-included') }}</h2>
<div class="mzp-l-columns mzp-t-columns-three">
<div class="c-mdn-feature">
<h3 class="c-mdn-feature-pretitle">{{ ftl('developer-mdnplus-notifications') }}</h3>
<h4 class="c-mdn-feature-title">{{ ftl('developer-mdnplus-development-in-real-time') }}</h4>
<p>{{ ftl('developer-mdnplus-the-web-doesnt-have-a') }}</p>
<h3 class="c-mdn-feature-pretitle">{{ ftl('developer-mdnplus-playground') }}</h3>
<h4 class="c-mdn-feature-title">{{ ftl('developer-mdnplus-write-test-and-share') }}</h4>
<p>{{ ftl('developer-mdnplus-your-playground-to-learn') }}</p>
</div>

<div class="c-mdn-feature">
Expand All @@ -83,9 +83,9 @@ <h4 class="c-mdn-feature-title">{{ ftl('developer-mdnplus-build-your-perfect-lib
</div>

<div class="c-mdn-feature">
<h3 class="c-mdn-feature-pretitle">{{ ftl('developer-mdnplus-mdn-offline') }}</h3>
<h4 class="c-mdn-feature-title">{{ ftl('developer-mdnplus-mdns-entire-library-at-your') }}</h4>
<p>{{ ftl('developer-mdnplus-taking-your-projects-beyond') }}</p>
<h3 class="c-mdn-feature-pretitle">{{ ftl('developer-mdnplus-updates', fallback="developer-mdnplus-notifications") }}</h3>
<h4 class="c-mdn-feature-title">{{ ftl('developer-mdnplus-compatibility-changes', fallback="developer-mdnplus-development-in-real-time") }}</h4>
<p>{{ ftl('developer-mdnplus-the-web-doesnt-have-a-v2', fallback="developer-mdnplus-the-web-doesnt-have") }}</p>
</div>
</div>
</div>
Expand All @@ -103,7 +103,3 @@ <h4 class="c-mdn-feature-title">{{ ftl('developer-mdnplus-mdns-entire-library-at

{# Exclude stub attribution for in-product pages: issue 9620 #}
{% block stub_attribution %}{% endblock %}

{% block js %}
{{ js_bundle('firefox_developer_whatsnew_mdnplus') }}
{% endblock %}
12 changes: 12 additions & 0 deletions l10n/en/firefox/whatsnew/whatsnew-developer-mdnplus.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,25 @@ developer-mdnplus-support-mdn-and-make = Support { -brand-name-mdn } <em>and</em
developer-mdnplus-get-started = Get Started

developer-mdnplus-whats-included = What’s included
developer-mdnplus-updates = Updates
developer-mdnplus-compatibility-changes = Compatibility changes at a glance.
developer-mdnplus-the-web-doesnt-have-a-v2 = The Web doesn’t have a changelog, but { -brand-name-mdn } can help. You can personalize and filter compatibility changes based on browsers or the tech category you are interested in whether that is JavaScript, CSS, etc.
# Obsolete string (expires 2025-03-09)
developer-mdnplus-notifications = Notifications
# Obsolete string (expires 2025-03-09)
developer-mdnplus-development-in-real-time = Development in real time: Get custom alerts
# Obsolete string (expires 2025-03-09)
developer-mdnplus-the-web-doesnt-have-a = The Web doesn’t have a changelog, but { -brand-name-mdn } can help. Follow pages and get customizable notifications when documentation changes, CSS features launch, and APIs ship.
developer-mdnplus-collections = Collections
developer-mdnplus-build-your-perfect-library = Build your perfect library. Or let us build it for you.
developer-mdnplus-no-more-haphazard-hunting = No more haphazard hunting through the vast virtual library: unleash your inner curator and collect your favorite articles in one place for convenient consultation.
developer-mdnplus-playground = Playground
developer-mdnplus-write-test-and-share = Write,Test and Share your code.
developer-mdnplus-your-playground-to-learn = Your playground to learn and share your amazing work with the world. By simply logging in, you can now spread your creativity far and wide.
# Obsolete string (expires 2025-03-09)
developer-mdnplus-mdn-offline = { -brand-name-mdn } offline
# Obsolete string (expires 2025-03-09)
developer-mdnplus-mdns-entire-library-at-your = { -brand-name-mdn }’s entire library at your fingertips: offline
# Obsolete string (expires 2025-03-09)
developer-mdnplus-taking-your-projects-beyond = Taking your projects beyond the nearest Wi-Fi signal? Say goodbye to inaccessible pages or cluttered tabs. With { -brand-name-mdn-plus }, have the fully navigable resources of { -brand-name-mdn } at your disposal even when offline.
developer-mdnplus-resources-for-developers = Resources for Developers, by Developers.
126 changes: 0 additions & 126 deletions media/css/firefox/developer/whatsnew-mdnplus.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ $image-path: '/media/protocol/img';
h3,
h4 {
@include font-base;
color: $color-black;
}
}
}
Expand Down Expand Up @@ -79,131 +78,6 @@ $image-path: '/media/protocol/img';
transform: translate(12rem, -8rem);

--mandala-primary: #{$color-dark-gray-10};
--mandala-accent-1: #{$color-violet-30};
--mandala-accent-2: #{$color-yellow-30};
--mandala-accent-3: #{$color-green-30};
--mandala-accent-4: #{$color-red-20};
--mandala-accent-5: #{$color-light-gray-30};

@keyframes rotation {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}

@keyframes mandala-color-change {
0% {
fill: var(--mandala-primary);
}

10% {
fill: var(--mandala-primary);
}

15% {
fill: var(--mandala-accent-1);
}

20% {
fill: var(--mandala-primary);
}

25% {
fill: var(--mandala-primary);
}

30% {
fill: var(--mandala-accent-2);
}

35% {
fill: var(--mandala-primary);
}

40% {
fill: var(--mandala-primary);
}

50% {
fill: var(--mandala-accent-3);
}

55% {
fill: var(--mandala-primary);
}

60% {
fill: var(--mandala-primary);
}

65% {
fill: var(--mandala-accent-4);
}

70% {
fill: var(--mandala-primary);
}

100% {
fill: var(--mandala-primary);
}
}

&.animated {
.mandala-rotate > svg {
.mandala-accent-1 {
animation: rotation 505s linear infinite;
}

.mandala-accent-2 {
animation: rotation 480s linear infinite reverse;
}

.mandala-accent-3 {
animation: rotation 515s linear infinite;
}

.mandala-accent-4 {
animation: rotation 425s linear infinite reverse;
}

.mandala-accent-5 {
animation: rotation 415s linear infinite;
}
}

&.animate-colors {
svg > text > textPath > tspan {
animation: mandala-color-change 50s infinite;
animation-timing-function: ease-in-out;
fill: var(--mandala-primary);
}

.mandala-accent-1 > textPath > tspan {
fill: var(--mandala-accent-1);
animation-delay: -15s;
}

.mandala-accent-2 > textPath > tspan {
fill: var(--mandala-accent-2);
animation-delay: -20s;
}

.mandala-accent-3 > textPath > tspan {
fill: var(--mandala-accent-3);
animation-delay: -30s;
}

.mandala-accent-4 > textPath > tspan {
fill: var(--mandala-accent-4);
animation-delay: -5s;
}

.mandala-accent-5 > textPath > tspan {
fill: var(--mandala-accent-4);
animation-delay: -40s;
}
}
}

svg {
font-size: 1.5rem;
Expand Down
40 changes: 0 additions & 40 deletions media/js/firefox/developer/whatsnew-mdnplus.js

This file was deleted.

6 changes: 0 additions & 6 deletions media/static-bundles.json
Original file line number Diff line number Diff line change
Expand Up @@ -1383,12 +1383,6 @@
],
"name": "about-leadership"
},
{
"files": [
"js/firefox/developer/whatsnew-mdnplus.js"
],
"name": "firefox_developer_whatsnew_mdnplus"
},
{
"files": [
"js/base/mozilla-fxa.js",
Expand Down
Loading