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 11 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
79 changes: 79 additions & 0 deletions components/ImageScroll.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<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>
<input id="count" type="number" :value="images.length" />
</div>
</div>
</template>

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

defineProps<Props>();
</script>

<style lang="scss" scoped>
:root {
--end-translate: 0;
}

//how much scroll, should scale with # of images, 100% is width of 1 image
@keyframes scroll {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-300%);
}
}

.container {
display: flex;
flex-direction: row;
justify-content: left;
overflow-x: auto;
counter-reset: c 0;
height: 80%;
z-index: 2;
}
.container .image_container {
animation: scroll 35s linear infinite; //animation time, should scale with # of images
counter-increment: c 1;
}

// pause scroll on hover
// .container:hover .image_container {
// animation-play-state: paused;
// }

::-webkit-scrollbar {
height: 0;
}

.image_scroller_title {
display: flex;
position: absolute;
padding-top: var(--indent-m);
margin-left: 50%;
z-index: 1;
}

.content {
background: var(--theme-color);
flex-grow: 1;
padding: var(--indent-xl);
}
</style>
6 changes: 4 additions & 2 deletions components/TheHeader.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<template>
<nav class="header" :class="{ sticky: y > 0 }">
<NuxtImg class="header__img" src="/images/logo.png" />
<a class="header__link" href="/">
ArdyZ marked this conversation as resolved.
Show resolved Hide resolved
<NuxtImg class="header__img" src="/images/logo.png" />
</a>
<div class="header__link">
<a class="header__link" href="#">Tickets</a>
<a class="header__link" href="#">About us</a>
<a class="header__link" href="/aboutus">About us</a>
ajaggoe marked this conversation as resolved.
Show resolved Hide resolved
<a class="header__link" href="#">My Area</a>
</div>
</nav>
Expand Down
9 changes: 9 additions & 0 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,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 Expand Up @@ -54,6 +55,14 @@ a:active {
color: inherit;
}

h1 {
color: var(--theme-color-alt);
font-size: var(--font-size-xxl);
line-height: var(--line-height-xl);
font-weight: 700;
margin-top: 0;
}

h2 {
color: var(--theme-color-alt);
font-size: var(--font-size-xl);
Expand Down
38 changes: 38 additions & 0 deletions pages/aboutus.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<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.
<br /><br />
Logi is the best position by the way.
ajaggoe marked this conversation as resolved.
Show resolved Hide resolved
</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.