Skip to content
Merged
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
110 changes: 109 additions & 1 deletion apps/web/app/components/EventPageSection.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,111 @@
<script setup lang="ts">
import type { PanelerInfo, SpeakerCategory } from '@vuejs-jp/model'
import EventCard from '~/components/event/EventCard.vue'
import EventAsset from '~/components/event/EventAsset.vue'
import EventMultipleAssets from '~/components/event/EventMultipleAssets.vue'
import PanelerList from '~/components/event/PanelerList.vue'

type _PanelerCategory = Extract<SpeakerCategory, 'panelEventPanelers'>
type Panelers = Record<_PanelerCategory, PanelerInfo>

const data = await $fetch('/api/speakers')
const { panelEventPanelers } = data as Panelers
</script>

<template>
Event
<div class="event">
<div class="event-body">
<VFTitle id="event" color="white" class="title">
{{ $t('event.title') }}
</VFTitle>
<EventCard title="nextgen-frontend-crosstalk">
<PanelerList :panelers="panelEventPanelers.list['nextgen-frontend-crosstalk']" />
</EventCard>
<EventCard title="welcome-vuejs-community">
<PanelerList :panelers="panelEventPanelers.list['welcome-vuejs-community']" />
</EventCard>
<EventCard title="vuejs-handson">
<EventMultipleAssets />
</EventCard>
<div class="event-body-column column-2">
<EventCard title="creative-wall" font-class="title-2" padding-class="content-2">
<EventAsset title="creative-wall" />
</EventCard>
<EventCard title="free-drinks-and-snacks" font-class="title-2" padding-class="content-2">
<EventAsset title="free-drinks-and-snacks" />
</EventCard>
<EventCard title="tattoo-booth" font-class="title-2" padding-class="content-2">
<EventAsset title="tattoo-booth" :margin-top="16" />
</EventCard>
<EventCard title="cocktail-bash" font-class="title-2" padding-class="content-2" />
<EventCard title="sponsor-booth-fotolary" font-class="title-2" padding-class="content-2" />
</div>
</div>
</div>
</template>

<style scoped>
@import url('~/assets/media.css');

.event {
--event-padding: calc(var(--unit) * 5.25) 0;
--event-body-padding: calc(var(--unit) * 6) calc(var(--unit) * 7.5);

display: flex;
justify-content: center;
background-image: url('/sponsor/sponsor-bg-grid.png'),
linear-gradient(to bottom, #35495e, #353b5e);
background-position: top -1px left -1px;
background-size: 30px;
background-blend-mode: overlay;
padding: var(--event-padding);
color: var(--color-vue-blue);
}

.event-body {
margin: 0 auto;
padding: var(--event-body-padding);
margin: 0 1.5%;
max-width: 960px;
display: grid;
gap: calc(var(--unit) * 3.75);
}

.event-body-column {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: calc(var(--unit) * 5);
column-gap: calc(var(--unit) * 5);
}

.column-2 div {
width: calc(50% - 20px);
}

.title {
text-align: center;
line-height: 1.2;
}

@media (--tablet) {
.event-root {
--event-padding: calc(var(--unit) * 2) 0;
}

.event-body {
--event-body-padding: calc(var(--unit) * 4) 4.5% calc(var(--unit) * 6);
}
}

@media (--mobile) {
.event-body-column {
flex-direction: column;
gap: calc(var(--unit) * 3.75);
}

.column-2 > div {
width: 100%;
}
}
</style>
17 changes: 6 additions & 11 deletions apps/web/app/components/event/EventAsset.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,22 @@ import type { Event } from '@vuejs-jp/model'

interface EventAssetProps {
title: Extract<Event, 'creative-wall' | 'free-drinks-and-snacks' | 'tattoo-booth'>
marginTop?: number
}

const props = defineProps<EventAssetProps>()
</script>

<template>
<div class="eventcard-image">
<img :src="`/event/${title}.png`" alt="" />
</div>
<img :src="`/event/${title}-old.png`" alt="" class="eventcard-image" :style="{ marginTop: `${marginTop}px` }" />
</template>

<style scoped>
.eventcard-image {
--head-img-width: 292px;
}

.eventcard-image ::v-deep(img) {
width: var(--head-img-width);
--head-img-height: 192px;

@media (--mobile) {
--head-img-width: 100%;
}
width: 100%;
height: var(--head-img-height);
object-fit: cover;
}
</style>
18 changes: 16 additions & 2 deletions apps/web/app/components/event/EventCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,31 @@ import type { Event } from '@vuejs-jp/model'

interface EventCardProps {
title: Event
fontClass?: string
paddingClass?: string
}

const props = defineProps<EventCardProps>()
</script>

<template>
<VFEventFrame :title="$t(`event.${title.replaceAll('-', '_')}`)">
<VFEventFrame :title="$t(`event.${title.replaceAll('-', '_')}`)" :font-class :padding-class>
<template #content>
<div class="eventcard-content">
<MarkDownText :path="title.replaceAll('-', '_')" />
</div>
</template>
<template #default>
<slot />
<div class="eventcard-default">
<slot />
</div>
</template>
</VFEventFrame>
</template>

<style scoped>
@import url('~/assets/media.css');

.eventcard-content {
font-size: 16px;
font-weight: 500;
Expand All @@ -39,4 +45,12 @@ const props = defineProps<EventCardProps>()
transition: .2s;
}

.eventcard-default {
border-radius: 0 0 calc(var(--unit) * 3) calc(var(--unit) * 3);
overflow: hidden;

@media (--mobile) {
border-radius: 0 0 calc(var(--unit) * 1.5) calc(var(--unit) * 1.5);
}
}
</style>
2 changes: 2 additions & 0 deletions apps/web/app/components/event/EventMultipleAssets.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const props = withDefaults(defineProps<EventMultipleAssetsProps>(), {
.eventcard-images {
display: flex;
gap: calc(var(--unit) * 1.5);
padding: 0 calc(var(--unit) * 2);

@media (--mobile) {
flex-direction: column;
Expand All @@ -32,6 +33,7 @@ const props = withDefaults(defineProps<EventMultipleAssetsProps>(), {
.eventcard-images ::v-deep(img) {
--head-img-height: 192px;

padding: 0;
height: var(--head-img-height);
}
</style>
2 changes: 1 addition & 1 deletion apps/web/app/components/event/PanelerList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const currentLocale = useLocaleCurrent().locale
</script>

<template>
<h4>{{ $t('event.scheduled_speakers') }}</h4>
<div class="eventcard-persons">
<VFSpeaker
v-for="paneler in panelers"
Expand All @@ -33,6 +32,7 @@ const currentLocale = useLocaleCurrent().locale

display: flex;
gap: calc(var(--unit) * 2);
padding: 0 calc(var(--unit) * 2);
}

.eventcard-persons ::v-deep(img) {
Expand Down
Binary file added apps/web/app/public/event/creative-wall-old.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/app/public/event/creative-wall.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/app/public/event/free-drinks-and-snacks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/web/app/public/event/tattoo-booth-old.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/app/public/event/tattoo-booth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 56 additions & 6 deletions packages/ui/components/event/EventFrame.vue
Original file line number Diff line number Diff line change
@@ -1,26 +1,76 @@
<script setup lang="ts">
interface EventFrameProps {
title: string
fontClass?: string
paddingClass?: string
}

const props = defineProps<EventFrameProps>()
const props = withDefaults(defineProps<EventFrameProps>(), {
fontClass: 'title-1',
paddingClass: 'content-1',
})
</script>

<template>
<div class="event-frame-root">
<h3>{{ title }}</h3>
<slot name="content" />
<div class="event-frame-content" :class="paddingClass">
<h3 :class="fontClass">{{ title }}</h3>
<slot name="content" />
</div>
<slot />
</div>
</template>

<style scoped>
.event-frame-root {
display: grid;
gap: calc(var(--unit) * 1);
padding: calc(var(--unit) * 2);
width: var(--head-width);
background-color: #E7EFF7;
border-radius: calc(var(--unit) * 3);

@media (--mobile) {
border-radius: calc(var(--unit) * 1.5);
}
}

.event-frame-content {
display: grid;
gap: calc(var(--unit) * 5);
}

.content-1 {
padding: calc(var(--unit) * 5) calc(var(--unit) * 12);

@media (--mobile) {
padding: calc(var(--unit) * 2);
}
}

.content-2 {
padding: calc(var(--unit) * 5) calc(var(--unit) * 5);

@media (--mobile) {
padding: calc(var(--unit) * 2);
}
}

h3 {
font-weight: 700;
text-align: center;
}

.title-1 {
font-size: 36px;

@media (--mobile) {
font-size: 24px;
}
}

.title-2 {
font-size: 30px;

@media (--mobile) {
font-size: 24px;
}
}
</style>
Loading