diff --git a/donutshop_ecommerce/public/donut10.png b/donutshop_ecommerce/public/donut10.png new file mode 100644 index 0000000..34b0eef Binary files /dev/null and b/donutshop_ecommerce/public/donut10.png differ diff --git a/donutshop_ecommerce/public/donut6.png b/donutshop_ecommerce/public/donut6.png new file mode 100644 index 0000000..f52a71e Binary files /dev/null and b/donutshop_ecommerce/public/donut6.png differ diff --git a/donutshop_ecommerce/public/donut7.png b/donutshop_ecommerce/public/donut7.png new file mode 100644 index 0000000..1aa373a Binary files /dev/null and b/donutshop_ecommerce/public/donut7.png differ diff --git a/donutshop_ecommerce/public/donut8.png b/donutshop_ecommerce/public/donut8.png new file mode 100644 index 0000000..24a6a08 Binary files /dev/null and b/donutshop_ecommerce/public/donut8.png differ diff --git a/donutshop_ecommerce/public/donut9.png b/donutshop_ecommerce/public/donut9.png new file mode 100644 index 0000000..5b41e6d Binary files /dev/null and b/donutshop_ecommerce/public/donut9.png differ diff --git a/donutshop_ecommerce/public/drink1.png b/donutshop_ecommerce/public/drink1.png deleted file mode 100644 index eefc57c..0000000 Binary files a/donutshop_ecommerce/public/drink1.png and /dev/null differ diff --git a/donutshop_ecommerce/src/app/page.js b/donutshop_ecommerce/src/app/page.js index 739186c..f857980 100644 --- a/donutshop_ecommerce/src/app/page.js +++ b/donutshop_ecommerce/src/app/page.js @@ -3,7 +3,7 @@ import Header from '@/components/layout/Header' import Hero from '@/components/layout/Hero' import HomeCreateBox from '@/components/layout/HomeCreateBox' import HomeMenu from '@/components/layout/HomeMenu' -import HomeDrink from '@/components/layout/HomeDrink' +import HomeMonthly from '@/components/layout/HomeMonthly' import React from 'react' import { ParallaxProvider } from "react-scroll-parallax"; @@ -14,7 +14,7 @@ const page = () => { - + ) diff --git a/donutshop_ecommerce/src/components/layout/HomeCreateBox.js b/donutshop_ecommerce/src/components/layout/HomeCreateBox.js index 97addd1..bc6a768 100644 --- a/donutshop_ecommerce/src/components/layout/HomeCreateBox.js +++ b/donutshop_ecommerce/src/components/layout/HomeCreateBox.js @@ -4,7 +4,7 @@ import { Parallax } from "react-scroll-parallax"; const HomeCreateBox = () => { return ( - +
diff --git a/donutshop_ecommerce/src/components/layout/HomeDrink.js b/donutshop_ecommerce/src/components/layout/HomeDrink.js deleted file mode 100644 index 6b4fb29..0000000 --- a/donutshop_ecommerce/src/components/layout/HomeDrink.js +++ /dev/null @@ -1,84 +0,0 @@ -import React from 'react' -import { Parallax } from "react-scroll-parallax"; -import Slider from "react-slick"; -import "slick-carousel/slick/slick.css"; -import "slick-carousel/slick/slick-theme.css"; -import Image from 'next/image'; -import DrinkItem from '../menu/DrinkItem'; - -const HomeMonthly = () => { - var drinkSlide = { - dots: false, - infinite: false, - speed: 500, - slidesToShow: 5, - initialSlide: 0, - responsive: [ - { - breakpoint: 1524, - settings: { - slidesToShow: 4, - slidesToScroll: 4, - infinite: true, - dots: false - } - }, - { - breakpoint: 1024, - settings: { - slidesToShow: 3, - slidesToScroll: 3, - infinite: true, - dots: false - } - }, - { - breakpoint: 810, - settings: { - slidesToShow: 2, - slidesToScroll: 2, - initialSlide: 2 - } - }, - { - breakpoint: 480, - settings: { - slidesToShow: 1, - slidesToScroll: 1 - } - } - ] - }; - - return ( - -
-
-

Coffee and Drinks

-

Enjoy a selection of freshly made coffee and drinks available in a range of delightful flavors.

-
-
- -
- -
-
- -
-
- -
-
- -
-
- -
-
-
-
-
- ) -} - -export default HomeMonthly \ No newline at end of file diff --git a/donutshop_ecommerce/src/components/layout/HomeMenu.js b/donutshop_ecommerce/src/components/layout/HomeMenu.js index e49e085..b5fc1e7 100644 --- a/donutshop_ecommerce/src/components/layout/HomeMenu.js +++ b/donutshop_ecommerce/src/components/layout/HomeMenu.js @@ -51,8 +51,8 @@ const HomeDrink = () => { }; return ( - -
+ +

Treat yourself

diff --git a/donutshop_ecommerce/src/components/layout/HomeMonthly.js b/donutshop_ecommerce/src/components/layout/HomeMonthly.js new file mode 100644 index 0000000..7cd5ff8 --- /dev/null +++ b/donutshop_ecommerce/src/components/layout/HomeMonthly.js @@ -0,0 +1,75 @@ +import React from 'react' +import { Parallax } from "react-scroll-parallax"; +import Slider from "react-slick"; +import "slick-carousel/slick/slick.css"; +import "slick-carousel/slick/slick-theme.css"; +import Image from 'next/image'; + + +const HomeMonthly = () => { + const settings = { + dots: false, + infinite: true, + slidesToShow: 3, + slidesToScroll: 1, + autoplay: true, + speed: 2000, + autoplaySpeed: 2000, + cssEase: "linear", + responsive: [ + { + breakpoint: 815, + settings: { + slidesToShow: 2, + slidesToScroll: 2, + initialSlide: 2 + } + }, + { + breakpoint: 480, + settings: { + slidesToShow: 1, + slidesToScroll: 1 + } + } + ] + }; + + return ( + +
+
+

Monthly Special

+

Each month we bring different donuts to a classic flavor, so no two months are the same. Save up to 40% on special donuts only for our members!

+

** Save up to 30% on special donuts only for our members!

+
+
+ +
+ monthly +

Oreo cookie crumble

+
+
+ monthly +

Reese's Peanut Butter Cup

+
+
+ monthly +

M&M Chocolate Boston cream

+
+
+ monthly +

White Chocolate & Nutella Bueno

+
+
+ monthly +

White Chocolate Matcha Pistachio

+
+
+
+
+
+ ) +} + +export default HomeMonthly \ No newline at end of file diff --git a/donutshop_ecommerce/src/components/menu/DrinkItem.js b/donutshop_ecommerce/src/components/menu/DrinkItem.js deleted file mode 100644 index 67cadeb..0000000 --- a/donutshop_ecommerce/src/components/menu/DrinkItem.js +++ /dev/null @@ -1,15 +0,0 @@ -import Image from 'next/image' -import React from 'react' - -const DrinkItem = () => { - return ( -
- menu-donut -

coffee milkshake

-

$7.59

- -
- ) -} - -export default DrinkItem \ No newline at end of file