-
+
this.closeDropdown()}>
+ {/*
+
+
+
+
+
+
+ */}
+
+
@@ -331,14 +326,14 @@ class Header extends React.Component {
{window.location.pathname === constants.PATH_ROOT &&
!!this.props.web3 && (
-
this.toggleDropdownState()}
- to={constants.PATH_LEADERBOARD}>
-
-
+
this.toggleDropdownState()}
+ to={constants.PATH_LEADERBOARD}
+ >
+
+
-
)}
{
@@ -360,26 +355,29 @@ class Header extends React.Component {
{strings.Networks}
- {Object.values(constants.NETWORKS_INGAME).map((network, index) => {
- if (network && network.name !== "local") {
- if (Number(network.id) === this.state.chainId)
- return false; // filter out current network
- return (
-
{
- e.preventDefault();
- this.changeNetwork(network);
- }}
- className="dropdown-pill"
- >
-
- {network.name}
-
-
- );
+ {Object.values(constants.NETWORKS_INGAME).map(
+ (network, index) => {
+ if (network && network.name !== "local") {
+ if (Number(network.id) === this.state.chainId)
+ return false; // filter out current network
+ return (
+
{
+ e.preventDefault();
+ this.changeNetwork(network);
+ }}
+ className="dropdown-pill"
+ >
+
+ {network.name}
+
+
+ );
+ }
+ return null;
}
- return null;
- })}
+ )}
@@ -390,7 +388,8 @@ class Header extends React.Component {
{Object.keys(LANGUAGES_MAP).map((languageString, index) => (
-
{
this.changeLanguage(e, languageString);
}}
@@ -470,4 +469,6 @@ function mapDispatchToProps(dispatch) {
);
}
-export default withRouter(connect(mapStateToProps, mapDispatchToProps)(onClickOutside(Header)));
+export default withRouter(
+ connect(mapStateToProps, mapDispatchToProps)(onClickOutside(Header))
+);
diff --git a/client/src/containers/Level.js b/client/src/containers/Level.js
index 108cb9ebb..9a95914e5 100644
--- a/client/src/containers/Level.js
+++ b/client/src/containers/Level.js
@@ -150,9 +150,8 @@ class Level extends React.Component {
const nextLevelId = findNextLevelId(this.props.level, this.props.levels);
return (
-
-
-
+
+
{(isDescriptionMissingTranslation ||
isCompleteDescriptionMissingTranslation) && (
diff --git a/client/src/styles/app.css b/client/src/styles/app.css
index dcd777063..16b076005 100644
--- a/client/src/styles/app.css
+++ b/client/src/styles/app.css
@@ -114,13 +114,6 @@ hr {
margin-top: 10px;
}
-.top {
- border: none;
- border-top: 1px solid var(--secondary-color);
- height: 1px;
- align-items: center;
-}
-
h2 {
font-size: 14px;
padding: 1% 10% 0% 10%;
@@ -149,6 +142,38 @@ button :hover {
background-color: var(--primary-color);
}
+.header-container {
+ display: flex;
+ flex-direction: column;
+}
+
+.top {
+ border: none;
+ border-top: 1px solid var(--secondary-color);
+ height: 1px;
+ align-items: center;
+}
+
+
+.top-banner {
+ display: flex;
+ gap: 10%;
+ align-items: center;
+ justify-content: space-between;
+ width: 100%;
+ height: 80px;
+ border-radius: 6px;
+ border: 2px solid var(--secondary-color);
+ margin-bottom: 4%;
+ margin-top: 2%;
+ padding: 2%
+}
+
+.top-banner-text {
+ display: block;
+ overflow-wrap: break-word;
+}
+
header {
display: flex;
justify-content: space-between;
@@ -157,7 +182,7 @@ header {
}
.header-ul {
- padding: 4px 0px;
+ padding: 0px 0px;
margin-bottom: 0;
}
@@ -171,13 +196,12 @@ nav li {
.nav-links {
display: inline-block;
- padding: 4px;
+ padding: 0px;
}
.nav-links a {
color: var(--secondary-color);
text-decoration: none;
- padding-right: 5px;
font-family: helvetica, sans-serif;
}
@@ -312,6 +336,13 @@ nav li {
margin-top: 1%;
}
+.main-wrapper {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ width: 100%;
+}
+
.game {
display: flex;
flex-wrap: wrap;
@@ -522,7 +553,7 @@ footer {
/* --------- styles for multi dropdowns --------------*/
.multi-dropdown{
- padding: 4px 9px;
+ padding: 0% 0px;
}
.multi-dropdown__icon{