Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Outsite board formatting #646

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 25 additions & 12 deletions outsite.nl/components/layout/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,28 @@ en:
boardTitle: Board
contactTitle: Contact
board:
- name: Feline (she/her)
- name: Feline
pronouns: she/her
role: President
email: voorzitter
- name: Chai (they/them)
- name: Chai
pronouns: they/them
role: Vice President
email: vicevoorzitter
- name: Alin (he/they)
- name: Alin
pronouns: he/they
role: Secretary
email: secretaris
- name: Nick (he/him)
- name: Nick
pronouns: he/him
role: Treasurer
email: penningmeester
- name: Jaye (any/all)
- name: Jaye
pronouns: any/all
role: External Affairs
email: extern
- name: Lucia (they/them)
- name: Lucia
pronouns: they/them
role: Internal Affairs
email: intern
confidential_counsellors: Confidential Counsellors
Expand All @@ -30,22 +36,28 @@ nl:
boardTitle: Bestuur
contactTitle: Contact
board:
- name: Feline (zij/haar)
- name: Feline
pronouns: zij/haar
role: Voorzitter
email: voorzitter
- name: Chai (die/hun)
- name: Chai
pronouns: die/hun
role: Vicevoorzitter
email: vicevoorzitter
- name: Alin (hij/die)
- name: Alin
pronouns: hij/die
role: Secretaris
email: secretaris
- name: Nick (hij/hem)
- name: Nick
pronouns: hij/hem
role: Penningmeester
email: penningmeester
- name: Jaye (alle pronouns)
- name: Jaye
pronouns: alle pronouns
role: Commissaris Extern
email: extern
- name: Lucia (die/hun)
- name: Lucia
pronouns: die/hun
role: Commissaris Intern
email: intern
confidential_counsellors: Vertrouwenspersonen
Expand Down Expand Up @@ -86,6 +98,7 @@ const links = [
<LayoutFooterBoardMember
v-for="member in t('board')"
:key="member.name"
:pronouns="member.pronouns"
:role="member.role"
:name="member.name"
:email="`${member.email}@outsite.nl`"
Expand Down
2 changes: 1 addition & 1 deletion outsite.nl/components/pages/home/MoreDWH.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ nl:
Naast Outsite organiseert DWH ook activiteiten voor alle leeftijden.
Denk aan baravonden, voorlichtingen, feesten, eetgroepen en nog veel meer.
Voor jongeren onder de 18 jaar organiseert DWH Jong&Out meetings.
more: Check de DWH website
more: Check DWH site
activities:
- title: Jong&Out
description: |
Expand Down
14 changes: 9 additions & 5 deletions shared/components/layout/footer/BoardMember.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<script setup>
defineProps({
name: { type: String, required: true },
pronouns: { type: String, required: false },
role: { type: String, required: true },
email: { type: String, required: true },
})

const nameAsImage = (name, role) => {
const nameAsImage = (name, pronouns) => {
const image = `
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="20">
<foreignObject width="100%" height="100%" x="0" y="0" externalResourcesRequired="true">
Expand All @@ -18,7 +19,7 @@
word-spacing: 1px;
">
<strong>${name}</strong>
| ${role}
<span style="color: rgb(180, 171, 183); font-size: 12px;">${pronouns}</span>
</span>
</foreignObject>
</svg>
Expand All @@ -29,8 +30,11 @@
</script>

<template>
<div class="leading-tight">
<img class="w-full" :src="nameAsImage(name, role)" />
<span class="text-gray-400">{{ email }}</span>
<div class="leading-tight border border-gray-600 border-l-0 rounded-l-none rounded-2xl pr-4 pb-3 pt-5 relative">

Check warning on line 33 in shared/components/layout/footer/BoardMember.vue

View workflow job for this annotation

GitHub Actions / lint

Invalid Tailwind CSS classnames order
<div class="uppercase text-sm tracking-wider font-semibold absolute -top-2.5 bg-gray-700 pr-2">

Check warning on line 34 in shared/components/layout/footer/BoardMember.vue

View workflow job for this annotation

GitHub Actions / lint

Invalid Tailwind CSS classnames order
{{ role }}
</div>
<img class="mb-1" :src="nameAsImage(name, pronouns)" />
<div class="text-gray-400 text-sm">{{ email }}</div>

Check warning on line 38 in shared/components/layout/footer/BoardMember.vue

View workflow job for this annotation

GitHub Actions / lint

Invalid Tailwind CSS classnames order
</div>
</template>
Loading