amir hosein gorji 3 years ago
commit f9594a8109
  1. 33
      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> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> <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="theme-color" content="#000000" />
<meta name="description" content="دانوین" /> <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" /> <meta name="mobile-web-app-capable" content="yes" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-capable" content="yes" />
@ -20,13 +26,12 @@
<script> <script>
const lang = localStorage.getItem("language"); const lang = localStorage.getItem("language");
window.ar = ar; window.ar = ar;
window.en = en window.en = en;
function t(val) { function t(val) {
const lang_ = window[lang];
const lang_ = window[lang]
if (!lang_) return val; if (!lang_) return val;
if (!lang_[val]) console.error(val) if (!lang_[val]) console.error(val);
return lang_[val] || ("*" + val); return lang_[val] || "*" + val;
} }
(function (w, d, s, l, i) { (function (w, d, s, l, i) {
@ -48,8 +53,14 @@
<body> <body>
<!-- Google Tag Manager (noscript) --> <!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WVV8H9L" height="0" width="0" <noscript
style="display: none; visibility: hidden"></iframe></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) --> <!-- End Google Tag Manager (noscript) -->
<div id="root"></div> <div id="root"></div>
<script> <script>
@ -69,8 +80,6 @@
}); });
}); });
} }
</script> </script>
</body> </body>
</html> </html>

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

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

Loading…
Cancel
Save