Skip to content

Commit

Permalink
Removed meet our mentors section
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardm27 committed Oct 26, 2024
1 parent 499dc9f commit cc2733d
Showing 1 changed file with 2 additions and 73 deletions.
75 changes: 2 additions & 73 deletions src/views/Mentors.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@ const hideMentors = ref(config.hideMentors)
const route = useRoute()
const currentView = computed<'generalInfo' | 'meetThem'>(() => {
if (
route.params?.mentorsId !== 'generalInfo' &&
route.params?.mentorsId !== 'meetThem'
) {
const currentView = computed<'generalInfo'>(() => {
if (route.params?.mentorsId !== 'generalInfo') {
return 'generalInfo'
}
Expand All @@ -27,29 +24,6 @@ const currentView = computed<'generalInfo' | 'meetThem'>(() => {

<template>
<PanelContainer id="mentors">
<div class="explore">
<RouterLink
:to="{
name: 'mentors',
params: { mentorsId: 'generalInfo' },
}"
class="button"
:class="{ 'button--disabled': currentView === 'generalInfo' }"
>
General Information
</RouterLink>
<RouterLink
:to="{
name: 'mentors',
params: { mentorsId: 'meetThem' },
}"
class="button"
:class="{ 'button--disabled': currentView === 'meetThem' }"
>
Meet our mentors
</RouterLink>
</div>

<template v-if="currentView === 'generalInfo'">
<Panel title="What is a mentor?" size="small">
Mentors are experts in various technologies and programming languages
Expand All @@ -76,51 +50,6 @@ const currentView = computed<'generalInfo' | 'meetThem'>(() => {
Also you can ask for help through the help channel on Slack!
</Panel>
</template>

<template v-if="currentView === 'meetThem'">
<template v-for="mentor in mentors" :key="mentor.title">
<Panel v-if="hideMentors" title="Mentor name">
<MoreInformationSoon />
</Panel>
<Panel v-else :title="mentor.title">
<IconLabel
centered
style="margin-top: 0.27rem; margin-bottom: 1.5rem"
>
<template #icon>
<FontAwesomeIcon class="link__icon" :icon="['fab', 'slack']" />
</template>
<p class="icon-label-link">{{ mentor.slack }}</p>
</IconLabel>
<p class="position">
<span style="margin-right: 8px">💼</span
><strong>Working as:</strong>
{{ mentor.description }}
</p>
<p class="position">{{ mentor.languages }}</p>
<div class="icons">
<a
v-if="mentor.linkedin"
:href="mentor.linkedin"
class="icons__icon"
>
<FontAwesomeIcon
class="link__icon"
:icon="['fab', 'linkedin']"
size="3x"
/>
</a>
<a v-if="mentor.webpage" :href="mentor.webpage" class="icons__icon">
<FontAwesomeIcon
class="link__icon"
:icon="['fa', 'globe']"
size="3x"
/>
</a>
</div>
</Panel>
</template>
</template>
</PanelContainer>
</template>

Expand Down

0 comments on commit cc2733d

Please sign in to comment.