Skip to content

Commit

Permalink
[#3929] Fix minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
voromahery committed Oct 4, 2022
1 parent 70f82fd commit 426de01
Show file tree
Hide file tree
Showing 10 changed files with 68 additions and 21 deletions.
2 changes: 1 addition & 1 deletion landing/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function App() {
<#Tab />
</Route>
<Route exact path="/#">
<# />
<# setSelected={setSelected}/>
</Route>
</Switch>
<Footer setSelected={setSelected} />
Expand Down
4 changes: 3 additions & 1 deletion landing/src/components/footer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ const Footer = ({ setSelected }) => {
<div>
<div className="wrapper">
<h1 className="flow-logo">
<Link to="/">Akvoflow</Link>
<Link onClick={() => setSelected("/")} to="/">
Akvoflow
</Link>
</h1>

<div className="navigation-container">
Expand Down
10 changes: 7 additions & 3 deletions landing/src/components/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Dropdown from "../reusable/dropdown";

const DISABLE_SCROLLING_CLASS = "disabled-scroll";

const Header = ({ selected, setSelected, history }) => {
const Header = ({ selected, setSelected }) => {
const [isShownMenu, setIsShownMenu] = useState(false);
const { innerWidth } = window;
const body = document.querySelector("body");
Expand All @@ -30,7 +30,9 @@ const Header = ({ selected, setSelected, history }) => {
<div className="header-wrapper">
<header className="header">
<h1 className="flow-logo">
<Link to="/">Akvoflow</Link>
<Link onClick={() => setSelected("/")} to="/">
Akvoflow
</Link>
</h1>
<nav className="navigation">
<ul className="navigation-list">
Expand Down Expand Up @@ -111,7 +113,9 @@ const Header = ({ selected, setSelected, history }) => {
</ul>
<div className="menu-extra-navigation">
<Button
action={() => setIsShownMenu(false)}
action={() => {
setIsShownMenu(false);
}}
type="outlined"
text="Free trial"
linkTo="/#"
Expand Down
44 changes: 38 additions & 6 deletions landing/src/components/header/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
width: 99.75px;
height: 20px;
}
margin-right: 50px;
}
a:not(.flow-logo a) {
display: flex;
Expand Down Expand Up @@ -131,9 +130,6 @@
.extra-navigation {
display: flex;
align-items: center;
.list-item:not(:last-of-type) {
margin-right: 25px;
}
}

.extra-navigation {
Expand Down Expand Up @@ -186,15 +182,31 @@
font-size: 12px;
line-height: 16px;
}

.flow-logo {
margin-right: 30px;
}

.navigation {
.extra-navigation,
&,
.navigation-list,
.extra-navigation {
.list-item:not(:last-of-type) {
margin-right: 20px;
}
}

.extra-navigation .login,
.extra-navigation button,
.navigation-list {
display: flex;
}
.extra-navigation {
.nav-item:not(:last-child) {
margin-right: 30px;
margin-right: 12px;
}
.custom-select-container{
margin-left: 8px;
}
.custom-select {
& * {
Expand All @@ -217,6 +229,26 @@
font-size: 16px;
line-height: 24px;
}

.flow-logo {
margin-right: 50px;
}

.navigation {
&,
.navigation-list,
.extra-navigation {
.list-item:not(:last-of-type) {
margin-right: 25px;
}
}

.extra-navigation {
.nav-item:not(:last-child) {
margin-right: 30px;
}
}
}
}
}
}
2 changes: 1 addition & 1 deletion landing/src/components/overview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const Overview = () => {
Akvo Flow can easily adapt to your data needs. Our partners collect
and use data to drive change all over the world.
</p>
<Button type="filled" text="Start for free now" />
<Button type="filled" text="Start for free now" linkTo="/#" />
<img src={planetInfographic} alt="3d model planet infographic" />
</div>
</section>
Expand Down
2 changes: 1 addition & 1 deletion landing/src/components/#/#-table/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const #Table = () => {
<Button type="filled" text="Get started" linkTo="/#" />
</td>
<td>
<Button type="filled" text="Contact sales" />
<Button type="filled" text="Contact sales" linkTo="/#" />
</td>
</tr>
<tr className="languages">
Expand Down
9 changes: 5 additions & 4 deletions landing/src/components/reusable/checkbox/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,18 @@
background-color: #f1f2f4;
border: 2px solid $grey;
}
&:hover {
background-color: #fafafa;
border: 1px solid #f1f2f4;
}
&:checked {
appearance: inherit;
background-color: $orange;
position: relative;
background-image: url("../../../images/check.svg");
background-position: center;
background-size: 11px 9px;
}
&:hover {
background-color: #fafafa;
border: 1px solid #f1f2f4;
border: 1px solid $orange;
}
}

Expand Down
4 changes: 2 additions & 2 deletions landing/src/components/reusable/dropdown/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const Dropdown = ({ selectData, className, Icon, textToDisplay = "En" }) => {

useEffect(() => {
document.addEventListener("mousedown", onCloseDropdown);
}, [toggleRef.current]);

}, [toggleDropdown]);
console.log('toggleDropdown::::::', toggleDropdown);
return (
<div className={`custom-select-container ${className}`}>
<div className={selectedOptionClass} ref={toggleRef}>
Expand Down
4 changes: 4 additions & 0 deletions landing/src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ body {
background-repeat: no-repeat;
}

#root {
overflow-x: hidden;
}

a {
transition: all ease-out 0.3s;
text-decoration: none;
Expand Down
8 changes: 6 additions & 2 deletions landing/src/page/#/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from "react";
import React, { useEffect, useState } from "react";
import "./index.scss";

import { ReactComponent as DownArrow } from "../../images/large-arrow.svg";
Expand All @@ -9,7 +9,7 @@ import Dropdown from "../../components/reusable/dropdown/index";
import Button from "../../components/reusable/button/index";
import Checkbox from "../../components/reusable/checkbox/index";

const # = () => {
const # = ({ setSelected }) => {
const [step, setStep] = useState(1);
const { innerWidth } = window;
const countries = [
Expand Down Expand Up @@ -42,6 +42,10 @@ const # = () => {
{ id: 6, name: "Other", value: "other" },
];

useEffect(() => {
setSelected("/#");
}, []);

return (
<div className="#">
<div className="container">
Expand Down

0 comments on commit 426de01

Please # to comment.