Skip to content

Commit

Permalink
feat: add badge shine and rays animations
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bedon committed Nov 18, 2024
1 parent c7f0477 commit d940405
Show file tree
Hide file tree
Showing 8 changed files with 337 additions and 33 deletions.
10 changes: 8 additions & 2 deletions .storybook/stories/BadgeContainer.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const story = (args = {}, badgeUrl) => {
components: { BadgeContainer },
setup() { return { args }; },
template: `
<badge-container v-bind="args" style="width: 150px; height: 150px;">
<img src="${badgeUrl}" />
<badge-container v-bind="args" style="width: 500px; height: 500px;">
<img src="${badgeUrl}" style="width: 300px; height: 300px; margin: 0 auto; margin-top: 80px" />
</badge-container>
`,
});
Expand Down Expand Up @@ -66,3 +66,9 @@ export const RectangleCompleted = story({ status: BADGE_COMPLETED, shape: BADGE_
export const RectangleInProgress = story({ status: BADGE_IN_PROGRESS, shape: BADGE_SHAPE_RECTANGLE }, badgeUsEconomicEquality.contentfulData[0].imageUrl);

export const RectangleLocked = story({ status: BADGE_LOCKED, shape: BADGE_SHAPE_RECTANGLE }, badgeUsEconomicEquality.contentfulData[0].imageUrl);

export const BadgeWithRays = story({showRays: true, status: BADGE_COMPLETED, shape: BADGE_SHAPE_ARCH}, badgeClimateAction.contentfulData[0].imageUrl);

export const BadgeWithShine = story({showShine: true, status: BADGE_COMPLETED, shape: BADGE_SHAPE_ARCH}, badgeClimateAction.contentfulData[0].imageUrl);

export const BadgeWithShineAndRays = story({showRays: true, showShine: true, status: BADGE_COMPLETED, shape: BADGE_SHAPE_ARCH}, badgeClimateAction.contentfulData[0].imageUrl);
5 changes: 5 additions & 0 deletions src/assets/images/my-kiva/badge-shine.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/images/my-kiva/badge-shine/first.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/images/my-kiva/badge-shine/second.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 64 additions & 0 deletions src/assets/images/my-kiva/rays/first.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 64 additions & 0 deletions src/assets/images/my-kiva/rays/second.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 64 additions & 0 deletions src/assets/images/my-kiva/rays/third.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d940405

Please sign in to comment.