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

feat(sponsor): implement sponsor list on index page #40

Merged
merged 8 commits into from
May 2, 2021

Conversation

mattwang44
Copy link
Member

Types of Changes

  • Bugfix
  • New feature
  • Refactoring
  • Breaking change (any change that would cause existing functionality to not work as expected)
  • Documentation Update
  • Other (please describe)

Description

  • Add mock data for sponsor list API.
  • Implement sponsor list on index page & affiliated modal.

More Information

Preview: Sponsor List

web view
mobile view (iPhone 6/7/8)

Preview: Modal

web view
mobile view (iPhone 6/7/8)

@mattwang44 mattwang44 requested a review from flynnhou May 1, 2021 18:59
@mattwang44 mattwang44 changed the title chore(mock_server): update list sponsor API response feat(sponsor): implement sponsor list on index page May 1, 2021
Comment on lines 74 to 78
.lightBox__closeButton {
@apply relative flex justify-end text-yellow-500;
top: 10px;
right: 10px;
}

Choose a reason for hiding this comment

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

Please add cursor: pointer; to allow users to know this is pressable.

Comment on lines 76 to 77
top: 10px;
right: 10px;

Choose a reason for hiding this comment

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

Suggested change
top: 10px;
right: 10px;
top: -40px;
right: -20px;

This looks closer to the design spec, give or take.

}

.lightBox__title {
@apply flex justify-start items-center;

Choose a reason for hiding this comment

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

Remove the unnecessary justify-start class as the justify-content rule by default is already flex-start.

pages/index.vue Outdated
Comment on lines 94 to 97
closeModal() {
this.isOpened = false
this.selectedSponsor = {}
},

Choose a reason for hiding this comment

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

Remove this unused method

@@ -0,0 +1,43 @@
<template>
<div v-show="!!logoUrl" :class="classObject">
<img :src="logoUrl" class="object-contain w-full" />

Choose a reason for hiding this comment

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

Suggested change
<img :src="logoUrl" class="object-contain w-full" />
<img :src="logoUrl" alt="" class="object-contain w-full" />

Provide the required attribute for <img>

<div class="lightBox__intro">
<p class="text-sm">{{ getAttributeByLocale('intro') }}</p>
</div>
<div class="lightBox__bottons">

Choose a reason for hiding this comment

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

Suggested change
<div class="lightBox__bottons">
<div class="lightBox__buttons">

Fix typo

Copy link
Collaborator

@flynnhou flynnhou left a comment

Choose a reason for hiding this comment

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

lgtm

@flynnhou flynnhou merged commit d3a7f18 into main May 2, 2021
@flynnhou flynnhou deleted the add-sponsor-list branch May 2, 2021 15:56
@mattwang44
Copy link
Member Author

Implement sponsor list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants