amir hosein gorji 3 years ago
commit f9594a8109
  1. 41
      public/index.html
  2. 5
      src/views/Home/Navbar/Laptop/index.js
  3. 2
      src/views/Home/Navbar/Laptop/index.scss

@ -1,13 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="false" />
<meta
name="viewport"
content="width=device-width, initial-scale=1"
user-scalable="false"
/>
<meta name="theme-color" content="#000000" />
<meta name="description" content="دانوین" />
<link href="https://api.mapbox.com/mapbox-gl-js/v1.10.1/mapbox-gl.css" rel="stylesheet" />
<link
href="https://api.mapbox.com/mapbox-gl-js/v1.10.1/mapbox-gl.css"
rel="stylesheet"
/>
<meta name="mobile-web-app-capable" content="yes" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<meta name="apple-mobile-web-app-capable" content="yes" />
@ -20,13 +26,12 @@
<script>
const lang = localStorage.getItem("language");
window.ar = ar;
window.en = en
window.en = en;
function t(val) {
const lang_ = window[lang]
const lang_ = window[lang];
if (!lang_) return val;
if (!lang_[val]) console.error(val)
return lang_[val] || ("*" + val);
if (!lang_[val]) console.error(val);
return lang_[val] || "*" + val;
}
(function (w, d, s, l, i) {
@ -44,12 +49,18 @@
})(window, document, "script", "dataLayer", "GTM-WVV8H9L");
</script>
<!-- End Google Tag Manager -->
</head>
</head>
<body>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WVV8H9L" height="0" width="0"
style="display: none; visibility: hidden"></iframe></noscript>
<noscript
><iframe
src="https://www.googletagmanager.com/ns.html?id=GTM-WVV8H9L"
height="0"
width="0"
style="display: none; visibility: hidden"
></iframe
></noscript>
<!-- End Google Tag Manager (noscript) -->
<div id="root"></div>
<script>
@ -69,8 +80,6 @@
});
});
}
</script>
</body>
</body>
</html>

@ -129,6 +129,11 @@ class LaptopNavbar extends Component {
{window.t("خروج")}{" "}
</MenuItem>
</Menu>
<select className="language-select">
{["fa", "en", "ar"].map((lang, index) => (
<option key={index}>{lang}</option>
))}
</select>
<div
className="navbar-drawer__header d-flex align-items-center"
onClick={(event) =>

@ -9,7 +9,7 @@
background-color: #6cbe44;
color: white;
font-weight: 500;
margin-left: 10px;
margin: 0px 10px;
border-radius: 5px;
padding: 0px 4px;
}

Loading…
Cancel
Save