Skip to content
This repository was archived by the owner on Mar 2, 2022. It is now read-only.

Commit 9912bc2

Browse files
committed
Work to improve mobile nav ui.
Assets Add: 1) static/github.png (Github Icon) 2) static/google-plus.png (Google Plus Icon) 3) static/mail.png (Mail Icon) 4) static/twitter.png (Twitter Icon) Change: 1) In NavBar.vue -Remove BioJS from written on main navbar. +Add Logo in place of BioJS but on right side on navbar and also a link which navigate to home. +Add BioJS on navbar menu container. +Add few css for for navbar. +Add Few icon on bottom on navbar menu container bottom. +-Modified css property of .close (close class). change the value of top to 35px. +-Modified css property of #nav (nav id). Remove padding-top property.
1 parent 653b135 commit 9912bc2

File tree

6 files changed

+70
-14
lines changed

6 files changed

+70
-14
lines changed

src/components/NavBar.vue

Lines changed: 59 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,33 @@
88
<router-link class="navLink" to="/">
99
<span class="navLogo"><img src="../../static/logo.png" height="50px"></span>
1010
</router-link>
11+
<div id="mobileNavHeading">
12+
<h1 id="bio">Bio</h1><h1 id="js">JS</h1>
13+
</div>
1114
<router-link class="navLink" to="/components"><span>Components</span></router-link>
1215
<router-link class="navLink" to="/guide"><span>Guide</span></router-link>
1316
<router-link class="navLink" to="/about"><span>About</span></router-link>
1417
<router-link class="navLink" to="/contact"><span>Contact Us</span></router-link>
1518
<div class="close">
1619
<img @click="closeMenu()" src="../../static/close.png" alt="Close menu">
1720
</div>
21+
<div id="mobileNavBottom">
22+
<div id="mobileNavSocialLink">
23+
<a href="https://github.com/biojs/biojs-frontend"><img src="../../static/github.png" alt="GitHub" class="mobileNavSocialLinkImg"></a>
24+
<a href="https://twitter.com/biojslibrary?lang=en"><img src="../../static/twitter.png" alt="Twitter" class="mobileNavSocialLinkImg"></a>
25+
<a href="https://plus.google.com/+BiojsNet1/posts"><img src="../../static/google-plus.png" alt="Google Plus" class="mobileNavSocialLinkImg"></a>
26+
<a href="mailto:[email protected]"><img src="../../static/mail.png" alt="Mail" class="mobileNavSocialLinkImg"></a>
27+
</div>
28+
</div>
1829
</div>
1930
<div id="mobileNav">
2031
<div class="hamburger" onclick="">
2132
<img src="../../static/hamburger.png" alt="Open Menu" @click="openMenu()">
2233
</div>
23-
<h2>Bio<span>JS</span></h2>
34+
35+
<router-link class="navLink logoLink" to="/">
36+
<span><img src="../../static/logo.png" height="44px"></span>
37+
</router-link>
2438
</div>
2539
</div>
2640
</div>
@@ -100,6 +114,7 @@ export default {
100114
width: 80%;
101115
display: flex;
102116
justify-content: space-around;
117+
background: #f7f9ff;
103118
span {
104119
font-size: 17px;
105120
cursor: pointer;
@@ -123,16 +138,44 @@ export default {
123138
display: none;
124139
}
125140
}
141+
142+
#mobileNavHeading{
143+
display: none;
144+
padding: 30px;
145+
#bio{
146+
color: #007E3A;
147+
}
148+
#js{
149+
color: #000000;
150+
}
151+
152+
#bio, #js{
153+
font-weight: 700;
154+
display: inline !important;
155+
}
156+
}
157+
#mobileNavBottom{
158+
display: none;
159+
flex: 1;
160+
align-items: flex-end;
161+
162+
#mobileNavSocialLink{
163+
display: flex;
164+
justify-content: center;
165+
padding: 30px;
166+
flex: 1;
167+
}
168+
}
126169
#mobileNav {
127170
display: none;
128171
align-items: center;
129-
h2 {
130-
color: #007e3a;
131-
margin: 0;
132-
padding: 0;
172+
width: 100%;
173+
.logoLink {
174+
margin-left: auto;
175+
padding-right: 20px;
133176
}
134-
span {
135-
color: #000;
177+
.navLogo-m {
178+
height: 44px;
136179
}
137180
}
138181
.hamburger {
@@ -150,7 +193,7 @@ export default {
150193
.close {
151194
position: absolute;
152195
right: 20px;
153-
top: 10px;
196+
top: 35px;
154197
height: 40px;
155198
width: 40px;
156199
display: none;
@@ -187,11 +230,10 @@ export default {
187230
justify-content: flex-start;
188231
background: #fff;
189232
margin: 0;
190-
padding-top: 80px;
191-
-webkit-transition: 0.3s all ease-in;
192-
-moz-transition: 0.3s all ease-in;
193-
-o-transition: 0.3s all ease-in;
194-
transition: 0.3s all ease-in;
233+
-webkit-transition: 0.2s all ease-in;
234+
-moz-transition: 0.2s all ease-in;
235+
-o-transition: 0.2s all ease-in;
236+
transition: 0.2s all ease-in;
195237
span {
196238
padding-left: 30px;
197239
line-height: 60px;
@@ -212,12 +254,15 @@ export default {
212254
#mobileNav {
213255
display: flex;
214256
}
215-
.close {
257+
#mobileNav, #mobileNavBottom, .close {
216258
display: flex;
217259
}
218260
#homeLink {
219261
order: -1;
220262
}
263+
#mobileNavHeading{
264+
display: block;
265+
}
221266
}
222267
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
223268
}

static/github.png

4.9 KB
Loading

static/google-plus.png

3 KB
Loading

static/mail.png

3.98 KB
Loading

static/node_modules/propdoc/style.scss

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/twitter.png

3.75 KB
Loading

0 commit comments

Comments
 (0)