Skip to content

Commit

Permalink
Removed meet our mentors section (#594)
Browse files Browse the repository at this point in the history
* Removed meet our mentors section

* Lint & Fix CI

* Fix lint 2

* we don't support lighthouse in here
  • Loading branch information
gerardm27 authored Oct 26, 2024
1 parent 499dc9f commit 467423a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 108 deletions.
31 changes: 3 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,44 +8,19 @@ jobs:
- name: 🚚 Get latest code
uses: actions/checkout@v2
- name: 🎯 Set up Node.js using nvm
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: 🎁 Install dependencies
run: npm ci
- name: 👷🏽‍♂️ Build the site
run: npm run build --if-present
- name: 💾 Store the build
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: dist
path: dist

lighthouseci:
name: Lighthouse
needs: build
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: 🚚 Get the build
uses: actions/download-artifact@v2
with:
name: dist
path: dist
- name: 🎯 Set up Node.js using nvm
uses: actions/setup-node@v2
with:
node-version-file: '.nvmrc'
- name: 🎁 Install Lighthouse
run: npm install -g @lhci/cli
- name: 🔎 Run Lighthouse
run: lhci autorun
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}

lintfix:
name: Lint, Type check and auto-fix
runs-on: ubuntu-latest
Expand All @@ -55,7 +30,7 @@ jobs:
with:
fetch-depth: 0
- name: 🎯 Set up Node.js using nvm
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: 🎁 Install dependencies
Expand Down
84 changes: 4 additions & 80 deletions src/views/Mentors.vue
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
<script setup lang="ts">
import { mentors } from '@/data/mentors'
import IconLabel from '@/components/IconLabel.vue'
import Panel from '@/components/Panel.vue'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import PanelContainer from '@/components/PanelContainer.vue'
import { RouterLink, useRoute } from 'vue-router'
import { computed, ref } from 'vue'
import config from '@/config'
import MoreInformationSoon from '@/components/MoreInformationSoon.vue'
const hideMentors = ref(config.hideMentors)
import { useRoute } from 'vue-router'
import { computed } from 'vue'
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 +19,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 +45,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 467423a

Please sign in to comment.