Skip to content

Commit

Permalink
brought the translate to hindi button to main page for smaller devices (
Browse files Browse the repository at this point in the history
#152)

* brought the translate to hindi button to main page for smaller devices

* fixed the bug for translate button

* fixed the bug
  • Loading branch information
kripa-sindhu-007 authored Jun 13, 2024
1 parent bc1edae commit ae3acf6
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 29 deletions.
12 changes: 3 additions & 9 deletions activities.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
<path d="M4 19L20 19" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
</svg>
</nav>
<div class="special-button">
<a class="translate" href="#" aria-label="Read in English" onclick="changelanguage()">हिन्दी में देखिये</a>
</div>
<ul class="mobileNav">
<li><a class="translate" href="/" aria-label="होम">Home</a></li>
<li>
Expand All @@ -84,15 +87,6 @@
>Contact Us</a
>
</li>
<li>
<a
class="translate"
href="#"
aria-label="Read in English"
onclick="changelanguage()"
>हिन्दी में देखिये</a
>
</li>
</ul>
</div>

Expand Down
16 changes: 16 additions & 0 deletions assets/css/activities.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,19 @@
.twitter-activities * {
margin: auto;
}
.special-button {
display: none;
}
@media (max-width: 768px) {
.special-button {
display: flex;
position: absolute;
right: 40px;
top: 30px;
align-items: center;
}
.special-button a {
color: #fff;
text-decoration: none;
}
}
15 changes: 14 additions & 1 deletion assets/css/contact.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,25 @@ body {
border-radius: 10px;
text-decoration: none;
}

.special-button {
display: none;
}
@media (max-width: 768px) {
.contact-parent div {
flex: 1 1 80%; /* Forces divs to stack on top of each other */
}
.contact-parent {
flex-wrap: wrap;
}
.special-button {
display: flex;
position: absolute;
right: 40px;
top: 30px;
align-items: center;
}
.special-button a {
color: #fff;
text-decoration: none;
}
}
15 changes: 14 additions & 1 deletion assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,9 @@ footer {
height: 1.5rem;
width: 1.5rem;
}
.special-button {
display: none;
}

/* Media queries */
@media (max-width: 768px) {
Expand Down Expand Up @@ -638,11 +641,21 @@ footer {
#navbar .mobileNav li a:active {
color: #fff;
}
.special-button {
display: flex;
position: absolute;
right: 40px;
top: 30px;
align-items: center;
}
.special-button a {
color: #fff;
text-decoration: none;
}
}

@media (max-width: 510px) {
.about--address {
word-break: break-word;
}

}
12 changes: 3 additions & 9 deletions contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
<path d="M4 19L20 19" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
</svg>
</nav>
<div class="special-button">
<a class="translate" href="#" aria-label="Read in English" onclick="changelanguage()">हिन्दी में देखिये</a>
</div>
<ul class="mobileNav">
<li><a class="translate" href="/" aria-label="होम">Home</a></li>
<li>
Expand All @@ -82,15 +85,6 @@
>Contact Us</a
>
</li>
<li>
<a
class="translate"
href="#"
aria-label="Read in English"
onclick="changelanguage()"
>हिन्दी में देखिये</a
>
</li>
</ul>
</div>

Expand Down
12 changes: 3 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
<path d="M4 19L20 19" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
</svg>
</nav>
<div class="special-button">
<a class="translate" href="#" aria-label="Read in English" onclick="changelanguage()">हिन्दी में देखिये</a>
</div>
<ul class="mobileNav">
<li><a class="translate" href="/" aria-label="होम">Home</a></li>
<li>
Expand All @@ -82,15 +85,6 @@
>Contact Us</a
>
</li>
<li>
<a
class="translate"
href="#"
aria-label="Read in English"
onclick="changelanguage()"
>हिन्दी में देखिये</a
>
</li>
</ul>
</div>
<div class="introduction">
Expand Down

0 comments on commit ae3acf6

Please sign in to comment.