Skip to content

Commit

Permalink
Merge pull request #57 from mosteirodelandim/carousel_fix-#56
Browse files Browse the repository at this point in the history
  • Loading branch information
LuchoTurtle authored Feb 26, 2023
2 parents 5a0dfe4 + 9070173 commit 9dd034e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
Binary file removed src/assets/luis_americo_22.pdf
Binary file not shown.
1 change: 1 addition & 0 deletions src/components/CarouselArrows.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default function CarouselArrows(props) {
const prevBtnStyle = Object.assign({}, styles.btn, styles.left)
const nextBtnStyle = Object.assign({}, styles.btn, styles.right)
const { index, total, loop, prevHandler, nextHandler } = props

return (
<div style={styles.wrapper}>
{ (loop || index !== 0) && (
Expand Down
3 changes: 2 additions & 1 deletion src/pages/about_us.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import wineAnim from '../assets/images/lottie/wines';
import eventsAnim from '../assets/images/lottie/events';
import LandingLayout from '../components/LandingLayout';
import IndicatorDots from '../components/CarouselDots';
import CarouselArrows from '../components/CarouselArrows';
import BackgroundImage from 'gatsby-background-image';
import Img from 'gatsby-image';
import Lightbox from 'react-image-lightbox';
Expand Down Expand Up @@ -158,7 +159,7 @@ function AboutUsPage({data}) {

<section className="wrapper-carousel style5">
<div className="inner-carousel">
<Carousel loop widgets={[IndicatorDots]}>
<Carousel loop widgets={[IndicatorDots, CarouselArrows]}>
<BackgroundImage Tag="div" className="carousel-image" fluid={wine1}/>
<BackgroundImage Tag="div" className="carousel-image" fluid={wine2}/>
<BackgroundImage Tag="div" className="carousel-image" fluid={wine3}/>
Expand Down
5 changes: 3 additions & 2 deletions src/pages/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import BackgroundImage from 'gatsby-background-image';
import Img from 'gatsby-image';
import Lightbox from 'react-image-lightbox';

import americo_menu from '../assets/luis_americo_22.pdf'
import config from '../../config';

function EventsPage({data}) {
Expand Down Expand Up @@ -160,7 +159,9 @@ function EventsPage({data}) {
<a href="https://saiotes.pt/" rel="noopener noreferrer" target="_blank">Saiotes</a>{t('events:secondParagraph.decor.description2')}
</p>
<p>
<a href={americo_menu} download>Luís Américo</a>{t('events:secondParagraph.decor.description3')}
<a href="https://eco.sapo.pt/2022/04/19/chefe-cozinheiro-do-ano-esta-de-volta-ja-distinguiu-chefs-como-henrique-sa-pessoa-e-luis-americo/"
target="_blank" rel="noopener noreferrer"
>Luís Américo</a>{t('events:secondParagraph.decor.description3')}
</p>
</div>
</section>
Expand Down
4 changes: 3 additions & 1 deletion src/pages/gardens.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { Col, Grid, Row } from 'react-flexbox-grid';
import Carousel from 're-carousel';

import IndicatorDots from '../components/CarouselDots';
import CarouselArrows from '../components/CarouselArrows';

import LandingLayout from '../components/LandingLayout';
import cameraAnim from '../assets/images/lottie/camera';
import config from '../../config';
Expand Down Expand Up @@ -50,7 +52,7 @@ function GardensPage({data}) {

<section className="wrapper-carousel style5">
<div className="inner-carousel">
<Carousel loop widgets={[IndicatorDots]}>
<Carousel loop widgets={[IndicatorDots, CarouselArrows]}>
<BackgroundImage Tag="div" className="carousel-image" fluid={pic1}/>
<BackgroundImage Tag="div" className="carousel-image" fluid={pic2}/>
<BackgroundImage Tag="div" className="carousel-image" fluid={pic3}/>
Expand Down
3 changes: 2 additions & 1 deletion src/pages/wine_vineyards.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { graphql, Link } from 'gatsby';
import BackgroundImage from 'gatsby-background-image';
import Carousel from 're-carousel';
import IndicatorDots from '../components/CarouselDots';
import CarouselArrows from '../components/CarouselArrows';
import Lottie from 'react-lottie';

import airbnbAnim from '../assets/images/lottie/airbnb';
Expand Down Expand Up @@ -147,7 +148,7 @@ function WineStayPage({data}) {

<section className="wrapper-carousel style5">
<div className="inner-carousel">
<Carousel loop widgets={[IndicatorDots]}>
<Carousel loop widgets={[IndicatorDots, CarouselArrows]}>
<BackgroundImage Tag="div" className="carousel-image" fluid={picture1}/>
<BackgroundImage Tag="div" className="carousel-image" fluid={picture2}/>
<BackgroundImage Tag="div" className="carousel-image" fluid={picture3}/>
Expand Down

0 comments on commit 9dd034e

Please sign in to comment.