Skip to content

Commit

Permalink
feat(twitter): Add twitter footer to main page
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmussig committed Jul 14, 2023
1 parent b93733d commit ee49dd6
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 9 deletions.
36 changes: 36 additions & 0 deletions components/layout/TwitterFooter.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<template>
<div class="twitter-footer d-flex fill-height justify-center align-center">
<a href="https://twitter.com/ace_gtdb" target="_blank" class="no-link">

<v-icon color="#1D9BF0">
{{ mdiTwitterSvg }}
</v-icon>
<span class="ml-1">
@ace-gtdb
</span>
</a>
</div>
</template>

<script lang="ts">
import {mdiTwitter} from '@mdi/js';
import Vue from 'vue';
export default Vue.extend({
data: () => ({
mdiTwitterSvg: mdiTwitter,
}),
})
</script>

<style scoped>
.twitter-footer {
background-color: #000000;
color: #b7b7b7;
}
.no-link {
color: #b7b7b7;
text-decoration: none;
}
</style>
26 changes: 17 additions & 9 deletions pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<template>

<!-- make this flex column when small -->
<div class="d-flex fill-height flex-column flex-md-row">
<!-- Default container for all content on the main page -->
<div class="fill-height w-100 d-flex flex-column align-stretch">

<!-- Left column (main) -->
<div ref="gtdbmain" class="gtdb-main d-flex w-md-80 flex-grow-1 flex-column">
<!-- Main content -->
<div ref="gtdbmain" class="gtdb-main d-flex w-100 flex-grow-1 flex-column" style="min-height: 200px;">

<!-- First row -->
<div class="d-flex flex-column">
Expand All @@ -14,7 +14,8 @@
***
</NotifyBar>
<NotifyBar uid="r214-gtdbtk">
*** GTDB-Tk has been updated to use the R214 taxonomy from <span class="mx-1"><a href="https://ecogenomics.github.io/GTDBTk/installing/index.html" target="_blank">v2.3.0</a></span>***
*** GTDB-Tk has been updated to use the R214 taxonomy from <span class="mx-1"><a
href="https://ecogenomics.github.io/GTDBTk/installing/index.html" target="_blank">v2.3.0</a></span>***
</NotifyBar>
</div>

Expand Down Expand Up @@ -85,11 +86,17 @@
</div>

<!-- Right column (twitter) -->
<!-- <div class="d-flex w-md-20 flex-grow-0 flex-column fill-height" style="background-color: #f7f9f9 !important">-->
<!-- <TwitterTimeline style="max-height: 90vh; overflow: auto;"></TwitterTimeline>-->
<!-- </div>-->
<!-- <div class="d-flex w-md-20 flex-grow-0 flex-column fill-height" style="background-color: #f7f9f9 !important">-->
<!-- <TwitterTimeline style="max-height: 90vh; overflow: auto;"></TwitterTimeline>-->
<!-- </div>-->

<!-- Twitter footer -->
<div style="height: 40px;" class="d-block">
<TwitterFooter/>
</div>

</div>

</template>

<script lang="ts">
Expand All @@ -99,9 +106,10 @@ import UqLogo from "~/components/layout/UqLogo.vue";
import TwitterTimeline from "~/components/layout/TwitterTimeline.vue";
import GtdbRankHistogram from "~/components/index/GtdbRankHistogram.vue";
import NotifyBar from "~/components/index/NotifyBar.vue";
import TwitterFooter from "~/components/layout/TwitterFooter.vue";
export default Vue.extend({
components: {GtdbRankHistogram, TwitterTimeline, UqLogo, AceLogo, NotifyBar},
components: {TwitterFooter, GtdbRankHistogram, TwitterTimeline, UqLogo, AceLogo, NotifyBar},
head() {
return {
title: 'Genome Taxonomy Database',
Expand Down

0 comments on commit ee49dd6

Please sign in to comment.