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

chore: char page #237

Merged
merged 9 commits into from
Aug 27, 2024
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
1 change: 1 addition & 0 deletions apps/website/app/app.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<template>
<ActiveStreamBanner />
<MainHeader />
<main>
<nuxt-page />
Expand Down
1 change: 1 addition & 0 deletions apps/website/app/assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ body {

h1,
h2,
h3,
p,
pre {
margin: 0;
Expand Down
Binary file added apps/website/app/assets/img/background-green.webp
Binary file not shown.
Binary file added apps/website/app/assets/img/icons/coupon/128.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/website/app/assets/img/icons/coupon/16.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/website/app/assets/img/icons/coupon/256.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/website/app/assets/img/icons/coupon/32.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/website/app/assets/img/icons/coupon/64.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/website/app/assets/img/icons/mana/16.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/website/app/assets/img/icons/mana/32.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/website/app/assets/img/icons/mana/64.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/website/app/assets/img/shop/block-1.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/website/app/assets/img/shop/block-2.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/website/app/assets/img/shop/block-3.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/website/app/assets/img/shop/block-4.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/website/app/assets/img/shop/block-5.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/website/app/assets/img/wagon-full.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions apps/website/app/components/ActiveStreamBanner.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<template>
<a v-if="isStreaming" href="https://twitch.tv/hmbanan666" target="_blank">
<div class="streaming-banner">
<div class="message">hmbanan666 сейчас стримит. Присоединяйся к движу. Не забудь забрать купон!</div>
</div>
</a>
</template>

<script setup lang="ts">
const { data: services } = await useFetch('/api/twitch/status')
const isStreaming = computed(() => services.value?.some((s) => s.service === 'HMBANAN666_TWITCH' && s.status === 'RUNNING'))
</script>

<style scoped>
a {
text-decoration: none;

&:hover {
text-decoration: none;
}
}

.streaming-banner {
width: 100%;
min-height: 4em;
padding: 0.5em 0.5em;
background-color: var(--violet-9);
display: flex;
justify-content: center;
align-items: center;
transition: 0.2s all;

&:hover {
opacity: 0.85;
padding: 1.75em 0.5em;
}

.message {
color: var(--violet-1);
text-align: center;
}
}
</style>
2 changes: 1 addition & 1 deletion apps/website/app/components/MainFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const links = [
]
</script>

<style>
<style scoped>
footer {
display: flex;
flex-direction: column;
Expand Down
139 changes: 139 additions & 0 deletions apps/website/app/pages/about/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
<template>
<section class="hero">
<h1>
Об игре
</h1>
<h2>Фундамент уже готов. <br>Идет большой процесс проработки деталей и создания основного геймплея.</h2>
<h3 class="mt-4">
Ориентир - конец лета 2024.
</h3>
</section>

<section class="game-info">
<div class="block bg-paper">
<div class="header">
<h3>Необычный input</h3>
</div>
<div class="info">
<p>
Для создания юнита и выполнения разнообразных действий в игре требуется писать команды в Twitch чате.
Например, написав команду "!рубить", юнит начнет рубить ближайшее дерево.
</p>
</div>
</div>
<div class="block bg-paper">
<div class="header">
<h3>Генерируемые локации</h3>
</div>
<div class="info">
<p>
Путешествуя в открытом мире, игроки встречают уникальные места. Все благодаря динамичной генерации
чанков и глубокой работе с текстурами. Нет заранее созданной игровой карты.
</p>
</div>
</div>
<div class="block bg-paper">
<div class="header">
<h3>Квесты</h3>
</div>
<div class="info">
<p>
Основные модификаторы игры. Активные квесты меняют доступные команды для игроков. Движение Машины также
зависит от главного активного задания.
</p>
</div>
</div>
</section>

<div class="wagon-block">
<div class="wagon">
<img src="~/assets/img/wagon-full.png" alt="">
</div>
</div>

<section class="thanks">
<h3 class="mb-2">
Благодарности от hmbanan666
</h3>
<p>
Спасибо моим зрителям: <a href="/p/sava5621">sava5621</a> за вкусные шавухи, <a href="/p/bezsovesty">BezSovesty</a> за помощь на
старте, <a href="/p/flack_zombi">flack_zombi</a> за упорство в рубке деревьев, <a href="/p/player_mmcm">player_mmcm</a> за первые тесты Дополнения, <a href="/p/a_hywax">a_hywax</a> за помощь с open source, <a href="/p/peregonstream">PeregonStream</a> и <a href="/p/siberiacancode">siberiacancode</a> за крутые рейды.
Спасибо <a href="/p/tozikab_">tozikab_</a>, <a href="/p/6alt1ca">6alt1ca</a>, <a href="/p/derailon">derailon</a>, <a href="/p/sloghniy">sloghniy</a>, <a href="/p/man0ol">MaN0ol</a>, <a href="/p/do_oy">dO_Oy</a>, <a href="/p/vombatdrago">VombatDrago</a>,
<a href="/p/sleeplessness8">sleeplessness8</a>.
<br>Вы все крутые!
</p>
</section>
</template>

<style scoped>
.game-info {
padding-top: 2em;
padding-bottom: 4em;
max-width: 64em;
display: grid;
grid-template-columns: repeat(1, 1fr);
gap: 1em;
}

@media (min-width: 620px) {
.game-info {
grid-template-columns: repeat(2, 1fr);
}
}

@media (min-width: 1020px) {
.game-info {
grid-template-columns: repeat(3, 1fr);
}
}

.game-info .block {
border: 3px solid var(--color-border);
}

.block .header {
padding: 1.2em 1em;
color: var(--color-background);
background: var(--color-bg-accent-1);
}

.block .info {
padding: 1em 1em;
}

.block .info p {
font-weight: 500;
}

.mb-2 {
margin-bottom: 0.5em;
}

.mt-4 {
margin-top: 1.5em;
}

.wagon-block {
width: 100%;
margin: 2em 0;
padding: 4em 0;
background-image: url(~/assets/img/background-green.webp);
}

.wagon {
margin: 0 auto;
width: fit-content;
text-align: center;
}

.wagon img {
width: 60vw;
max-width: fit-content;
}

.thanks {
a {
font-weight: 600;
}
}
</style>
Loading
Loading