Skip to content

Commit

Permalink
chore: fix icon position and remove bad graphics files (#553)
Browse files Browse the repository at this point in the history
* Fix media attachment icon position

* Replace base64 svgs with png

* delete bad graphic

* Create lovely-countries-approve.md

---------

Co-authored-by: Donny <donny@mac.mynetworksettings.com>
  • Loading branch information
goblincore and Donny authored Nov 5, 2024
1 parent 06d9c29 commit 01bb2e5
Show file tree
Hide file tree
Showing 32 changed files with 22 additions and 134 deletions.
5 changes: 5 additions & 0 deletions .changeset/lovely-countries-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@learncard/react": patch
---

Fix icon position and remove bad graphics files
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@
"uint8arrays": "^3.0.0",
"@ceramicnetwork/streamid": "2.7.0"
}
}
},
"packageManager": "pnpm@9.12.3+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee"
}

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions packages/react-learn-card/src/assets/images/agriculture.svg

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions packages/react-learn-card/src/assets/images/athletics.svg

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions packages/react-learn-card/src/assets/images/business.svg

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions packages/react-learn-card/src/assets/images/creative.svg

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions packages/react-learn-card/src/assets/images/digital.svg

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions packages/react-learn-card/src/assets/images/durable.svg

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions packages/react-learn-card/src/assets/images/medical.svg

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions packages/react-learn-card/src/assets/images/social.svg

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions packages/react-learn-card/src/assets/images/stem.svg

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions packages/react-learn-card/src/assets/images/trade.svg

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions packages/react-learn-card/src/assets/images/walletTrophy.svg

This file was deleted.

Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ const MediaAttachmentsBox: React.FC<MediaAttachmentsBoxProps> = ({
className="flex bg-grayscale-100 items-center rounded-[15px] w-full"
>
<button
className="h-[80px] w-[80px] rounded-[15px] overflow-hidden flex-shrink-0"
className="relative h-[80px] w-[80px] rounded-[15px] overflow-hidden flex-shrink-0"
onClick={e => {
e.stopPropagation();
handleMediaAttachmentClick(media.url, media.type);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,10 @@ const MediaAttachmentsBox: React.FC<MediaAttachmentsBoxProps> = ({
return (
<div
key={index}
className="flex bg-grayscale-100 items-center rounded-[15px] w-full"
className="flex media-attachment-box bg-grayscale-100 items-center rounded-[15px] w-full"
>
<button
className="h-[80px] w-[80px] rounded-[15px] overflow-hidden flex-shrink-0"
className="relative h-[80px] w-[80px] rounded-[15px] overflow-hidden flex-shrink-0"
onClick={e => {
e.stopPropagation();
handleMediaAttachmentClick(media.url, media.type);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import coinsGraphic from '../../assets/images/walletcurrency.webp';
import idsGraphic from '../../assets/images/walletids.webp';
import jobhistoryGraphic from '../../assets/images/walletjobhistory.webp';
import learningHistoryGraphic from '../../assets/images/walletlearninghistory.webp';
import learningHistoryGraphic from '../../assets/images/backpack.png';
import skillsGraphic from '../../assets/images/walletskills.webp';
import achievementsGraphic from '../../assets/images/walletTrophy.webp';
import achievementsGraphic from '../../assets/images/walletTrophy.png';
import badgeGraphic from '../../assets/images/social-badge-2.svg';
import membershipGraphic from '../../assets/images/membership-graphic.png';

Expand Down
2 changes: 1 addition & 1 deletion packages/react-learn-card/src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import idsGraphic from '../assets/images/walletids.webp';
import idPurple from '../assets/images/id-purple.png';
import learningHistoryGraphic from '../assets/images/backpack.png';
import skillsGraphic from '../assets/images/walletskills.webp';
import achievementsGraphic from '../assets/images/walletTrophy.svg';
import achievementsGraphic from '../assets/images/walletTrophy.png';
import socialBadge from '../assets/images/social-badge-2.svg';
import experienceMountain from '../assets/images/experience-mountain.svg';
import goalsTarget from '../assets/images/goals-target.svg';
Expand Down
18 changes: 9 additions & 9 deletions packages/react-learn-card/src/constants/skills.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import Athletics from '../assets/images/athletics.svg';
import Business from '../assets/images/business.svg';
import Creative from '../assets/images/creative.svg';
import Digital from '../assets/images/digital.svg';
import Durable from '../assets/images/durable.svg';
import Medical from '../assets/images/medical.svg';
import Social from '../assets/images/social.svg';
import Stem from '../assets/images/stem.svg';
import Trade from '../assets/images/trade.svg';
import Athletics from '../assets/images/athletics.png';
import Business from '../assets/images/business.png';
import Creative from '../assets/images/creative.png';
import Digital from '../assets/images/digital.png';
import Durable from '../assets/images/durable.png';
import Medical from '../assets/images/medical.png';
import Social from '../assets/images/social.png';
import Stem from '../assets/images/stem.png';
import Trade from '../assets/images/trade.png';

export enum BoostCMSSKillsCategoryEnum {
Durable = 'durable',
Expand Down

0 comments on commit 01bb2e5

Please sign in to comment.