diff --git a/public/assets/images/products/project2.png b/public/assets/images/products/project2.png new file mode 100644 index 0000000..06487be Binary files /dev/null and b/public/assets/images/products/project2.png differ diff --git a/src/components/Header/Header.jsx b/src/components/Header/Header.jsx index 426841d..afb9d3f 100644 --- a/src/components/Header/Header.jsx +++ b/src/components/Header/Header.jsx @@ -1,4 +1,4 @@ -import { Link, useNavigate } from "react-router-dom"; +import { Link, useNavigate, useLocation } from "react-router-dom"; import React, { useState, useEffect } from 'react'; import Logo from "@images/logo-white.svg"; import LogoDarkHeader from "@images/logo-dark.svg"; @@ -8,6 +8,8 @@ const Header = () => { const [scrolled, setScrolled] = useState(false); const [isOpen, setOpen] = useState(false); + const location = useLocation(); + const handleScroll = () => { const offset = window.scrollY; if(offset > 10) { @@ -25,15 +27,17 @@ const Header = () => { }, []); const headerClasses = scrolled ? 'header-area scrolled' : 'header-area'; + const isProductsPage = location.pathname === '/products'; + const switchHeader = isProductsPage ? 'header-area switched' : ''; return ( -
+
+ + +
+
+

FDA-compliant software for stroke patients with telemedicine features to facilitate remote care

+ IOS & Android, Web + Healthcare + US +
+ Explore more +
+
+
+
diff --git a/src/pages/Products/_products.scss b/src/pages/Products/_products.scss index e823138..59dd02a 100644 --- a/src/pages/Products/_products.scss +++ b/src/pages/Products/_products.scss @@ -5,11 +5,16 @@ margin-top: 70px; height: 568px; - background-image: url('../../../public/assets/images/products/project1.png'); + background-image: url('/assets/images/products/project1.png'); background-position: right; background-size: cover; background-color: #161413; border-radius: 32px; + transition: opacity 0.1s ease-out; + + &:hover { + opacity: 0.97; + } &:hover .products__link { color: #cecbca; @@ -21,7 +26,7 @@ } .products__content { - width: 550px; + width: 600px; padding: 40px; } @@ -55,4 +60,43 @@ &:hover { color: #cecbca; } +} + +// MEDIA +@media only screen and (max-width: 991px) { + .products__title { + font-size: 60px; + } + + .products__content { + width: 100%; + border-radius: 32px; + background: rgba(22,20,19,.698); + } +} + +@media only screen and (max-width: 500px) { + .products__box { + margin-top: 40px; + } + + .products__title { + font-size: 40px; + } + + .products__content { + padding: 15px; + } + + .products__title--content { + font-size: 25px; + } +} + +@media only screen and (max-width: 350px) { + .products__content span { + width: fit-content; + display: block; + margin-bottom: 10px; + } } \ No newline at end of file