question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ Mobile / Desktop ] Create SfHero

See original GitHub issue

Designs on Figma

Screenshot_2019-06-08 Figma

Should use Glidejs to handle slide, take a look on SfGallery or SfCarousel as examples.

Proposed API

Props

{
  /**
   * List of banners:
   * array of nested objects with format: `[{ image, title, subtitle, cta, route }]`
   */
  banners: {
    type: Array,
    required: true
  },
  /**
    * Glide slider options (https://glidejs.com/docs/options/)
    */
  sliderOptions: {
    type: Object,
    default() {
      return {
        type: "slider",
        autoplay: 8000,
        rewind: true
      };
    }
  }
}

On banner object, only image (img src) should be required.

Slots

  • default: the content itself, overwriting each banner image, should bind banner object;
  • next: next banner icon (arrow right by default), should bind isFirst boolean;
  • previous: previous banner icon (arrow left by default), should bind isLast boolean;
  • bullets: pagination bullets, should bind total and current (numbers);

Events

this.$emit("click", banner.route);

Please mind that it’s just a proposal. We’re open to discussion regarding component API. 😁

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
filrakcommented, Jun 12, 2019

@leomp12 I was just thinking more about copying some styles to have a quicker setup

1reaction
leomp12commented, Jun 10, 2019

@bahdcoder you’re right, thanks! I had forgotten the prop for glidejs options, I’ll edit the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[ Mobile / Desktop ] Create SfHero · Issue #149 - GitHub
On banner object, only image (img src) should be required. Slots. default : the content itself, overwriting each banner image, should bind ...
Read more >
Add Website to Mobile Device Home Screen
Launch “Safari” app. · Enter into the address field the URL of the website you want to create a shortcut to. · Tap...
Read more >
Using the Safari Browser to Access Canvas (Mobile/Desktop)
Click the Safari menu in the upper left corner of the screen and select "Preferences". Preferences.png. 2. Click the "Privacy" tab in the...
Read more >
How to request desktop site on iPhone | BrowserStack
How to request a desktop site on the iPhone · Open the Safari browser and navigate to any website. · Once the website...
Read more >
Saving Links to Desktop and Mobile Device Home Screen
1. Launch “Safari” app. This does not work from the “Chrome” app. 2. Enter into the address field the URL of the website...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found