Skip to content

Commit

Permalink
Add socials links to events
Browse files Browse the repository at this point in the history
  • Loading branch information
slmnio committed Aug 27, 2021
1 parent 17920d8 commit 6fe7558
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions website/src/views/Event.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
<li class="nav-item" v-if="useStaffPage"><router-link class="nav-link" :to="subLink('staff')">Staff</router-link></li>
<li class="nav-item" v-if="event.about"><router-link class="nav-link" :to="subLink('about')">About</router-link></li>
<!-- <li class="nav-item" v-if="team.matches"><router-link class="nav-link" :to="subLink('matches')">Matches</router-link></li>-->


<ul class="socials d-flex" v-if="event.socials">
<li class="nav-item">
<Social :social="social" v-for="social in event.socials" v-bind:key="social.id"/>
</li>
</ul>
</SubPageNav>

<router-view :event="event"></router-view>
Expand All @@ -24,12 +31,13 @@ import ThingTop from "@/components/website/ThingTop";
import { ReactiveArray, ReactiveRoot, ReactiveThing } from "@/utils/reactive";
import { multiImage } from "@/utils/content-utils";
import SubPageNav from "@/components/website/SubPageNav";
import Social from "@/components/website/Social";
export default {
name: "Event",
props: ["id", "isMinisite"],
components: {
ThingTop, SubPageNav
ThingTop, SubPageNav, Social
},
metaInfo() {
return {
Expand All @@ -54,7 +62,8 @@ export default {
player: ReactiveThing("player")
}),
casters: ReactiveArray("casters"),
news_items: ReactiveArray("news_items")
news_items: ReactiveArray("news_items"),
socials: ReactiveArray("socials")
});
},
settings() {
Expand Down Expand Up @@ -91,5 +100,12 @@ export default {
</script>
<style scoped>
.socials {
list-style: none;
padding-left: 0;
margin: 0 .5em;
}
.socials li a {
padding: .25em .25em;
}
</style>

1 comment on commit 6fe7558

@slmnio
Copy link
Owner Author

@slmnio slmnio commented on 6fe7558 Aug 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

closes #48

Please sign in to comment.