Skip to content

Commit

Permalink
Add Announcements to visitor menu
Browse files Browse the repository at this point in the history
  • Loading branch information
atsu1125 committed Feb 25, 2023
1 parent e6140b7 commit 1878679
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/client/ui/visitor/b.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
<transition name="tray">
<div v-if="showMenu" class="menu">
<MkA to="/" class="link" active-class="active"><Fa :icon="faHome" class="icon"/>{{ $ts.home }}</MkA>
<MkA to="/announcements" class="link" active-class="active"><Fa :icon="faBroadcastTower" class="icon"/>{{ $ts.announcements }}</MkA>
<MkA to="/explore" class="link" active-class="active"><Fa :icon="faHashtag" class="icon"/>{{ $ts.explore }}</MkA>
<MkA to="/featured" class="link" active-class="active"><Fa :icon="faFireAlt" class="icon"/>{{ $ts.featured }}</MkA>
<MkA to="/channels" class="link" active-class="active"><Fa :icon="faSatelliteDish" class="icon"/>{{ $ts.channel }}</MkA>
<div class="action">
<button class="_buttonPrimary" @click="signup()">{{ $ts.signup }}</button>
Expand Down
5 changes: 3 additions & 2 deletions src/client/ui/visitor/header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<div class="wide" v-if="narrow === false">
<div class="content">
<MkA to="/" class="link" active-class="active"><Fa :icon="faHome" class="icon"/>{{ $ts.home }}</MkA>
<MkA to="/announcements" class="link" active-class="active"><Fa :icon="faBroadcastTower" class="icon"/>{{ $ts.announcements }}</MkA>
<MkA to="/explore" class="link" active-class="active"><Fa :icon="faHashtag" class="icon"/>{{ $ts.explore }}</MkA>
<MkA to="/featured" class="link" active-class="active"><Fa :icon="faFireAlt" class="icon"/>{{ $ts.featured }}</MkA>
<MkA to="/channels" class="link" active-class="active"><Fa :icon="faSatelliteDish" class="icon"/>{{ $ts.channel }}</MkA>
Expand Down Expand Up @@ -41,7 +42,7 @@

<script lang="ts">
import { defineComponent } from 'vue';
import { faSearch, faHome, faFireAlt, faHashtag, faSatelliteDish, faBars } from '@fortawesome/free-solid-svg-icons';
import { faSearch, faHome, faFireAlt, faHashtag, faSatelliteDish, faBars, faBroadcastTower } from '@fortawesome/free-solid-svg-icons';
import XSigninDialog from '@/components/signin-dialog.vue';
import XSignupDialog from '@/components/signup-dialog.vue';
import * as os from '@/os';
Expand All @@ -58,7 +59,7 @@ export default defineComponent({
return {
narrow: null,
showMenu: false,
faSearch, faHome, faFireAlt, faHashtag, faSatelliteDish, faBars,
faSearch, faHome, faFireAlt, faHashtag, faSatelliteDish, faBars, faBroadcastTower,
};
},
Expand Down

0 comments on commit 1878679

Please sign in to comment.