-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #314 from maxmarinich/dnd-link
Add DNDLink component
- Loading branch information
Showing
8 changed files
with
226 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,3 +69,5 @@ npm-debug.log | |
dist | ||
lib | ||
static | ||
|
||
!src/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
```javascript | ||
import React from 'react'; | ||
import AliceCarousel, { Link } from 'react-alice-carousel'; | ||
import 'react-alice-carousel/lib/alice-carousel.css'; | ||
|
||
const href = '//github.com/maxmarinich/react-alice-carousel'; | ||
const src = '//github.com/maxmarinich/react-alice-carousel/raw/master/src/assets/img/1200x200.jpg'; | ||
|
||
const Carousel = () => ( | ||
<AliceCarousel mouseTracking> | ||
<Link href={href} target="_blank" className="link"> | ||
<img src={src} alt="" /> | ||
</Link> | ||
<Link href={href} target="_blank" className="link"> | ||
<img src={src} alt="" /> | ||
</Link> | ||
<Link href={href} target="_blank" className="link"> | ||
<img src={src} alt="" /> | ||
</Link> | ||
</AliceCarousel> | ||
); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from 'react'; | ||
|
||
import markdown from './code.md'; | ||
import TheCode from '../../../the-code'; | ||
import AliceCarousel, { Link } from '../../../../lib/react-alice-carousel'; | ||
|
||
const Links = () => { | ||
const href = '//github.com/maxmarinich/react-alice-carousel'; | ||
const src = '//github.com/maxmarinich/react-alice-carousel/raw/master/src/assets/img/1200x200.jpg'; | ||
|
||
return ( | ||
<section className="p-basic"> | ||
<AliceCarousel mouseTracking> | ||
<Link href={href} target="_blank" className="link"> | ||
<img src={src} alt="" /> | ||
</Link> | ||
<Link href={href} target="_blank" className="link"> | ||
<img src={src} alt="" /> | ||
</Link> | ||
<Link href={href} target="_blank" className="link"> | ||
<img src={src} alt="" /> | ||
</Link> | ||
</AliceCarousel> | ||
<TheCode html={markdown} /> | ||
</section> | ||
); | ||
}; | ||
|
||
export default Links; |
Oops, something went wrong.