Skip to content

Commit

Permalink
Merge pull request #75 from Grumpyyash/footer-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leecalcote authored Mar 11, 2021
2 parents d5e32da + 7b97af2 commit 93aede9
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 41 deletions.
34 changes: 17 additions & 17 deletions docs/_data/footer.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
#getnighthawk.dev footer data
- title: Community
links:
- name: Blog
link: https://layer5.io/blog
- name: Contributors
link: https://layer5.io/community/members
- name: Events
link: https://layer5.io/events
new_window: true
- name: Slack
link: http://slack.layer5.io/
new_window: true
- name: GitHub
link: https://github.com/layer5io/getnighthawk/
new_window: true
# - title: Community
# links:
# - name: Blog
# link: https://layer5.io/blog
# - name: Contributors
# link: https://layer5.io/community/members
# - name: Events
# link: https://layer5.io/events
# new_window: true
# - name: Slack
# link: http://slack.layer5.io/
# new_window: true
# - name: GitHub
# link: https://github.com/layer5io/getnighthawk/
# new_window: true
- title: Getting Started
links:
- name: Features
Expand All @@ -35,7 +35,7 @@
- name: Service Mesh Landscape
link: https://layer5.io/landscape
new_window: true
- title: Socials
- title: Social
links:
- name: Twitter
link: https://twitter.com/layer5
Expand All @@ -60,4 +60,4 @@
- name: GitHub
link: https://github.com/layer5io/getnighthawk/
social_icon: GitHub
new_window: true
new_window: true
18 changes: 11 additions & 7 deletions docs/_includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,24 @@
{% endfor %}
</ul>
{% endfor %}

</div>
<div class="copyright-cont">
<p>2021 <span class="copyright">&#169;</span> Layer5, Inc.</p>

</div>


</div>
<hr>
<div class="container">
<p class="copyright-text">Copyright <span class="copyright">&#169;</span> Layer5, Inc. 2021 </p>
</div>

</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
{% if jekyll.environment == 'production' %}
<script src="{{ site.baseurl }}/assets/js/stellarnav.min.js"></script>
{% else %}
<script src="{{ site.baseurl }}/assets/js/stellarnav.js"></script>
{% endif %}

<script src="{{ site.baseurl }}/assets/js/main.js"></script>

<!-- Site Navigation Menu -->
Expand All @@ -43,12 +47,12 @@
<!--Script for Copy to Clipboard-->
<script src="https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js"></script>
<script>

function resetCopyText(element) {
let childElements = element.childNodes
childElements[3].innerHTML="Copy to clipboard";
}

var clipboard = new ClipboardJS('.btn');
clipboard.on('success', function(e) {
console.info('Action:', e.action);
Expand Down
39 changes: 22 additions & 17 deletions docs/_sass/footer.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@

.container{
display: flex;
justify-content: space-evenly;
justify-content: space-evenly;
font-size: 0.8rem;
}
.copyright-text {
position: absolute;
left: 12rem;
color: white;
font-size: 15px;
line-height: 15px;
}

.footer-links {

margin: 0rem 1rem;
padding: 0;

Expand Down Expand Up @@ -44,10 +50,10 @@
&.google-plus-icon:hover svg {
fill: #db4437;
}

&.calendar-icon:hover svg {
fill: #0073cf;
}
}

&.dockerhub-icon:hover svg {
fill: #029CEC;
Expand Down Expand Up @@ -78,7 +84,7 @@
}
}
}

}
.feed {
width: 100%;
Expand All @@ -89,7 +95,7 @@
-webkit-flex: 1 0 310px;
flex: 1 0 310px;
}

ul {
list-style: none;
margin: 10px auto;
Expand All @@ -106,32 +112,31 @@ footer {
position: relative;
background: #1E2117;
color: #fff;

.getnighthawk-logo{
display: flex;
align-items: center;
a{
display:block;

img{
width:3rem;
width:5rem;
vertical-align: middle;
}
p{
display: inline-block;
color:white;
font-size: 1.1rem;
font-size: 2rem;
font-weight: bolder;
margin:0rem 0.2rem;
}
}
}
a:hover{
text-decoration: none;

}
}
.copyright-cont{

display: flex;
align-items: center;
p{
Expand All @@ -141,13 +146,13 @@ footer {
.copyright {
font-size: .8em;
margin: 0 auto;

@media #{$tablet} {
text-align: center;
}

}

&,
a {
color: #999;
Expand Down Expand Up @@ -214,4 +219,4 @@ footer {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
}
}
}

0 comments on commit 93aede9

Please sign in to comment.