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

Implement/aboutpage #30

Open
wants to merge 18 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
75 changes: 75 additions & 0 deletions components/ImageScroll.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<template>
<div>
<h2 class="image_scroller_title">{{ title }}</h2>
Copy link
Member

Choose a reason for hiding this comment

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

The title is sometimes not that well visible. Maybe add a background with 0.5 ocupacity. See the login page for an example.

Copy link
Author

Choose a reason for hiding this comment

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

That is true. I have added two implementations of the slightly opaque background, both of which in the theme color. One more in the style of the login page and the other as a small box around the title. I am in favor of the former, but this is a design change we should probably decide on together
image
image

Copy link
Member

Choose a reason for hiding this comment

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

Yes, I think the best option is to have the second image (Box around the title), however put it in the bottom right corner. @MaritRadder what do you think?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think something like this:
image
Is best. I updated the design accordingly. I did it quite fast so padding and stuff is not very accurate.

<div class="container">
<div v-for="i in images" :key="i" class="image_container">
ajaggoe marked this conversation as resolved.
Show resolved Hide resolved
<NuxtImg :src="i" />
</div>
<div class="image_container">
ArdyZ marked this conversation as resolved.
Show resolved Hide resolved
<NuxtImg :src="images[0]" />
</div>
<div class="image_container">
<NuxtImg :src="images[1]" />
</div>
</div>
</div>
</template>

<script setup lang="ts">
interface Props {
title: string;
images: string[];
}

defineProps<Props>();
</script>

<style lang="scss" scoped>
//how much scroll should scale with # of images, 100% is width of 1 image
@keyframes scroll {
0% {
transform: translateX(0);
}
100% {
transform: translateX(calc(-100% * 3));
}
}
// pause scroll on hover
// .container:hover .image_container {
// animation-play-state: paused;
// }
.container {
display: flex;
height: 80%;
width: auto;
flex-direction: row;
padding-bottom: var(--indent-xl);
justify-content: left;
overflow-x: hidden;
z-index: 2;
}
.container .image_container {
animation: scroll 35s linear infinite; //animation time, should scale with # of images
width: 1200px;
height: auto;
}

img {
height: 800px;
max-height: 85vh;
min-height: 400px;
width: auto;
}

.image_scroller_title {
display: block;
margin-bottom: var(--indent-s);
text-align: center;
margin-top: var(--indent-s);
}

.content {
background: var(--theme-color);
flex-grow: 1;
}
</style>
2 changes: 1 addition & 1 deletion components/TheHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<NuxtLink href="/"><NuxtImg src="/images/logo.png" /></NuxtLink>
<div>
<a href="#">Tickets</a>
<a href="#">About us</a>
<a href="/about">About us</a>
<a href="#">My Area</a>
</div>
</nav>
Expand Down
2 changes: 2 additions & 0 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
--theme-color: #1a2b43;
--theme-color-alt: #ffe574;
--color-white: #fff;
--alpha: 0.5;

--indent-s: 8px;
--indent-m: 16px;
Expand All @@ -23,6 +24,7 @@
--font-size-m: 1.6rem;
--font-size-l: 2rem;
--font-size-xl: 3.2rem;
--font-size-xxl: 4rem;

--line-height-s: 1.8rem;
--line-height-m: 2rem;
Expand Down
36 changes: 36 additions & 0 deletions pages/about.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<template>
<div>
<TextImage image="/Images/Gamers.jpg" :inverse="false">
<h1 style="padding-top: 48px">Who are we?</h1>
<p>
The LANcie is the committee that organises AreaFiftyLAN each
year. It's our job to make sure everything goes to plan and that
all potential problems are taken care of. We don't bite, so
don't hesitate to contact us with a good story, some questions
or just a casual conversation about gaming. We're always open to
feedback and fun ideas. We hope to see you at the event! If you
have any questions or are interested in sponsoring the event,
please send an email with our contact form.
</p>
</TextImage>
<SponsorBanner :sponsors="sponsors">
<p>PLACEHOLDER</p>
</SponsorBanner>
<ImageScroll title="Oud LAN" :images="images"></ImageScroll>
</div>
</template>

<script setup lang="ts">
const sponsors = [
{
title: "Presented by",
sponsors: ["/Images/chlogo.png", "/Images/chlogo.png"],
},
{
title: "Sponsored by",
sponsors: ["/Images/chlogo.png", "/Images/chlogo.png"],
},
];

const images = ["/Images/lan1.jpg", "/Images/lan2.jpg", "/Images/lan3.jpg"];
</script>
Binary file added public/images/lan1.jpg
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 public/images/lan2.jpg
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 public/images/lan3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.