update
This commit is contained in:
parent
9479b6e0f0
commit
0228ff2982
5 changed files with 36 additions and 24 deletions
|
|
@ -21,18 +21,18 @@ const Contacts = () => {
|
||||||
<a href="mailto:info@midcreative.eu">info@midcreative.eu</a>
|
<a href="mailto:info@midcreative.eu">info@midcreative.eu</a>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://telegram.me/vlsqzwsme" target="_blank">
|
<a href="https://telegram.me/vlsqzwsme" target="_blank" rel="noreferrer">
|
||||||
<img src={Telegram} alt="telegram" />
|
<img src={Telegram} alt="telegram" />
|
||||||
</a>
|
</a>
|
||||||
<a href="https://telegram.me/vlsqzwsme" target="_blank">
|
<a href="https://telegram.me/vlsqzwsme" target="_blank" rel="noreferrer">
|
||||||
Telegram
|
Telegram
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://wa.me/37125704038" target="_blank">
|
<a href="https://wa.me/37125704038" target="_blank" rel="noreferrer">
|
||||||
<img src={Whatsapp} alt="whatsapp" />
|
<img src={Whatsapp} alt="whatsapp" />
|
||||||
</a>
|
</a>
|
||||||
<a href="https://wa.me/37125704038" target="_blank">
|
<a href="https://wa.me/37125704038" target="_blank" rel="noreferrer">
|
||||||
WhatsApp
|
WhatsApp
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
|
|
||||||
import Logo from "../../assets/images/main/header/logo.svg";
|
import Logo from "../../assets/images/main/header/logo.svg";
|
||||||
import OpenMenu from "../../assets/images/main/header/menu.svg";
|
|
||||||
import CloseMenu from "../../assets/images/main/header/menu-close.svg";
|
|
||||||
import Logo2 from "../../assets/images/main/footer/logo.svg";
|
import Logo2 from "../../assets/images/main/footer/logo.svg";
|
||||||
import Phone from "../../assets/images/main/footer/phone.png";
|
import Phone from "../../assets/images/main/footer/phone.png";
|
||||||
import Email from "../../assets/images/main/footer/email.png";
|
import Email from "../../assets/images/main/footer/email.png";
|
||||||
|
|
@ -19,8 +17,8 @@ const MidHeader = () => {
|
||||||
|
|
||||||
if (Menu.classList.contains("open")) {
|
if (Menu.classList.contains("open")) {
|
||||||
const outsideClickListener = (event) => {
|
const outsideClickListener = (event) => {
|
||||||
console.log("added");
|
|
||||||
let MenuVisible = getComputedStyle(Menu).right;
|
let MenuVisible = getComputedStyle(Menu).right;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
!Menu.contains(event.target) &&
|
!Menu.contains(event.target) &&
|
||||||
MenuVisible !== 0 &&
|
MenuVisible !== 0 &&
|
||||||
|
|
@ -35,7 +33,6 @@ const MidHeader = () => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const removeClickListener = () => {
|
const removeClickListener = () => {
|
||||||
console.log("removed");
|
|
||||||
document.removeEventListener("click", outsideClickListener);
|
document.removeEventListener("click", outsideClickListener);
|
||||||
};
|
};
|
||||||
document.addEventListener("click", outsideClickListener);
|
document.addEventListener("click", outsideClickListener);
|
||||||
|
|
@ -62,7 +59,14 @@ const MidHeader = () => {
|
||||||
<a href="#contact-us">Contact Us</a>
|
<a href="#contact-us">Contact Us</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<div className="mobile-menu-btn" onClick={toggleMenu}>
|
<div
|
||||||
|
className="mobile-menu-btn"
|
||||||
|
onClick={toggleMenu}
|
||||||
|
onKeyDown={toggleMenu}
|
||||||
|
aria-label="menu button"
|
||||||
|
role="button"
|
||||||
|
tabIndex={0}
|
||||||
|
>
|
||||||
<span id="top-left"></span>
|
<span id="top-left"></span>
|
||||||
<span id="top-right"></span>
|
<span id="top-right"></span>
|
||||||
<span id="center-left"></span>
|
<span id="center-left"></span>
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,10 @@ header {
|
||||||
display: none;
|
display: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
outline: 1px solid #fff;
|
||||||
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
height: 5px;
|
height: 5px;
|
||||||
|
|
@ -62,17 +66,23 @@ header {
|
||||||
width: 5px;
|
width: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#top-left, #top-right {
|
#top-left,
|
||||||
|
#top-right {
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
#center-left, #center-right {
|
#center-left,
|
||||||
|
#center-right {
|
||||||
top: 9px;
|
top: 9px;
|
||||||
}
|
}
|
||||||
#bottom-left, #bottom-right {
|
#bottom-left,
|
||||||
|
#bottom-right {
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#top-right, #center-right, #bottom-right, #bottom-left {
|
#top-right,
|
||||||
|
#center-right,
|
||||||
|
#bottom-right,
|
||||||
|
#bottom-left {
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -81,11 +91,13 @@ header {
|
||||||
}
|
}
|
||||||
|
|
||||||
&.open {
|
&.open {
|
||||||
#top-right, #center-right {
|
#top-right,
|
||||||
|
#center-right {
|
||||||
width: 5px;
|
width: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#center-right, #center-left {
|
#center-right,
|
||||||
|
#center-left {
|
||||||
right: 9px;
|
right: 9px;
|
||||||
left: unset;
|
left: unset;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,13 +2,9 @@ import React from "react";
|
||||||
|
|
||||||
import "./intro.styles.scss";
|
import "./intro.styles.scss";
|
||||||
|
|
||||||
import Astronaut from "../../assets/images/main/intro/astronaut.png";
|
|
||||||
import Spaceship from "../../assets/images/main/intro/spaceship.svg";
|
import Spaceship from "../../assets/images/main/intro/spaceship.svg";
|
||||||
|
|
||||||
const Intro = () => {
|
const Intro = () => {
|
||||||
|
|
||||||
const mobileWidth = 767;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section className="container intro">
|
<section className="container intro">
|
||||||
<div className="image"></div>
|
<div className="image"></div>
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
import React, { Children } from "react";
|
import React from "react";
|
||||||
|
|
||||||
import "./section.style.scss"
|
import "./section.style.scss";
|
||||||
|
|
||||||
const MidSection = (props) => {
|
const MidSection = (props) => {
|
||||||
return (
|
return (
|
||||||
<section className="container content" id={props.id}>
|
<section className="container content" id={props.id}>
|
||||||
{props.title ? (<h2>{props.title}</h2>) : null}
|
{props.title ? <h2>{props.title}</h2> : null}
|
||||||
{props.children}
|
{props.children}
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue