From 0abe0ffa98a7cb1eebabd303af8d8fbd8b9de177 Mon Sep 17 00:00:00 2001 From: Mayotopia <134679840+Mayotopia04@users.noreply.github.com> Date: Sun, 28 Jan 2024 19:16:11 +0800 Subject: [PATCH] all is fixed supposedly --- package-lock.json | 14 +- package.json | 6 +- src/images/icons.svg | 34 +--- src/images/the-watch-logo.svg | 13 -- src/index.html | 6 +- src/js/sale.js | 26 +++- src/partials/catalog.html | 94 +++++------ src/partials/footer.html | 37 ++--- src/partials/gallery.html | 5 +- src/partials/header.html | 8 +- src/partials/sale.html | 52 +++++-- src/sass/_catalog.scss | 66 ++------ src/sass/_common.scss | 1 + src/sass/_footer.scss | 49 +++--- src/sass/_header.scss | 22 +-- src/sass/_sale.scss | 283 +++++++++++++++++++++++----------- 16 files changed, 365 insertions(+), 351 deletions(-) delete mode 100644 src/images/the-watch-logo.svg diff --git a/package-lock.json b/package-lock.json index 33aad9b..b38247e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "ISC", "dependencies": { "modern-normalize": "^1.1.0", - "swiper": "^10.2.0" + "swiper": "^10.3.1" }, "devDependencies": { "@parcel/transformer-sass": "^2.6.0", @@ -2983,9 +2983,9 @@ } }, "node_modules/swiper": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/swiper/-/swiper-10.2.0.tgz", - "integrity": "sha512-nktQsOtBInJjr3f5DicxC8eHYGcLXDVIGPSon0QoXRaO6NjKnATCbQ8SZsD3dN1Ph1RH4EhVPwSYCcuDRFWHGQ==", + "version": "10.3.1", + "resolved": "https://registry.npmjs.org/swiper/-/swiper-10.3.1.tgz", + "integrity": "sha512-24Wk3YUdZHxjc9faID97GTu6xnLNia+adMt6qMTZG/HgdSUt4fS0REsGUXJOgpTED0Amh/j+gRGQxsLayJUlBQ==", "funding": [ { "type": "patreon", @@ -5046,9 +5046,9 @@ } }, "swiper": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/swiper/-/swiper-10.2.0.tgz", - "integrity": "sha512-nktQsOtBInJjr3f5DicxC8eHYGcLXDVIGPSon0QoXRaO6NjKnATCbQ8SZsD3dN1Ph1RH4EhVPwSYCcuDRFWHGQ==" + "version": "10.3.1", + "resolved": "https://registry.npmjs.org/swiper/-/swiper-10.3.1.tgz", + "integrity": "sha512-24Wk3YUdZHxjc9faID97GTu6xnLNia+adMt6qMTZG/HgdSUt4fS0REsGUXJOgpTED0Amh/j+gRGQxsLayJUlBQ==" }, "term-size": { "version": "2.2.1", diff --git a/package.json b/package.json index 54dae0c..8481878 100755 --- a/package.json +++ b/package.json @@ -2,10 +2,10 @@ "name": "parcel-project-template", "version": "2.0.0", "description": "", - "homepage": "https://johncleece.github.io/team-project", + "homepage": "https://mayotopia04.github.io/TheWatchSpot", "scripts": { "start": "parcel src/*.html", - "build": "parcel build src/*.html --public-url /team-project/" + "build": "parcel build src/*.html --public-url /TheWatchSpot/" }, "repository": { "type": "git", @@ -19,7 +19,7 @@ }, "dependencies": { "modern-normalize": "^1.1.0", - "swiper": "^10.2.0" + "swiper": "^10.3.1" }, "devDependencies": { "@parcel/transformer-sass": "^2.6.0", diff --git a/src/images/icons.svg b/src/images/icons.svg index 9d7643e..3a0548e 100644 --- a/src/images/icons.svg +++ b/src/images/icons.svg @@ -70,26 +70,6 @@ - - - - @@ -112,24 +92,24 @@ - + - + - + - - + + - + - + diff --git a/src/images/the-watch-logo.svg b/src/images/the-watch-logo.svg deleted file mode 100644 index d5b5724..0000000 --- a/src/images/the-watch-logo.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - diff --git a/src/index.html b/src/index.html index 3c40e73..bda5f90 100755 --- a/src/index.html +++ b/src/index.html @@ -9,14 +9,10 @@ href="https://fonts.googleapis.com/css2?family=Epilogue:ital,wght@0,400;1,600&display=swap" rel="stylesheet" /> - - - - The Watch Spot @@ -33,7 +29,7 @@ - + diff --git a/src/js/sale.js b/src/js/sale.js index c246ac4..954868f 100644 --- a/src/js/sale.js +++ b/src/js/sale.js @@ -1,11 +1,25 @@ function displayImage(imageSrc) { - var imageContainer = document.getElementById('imagecontainer'); + const imageContainer = document.getElementById('imagecontainer'); + const imageElements = document.querySelectorAll('.sale-watch-preview'); + // const imageSelected = document.querySelector(`.imageselected-${imageSrc}`); + + // const imageActive = document.querySelector('.activeimage'); + + + // Create a new image element - var img = document.createElement('img'); - img.src = imageSrc; - img.alt = 'Selected Image'; + imageElements.forEach(element => { + element.classList.remove('activeimage'); + }); + imageElements[imageSrc].classList.add('activeimage'); + + + // imageActive.classList.remove('activeimage'); + // imageSelected.classList.toggle('activeimage'); + + // Clear the contents of the image container - imageContainer.innerHTML = ''; + // Append the selected image to the container - imageContainer.appendChild(img); + } diff --git a/src/partials/catalog.html b/src/partials/catalog.html index 9d8d797..da568f7 100644 --- a/src/partials/catalog.html +++ b/src/partials/catalog.html @@ -38,8 +38,7 @@
Tube Watch S42 Date Steel With Black Case
€395 - +

@@ -56,7 +55,7 @@
Tube Watch S42 Date Steel With Black Case

DESCRIPTION

- Richly detailed with an understated design - the Police Men's + Richly detailed with an understated design - the Police Men’s Greenlane watch.

DETAILS & FEATURE

@@ -75,13 +74,12 @@
Tube Watch S42 Date Steel With Black Case
Avondale Watch Police For Men
-

- €800 +

€800 - +

+
  • @@ -97,7 +95,7 @@
    Avondale Watch Police For Men

    DESCRIPTION

    - Richly detailed with an understated design - the Police Men's + Richly detailed with an understated design - the Police Men’s Greenlane watch.

    DETAILS & FEATURE

    @@ -116,14 +114,12 @@
    Avondale Watch Police For Men
    - Diver 300M Co-Axial Master Chronometer Chronograph + Diver 300M Co‑Axial Master Chronometer Chronograph
    -

    - €600 +

    €600 - +

  • @@ -140,7 +136,7 @@

    DESCRIPTION

    - Richly detailed with an understated design - the Police Men's + Richly detailed with an understated design - the Police Men’s Greenlane watch.

    DETAILS & FEATURE

    @@ -159,12 +155,10 @@
    Diver 300M Co-Axial Master Chronometer
    -

    - €1400 +

    €1400 - +

    @@ -181,7 +175,7 @@
    Diver 300M Co-Axial Master Chronometer

    DESCRIPTION

    - Richly detailed with an understated design - the Police Men's + Richly detailed with an understated design - the Police Men’s Greenlane watch.

    DETAILS & FEATURE

    @@ -200,12 +194,10 @@
    Diver 300M Co-Axial Master Chronometer
    Taman Watch By Police For Men
    -

    - €500 +

    €500 - +

    @@ -222,7 +214,7 @@
    Taman Watch By Police For Men

    DESCRIPTION

    - Richly detailed with an understated design - the Police Men's + Richly detailed with an understated design - the Police Men’s Greenlane watch.

    DETAILS & FEATURE

    @@ -241,12 +233,10 @@
    Taman Watch By Police For Men
    Malawi Watch Police For Men
    -

    - €555 +

    €555 - +

    @@ -263,7 +253,7 @@
    Malawi Watch Police For Men

    DESCRIPTION

    - Richly detailed with an understated design - the Police Men's + Richly detailed with an understated design - the Police Men’s Greenlane watch.

    DETAILS & FEATURE

    @@ -282,12 +272,10 @@
    Malawi Watch Police For Men
    Diver 300M Co-Axial Master Chronometer
    -

    - €1200 +

    €1200 - +

    @@ -304,7 +292,7 @@
    Diver 300M Co-Axial Master Chronometer

    DESCRIPTION

    - Richly detailed with an understated design - the Police Men's + Richly detailed with an understated design - the Police Men’s Greenlane watch.

    DETAILS & FEATURE

    @@ -323,12 +311,10 @@
    Diver 300M Co-Axial Master Chronometer
    Greenlane Watch By Police For Men
    -

    - €1000 +

    €1000 - +

    @@ -345,7 +331,7 @@
    Greenlane Watch By Police For Men

    DESCRIPTION

    - Richly detailed with an understated design - the Police Men's + Richly detailed with an understated design - the Police Men’s Greenlane watch.

    DETAILS & FEATURE

    @@ -364,12 +350,10 @@
    Greenlane Watch By Police For Men
    Squardrc 5402 Chrono
    -

    - €359 +

    €359 - +

    @@ -386,7 +370,7 @@
    Squardrc 5402 Chrono

    DESCRIPTION

    - Richly detailed with an understated design - the Police Men's + Richly detailed with an understated design - the Police Men’s Greenlane watch.

    DETAILS & FEATURE

    @@ -407,12 +391,10 @@
    Squardrc 5402 Chrono
    Diver 300M Co-Axial Master Chronometer Chronograph
    -

    - €400 +

    €400 - +

    @@ -429,7 +411,7 @@

    DESCRIPTION

    - Richly detailed with an understated design - the Police Men's + Richly detailed with an understated design - the Police Men’s Greenlane watch.

    DETAILS & FEATURE

    @@ -448,12 +430,10 @@
    Citizen
    -

    - €519 +

    €519 - +

    @@ -470,7 +450,7 @@
    Citizen

    DESCRIPTION

    - Richly detailed with an understated design - the Police Men's + Richly detailed with an understated design - the Police Men’s Greenlane watch.

    DETAILS & FEATURE

    @@ -489,12 +469,10 @@
    Citizen
    Armani Exchange
    -

    - €400 +

    €400 - +

    diff --git a/src/partials/footer.html b/src/partials/footer.html index a85a102..f1ea39c 100644 --- a/src/partials/footer.html +++ b/src/partials/footer.html @@ -41,28 +41,25 @@ + @@ -77,8 +74,4 @@ Terms of Service - -
    -

    This site is developed by GutenTag

    -
    diff --git a/src/partials/gallery.html b/src/partials/gallery.html index 5892b04..cf4b590 100644 --- a/src/partials/gallery.html +++ b/src/partials/gallery.html @@ -1,10 +1,7 @@