Wrap theme / language dropdowns in a <nav> element.

This commit is contained in:
0x1eef 2023-10-29 20:10:04 -03:00
parent 43f7fc85c9
commit d381ec1522
5 changed files with 8 additions and 8 deletions

View file

@ -43,7 +43,7 @@ body .root .content.theme {
} }
} }
div { nav {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
min-height: 35px; min-height: 35px;
@ -96,7 +96,7 @@ body .root .content.en {
body .root .content.ar { body .root .content.ar {
header { header {
div { nav, div {
direction: ltr; direction: ltr;
.localized-name { .localized-name {
display: flex; display: flex;

View file

@ -3,7 +3,7 @@
header { header {
h1 , h1 a { color: $blue1; } h1 , h1 a { color: $blue1; }
div .react-select { nav .react-select {
color: $gold1; color: $gold1;
} }
} }

View file

@ -4,7 +4,7 @@
header { header {
h1 , h1 a { color: $green1; } h1 , h1 a { color: $green1; }
div .react-select { nav .react-select {
background-color: transparent; background-color: transparent;
color: $green1; color: $green1;
} }

View file

@ -35,10 +35,10 @@ function SurahIndex({ locale, surahs, t }: Props) {
<h1> <h1>
<a href={`/${locale}/`}>{t(locale, "TheNobleQuran")}</a> <a href={`/${locale}/`}>{t(locale, "TheNobleQuran")}</a>
</h1> </h1>
<div> <nav>
<ThemeSelect theme={theme} setTheme={setTheme} /> <ThemeSelect theme={theme} setTheme={setTheme} />
<LanguageSelect locale={locale} /> <LanguageSelect locale={locale} />
</div> </nav>
</header> </header>
<ul className="body index scroll-y"> <ul className="body index scroll-y">
{surahs.map((surah, key) => ( {surahs.map((surah, key) => (

View file

@ -63,10 +63,10 @@ function SurahStream({ node, recitations, locale, paused, t }: Props) {
<h1> <h1>
<a href={`/${locale}/`}>{t(locale, "TheNobleQuran")}</a> <a href={`/${locale}/`}>{t(locale, "TheNobleQuran")}</a>
</h1> </h1>
<div> <nav>
<ThemeSelect theme={theme} setTheme={setTheme} /> <ThemeSelect theme={theme} setTheme={setTheme} />
<LanguageSelect locale={locale} path={surah.slug} /> <LanguageSelect locale={locale} path={surah.slug} />
</div> </nav>
<div> <div>
<span className="localized-name" lang={locale}> <span className="localized-name" lang={locale}>
{surah.localizedName} {surah.localizedName}