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

fix: updated donation progress with heading #54377

Merged
merged 9 commits into from May 3, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions client/i18n/locales/english/translations.json
Expand Up @@ -398,6 +398,7 @@
"scrimba-tip": "Tip: If the mini-browser is covering the code, click and drag to move it. Also, feel free to stop and edit the code in the video at any time.",
"chal-preview": "Challenge Preview",
"donation-record-not-found": "Your donation record has not been found.",
"donation-heading": "Progress towards donation goal",
"sign-in-card-update": "Sign in to update your card",
"sign-in-see-benefits": "Sign in to see your supporter benefits",
"card-has-been-updated": "Your card has been updated successfully.",
Expand Down
5 changes: 4 additions & 1 deletion client/src/components/Intro/learn-alert.tsx
Expand Up @@ -22,12 +22,15 @@ const LearnAlert = ({
<Alert variant='info' className='annual-donation-alert'>
{value && (
<>
<div className='text-center'>
<h2>{t('learn.donation-heading')}</h2>
<h3>{`${value}%`}</h3>
Sembauke marked this conversation as resolved.
Show resolved Hide resolved
</div>
<div aria-hidden='true' className='progress-wrapper'>
<div>
<ProgressBar now={value} />
</div>
</div>
<h3 className='text-center'>{`${value}%`}</h3>
</>
)}
<p>{text}</p>
Expand Down
11 changes: 0 additions & 11 deletions client/src/templates/Introduction/intro.css
Expand Up @@ -499,17 +499,6 @@ ToDo: find out why, and remove the need for it */
background-color: var(--blue-mid);
box-shadow: none;
animation: progress-bar-stripes 3s linear infinite;
background-image: linear-gradient(
-45deg,
rgba(225, 225, 225, 0.3) 0%,
rgba(225, 225, 225, 0.3) 25%,
transparent 25%,
transparent 50%,
rgba(225, 225, 225, 0.3) 51%,
rgba(225, 225, 225, 0.3) 75%,
transparent 75%,
transparent 100%
);
background-size: 100px 100px;
}

Expand Down