repo reset & gridsome init

This commit is contained in:
2021-07-31 12:30:22 +02:00
parent c285874dc4
commit 8c552ebf03
42 changed files with 6583 additions and 8816 deletions

View File

@@ -1,116 +0,0 @@
<template>
<!-- <div id="nav">
<router-link to="/">Home</router-link> |
<router-link to="/about">About</router-link>
</div> -->
<nav>
<router-link to="/" class="gractwoRoot">
<img
alt="Vue logo"
src="./assets/gractwo-smol.png"
style="height: 50px"
/>
<h1>Gractwo</h1>
</router-link>
<div>
<!-- <router-link to="/">główna</router-link> -->
<!-- <router-link to="/o-nas">o nas</router-link> -->
<router-link to="/discord" target="_blank">discord</router-link>
<router-link to="/facebook" target="_blank">facebook</router-link>
</div>
</nav>
<main></main>
<router-view />
</template>
<style lang="scss">
@import url('https://fonts.googleapis.com/css2?family=Quicksand&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Icons&display=swap');
:root {
--dark-bg: #1a1a1a;
--dark-bg2: #212121;
--dark-bg3: #313131;
--light: #c0c0c0;
}
* {
margin: 0;
}
body {
background-color: var(--dark-bg);
font-family: 'Lexend', sans-serif;
color: var(--light);
// overflow-y: scroll;
p{
font-family: 'Quicksand', sans-serif;
}
nav {
background-color: var(--dark-bg2);
display: flex;
flex-direction: row;
padding: 0.3em 1.5em;
* {
margin: 0 0.2em;
}
.gractwoRoot {
color: inherit;
text-decoration: inherit;
display: flex;
flex-direction: row;
transition-duration: 100ms;
&:focus,
&:hover {
transform: scale(1.05) rotate(2deg);
}
h1 {
font-size: 2.3rem;
letter-spacing: 0.05em;
}
}
div {
margin-left: 1rem;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
* {
transition-duration: 100ms;
text-transform: uppercase;
font-size: 1.3rem;
color: inherit;
text-decoration: none;
opacity: 0.7;
margin: 0 0.7rem;
&:focus,
&:hover {
opacity: 1;
text-decoration: underline;
transform: translate(0, -0.1em);
}
}
}
}
}
::-webkit-scrollbar {
background-color: var(--dark-bg);
&:hover {
background-color: var(--dark-bg2);
}
}
::-webkit-scrollbar-thumb {
background-color: var(--dark-bg2);
border-radius: 16px;
border: 4px solid var(--dark-bg);
&:hover {
background-color: var(--dark-bg3);
border: 4px solid var(--dark-bg2);
}
}
@media only screen and (max-width: 872px) {
.gractwoRoot {
h1 {
display: none;
}
}
}
</style>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 308 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

View File

@@ -1,62 +0,0 @@
<template>
<div class="hello">
<h1>{{ msg }}</h1>
<p>
For a guide and recipes on how to configure / customize this project,<br>
check out the
<a href="https://cli.vuejs.org" target="_blank" rel="noopener">vue-cli documentation</a>.
</p>
<h3>Installed CLI Plugins</h3>
<ul>
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel" target="_blank" rel="noopener">babel</a></li>
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-router" target="_blank" rel="noopener">router</a></li>
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint" target="_blank" rel="noopener">eslint</a></li>
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-typescript" target="_blank" rel="noopener">typescript</a></li>
</ul>
<h3>Essential Links</h3>
<ul>
<li><a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a></li>
<li><a href="https://forum.vuejs.org" target="_blank" rel="noopener">Forum</a></li>
<li><a href="https://chat.vuejs.org" target="_blank" rel="noopener">Community Chat</a></li>
<li><a href="https://twitter.com/vuejs" target="_blank" rel="noopener">Twitter</a></li>
<li><a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a></li>
</ul>
<h3>Ecosystem</h3>
<ul>
<li><a href="https://router.vuejs.org" target="_blank" rel="noopener">vue-router</a></li>
<li><a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a></li>
<li><a href="https://github.com/vuejs/vue-devtools#vue-devtools" target="_blank" rel="noopener">vue-devtools</a></li>
<li><a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener">vue-loader</a></li>
<li><a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">awesome-vue</a></li>
</ul>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
name: 'HelloWorld',
props: {
msg: String,
},
});
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
h3 {
margin: 40px 0 0;
}
ul {
list-style-type: none;
padding: 0;
}
li {
display: inline-block;
margin: 0 10px;
}
a {
color: #42b983;
}
</style>

4
src/components/README.md Normal file
View File

@@ -0,0 +1,4 @@
Add components that will be imported to Pages and Layouts to this folder.
Learn more about components here: https://gridsome.org/docs/components/
You can delete this file.

View File

@@ -1,67 +0,0 @@
<template>
<router-link :to="link" class="card" target="_blank">
<img alt="" :src="require(`../assets/spis/${photo}`)" />
<div class="card-inner">
<p class="name">{{ name }}</p>
<p class="desc">{{ desc }}</p>
</div>
</router-link>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
name: 'card',
props: {
name: String,
photo: String,
desc: String,
link: String,
},
});
</script>
<style lang="scss" scoped>
.card {
background-color: var(--dark-bg2);
display: flex;
flex-direction: row;
margin: 1rem;
border-radius: 8px;
width: 24rem;
user-select: none;
color: inherit;
text-decoration: inherit;
transition-duration: 100ms;
img {
width: 84px;
border-radius: 8px 0 0 8px;
}
.card-inner {
padding: 0.2rem;
margin-left: 0.5rem;
.name {
font-size: 1.7rem;
letter-spacing: 0.1em;
}
.meta {
opacity: 0.5;
}
}
&:focus,
&:hover {
background-color: var(--dark-bg3);
transform: scale(1.05);
}
}
@media only screen and (max-width: 872px) {
.card {
font-size: 0.8em;
width: 18rem;
img {
width: 64px;
}
}
}
</style>

View File

@@ -1,11 +0,0 @@
<template>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid meet" viewBox="0 0 640 640" width="640" height="640"><defs><path d="M131.35 206.17L67.52 411.84L76.03 508.3L120.71 526.03L158.3 510.43L234.89 437.38L320 416.1L350.5 299.08L325.67 192.7L295.18 192.7L288.09 198.37L214.33 198.37L202.98 187.02L148.37 187.02L131.35 206.17Z" id="c1KEj4xU1k"></path><path d="M93.05 411.84L97.3 493.4L119.29 504.04L146.24 496.24L220 417.52L297.3 395.53L320 313.97L299.43 288.44L252.62 292.7L238.44 320L209.01 344.47L161.84 341.63L123.55 320L93.05 411.84Z" id="ihZdDOksj"></path><path d="M450.5 204.04L485.96 179.93L528.51 179.93L580.99 250.14L585.25 301.21L602.27 345.18L607.94 425.32L588.09 478.51L559.01 487.73L528.51 476.38L474.61 428.87L359.01 433.83L336.31 414.68L361.84 327.45L353.33 233.83L368.94 209.72L450.5 204.04Z" id="e1ajrh1Ybj"></path><path d="M393.76 333.83L384.54 411.84L488.79 406.88L543.4 461.49L559.01 467.87L571.77 461.49L584.54 421.06L576.03 346.6L559.01 326.03L532.77 333.83L504.4 322.48L479.57 301.21L424.96 304.04L393.76 333.83Z" id="a5XNjHRD0B"></path></defs><g><g><g><use xlink:href="#c1KEj4xU1k" opacity="1" fill="#282828" fill-opacity="1"></use><g><use xlink:href="#c1KEj4xU1k" opacity="1" fill-opacity="0" stroke="#282828" stroke-width="1" stroke-opacity="1"></use></g></g><g><use xlink:href="#ihZdDOksj" opacity="1" fill="#1a1a1a" fill-opacity="1"></use><g><use xlink:href="#ihZdDOksj" opacity="1" fill-opacity="0" stroke="#1a1a1a" stroke-width="1" stroke-opacity="1"></use></g></g><g><use xlink:href="#e1ajrh1Ybj" opacity="1" fill="#282828" fill-opacity="1"></use><g><use xlink:href="#e1ajrh1Ybj" opacity="1" fill-opacity="0" stroke="#282828" stroke-width="1" stroke-opacity="1"></use></g></g><g><use xlink:href="#a5XNjHRD0B" opacity="1" fill="#1a1a1a" fill-opacity="1"></use><g><use xlink:href="#a5XNjHRD0B" opacity="1" fill-opacity="0" stroke="#1a1a1a" stroke-width="1" stroke-opacity="1"></use></g></g></g></g></svg>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
name: 'gractwosvg',
});
</script>

BIN
src/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

13
src/layouts/Default.vue Normal file
View File

@@ -0,0 +1,13 @@
<template>
<div>
<slot />
</div>
</template>
<static-query>
query {
metadata {
siteName
}
}
</static-query>

5
src/layouts/README.md Normal file
View File

@@ -0,0 +1,5 @@
Layout components are used to wrap pages and templates. Layouts should contain components like headers, footers or sidebars that will be used across the site.
Learn more about Layouts: https://gridsome.org/docs/layouts/
You can delete this file.

9
src/main.js Normal file
View File

@@ -0,0 +1,9 @@
// This is the main.js file. Import global CSS and scripts here.
// The Client API can be used here. Learn more: gridsome.org/docs/client-api
import DefaultLayout from '~/layouts/Default.vue'
export default function (Vue, { router, head, isClient }) {
// Set default layout as a global component
Vue.component('Layout', DefaultLayout)
}

View File

@@ -1,5 +0,0 @@
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
createApp(App).use(router).mount('#app')

11
src/pages/About.vue Normal file
View File

@@ -0,0 +1,11 @@
<template>
<p>/about</p>
</template>
<script>
export default {
metaInfo: {
title: 'about',
},
};
</script>

17
src/pages/Index.vue Normal file
View File

@@ -0,0 +1,17 @@
<template>
<div>
<p>
Strona w procesie przepisywania! 🎮 <br />
Linki /discord i /facebook nadal działają.
</p>
<p>/</p>
</div>
</template>
<script>
export default {
metaInfo: {
title: 'główna',
},
};
</script>

5
src/pages/README.md Normal file
View File

@@ -0,0 +1,5 @@
Pages are usually used for normal pages or for listing items from a GraphQL collection.
Add .vue files here to create pages. For example **About.vue** will be **site.com/about**.
Learn more about pages: https://gridsome.org/docs/pages/
You can delete this file.

View File

@@ -1,100 +0,0 @@
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';
import Home from '../views/Home.vue';
const routes: Array<RouteRecordRaw> = [
{
path: '/',
name: 'Home',
component: Home,
},
{
path: '/discord',
name: 'Discord',
alias: ['/dsc', '/dc'],
redirect: () => {
window.location.replace('https://discord.gg/NBXq95C');
return '/discord';
},
},
{
path: '/facebook',
name: 'Facebook',
alias: '/fb',
redirect: () => {
window.location.replace('https://facebook.com/groups/gractwo');
return '/facebook';
},
},
{
path: '/github',
name: 'GitHub',
alias: '/git',
redirect: () => {
window.location.replace('https://github.com/Gractwo');
return '/github';
},
},
{
path: '/j4mesen',
name: 'j4mesen',
redirect: () => {
window.location.replace('https://manczak.net');
return '/j4mesen';
},
},
{
path: '/kuolek',
name: 'kuolek',
redirect: () => {
window.location.replace(
'https://steamcommunity.com/profiles/76561198381997060'
);
return '/kuolek';
},
},
{
path: '/be-elephant',
name: 'beElephant',
redirect: () => {
window.location.replace(
'https://steamcommunity.com/profiles/76561198309722571'
);
return '/be-elephant';
},
},
{
path: '/jarooko',
name: 'jarooko',
redirect: () => {
window.location.replace('https://steamcommunity.com/id/jarooko');
return '/jarooko';
},
},
{
path: '/mollin',
name: 'mollin',
redirect: () => {
window.location.replace(
'https://steamcommunity.com/profiles/76561198264001711'
);
return '/mollin';
},
},
{
path: '/bavil-gravlax',
name: 'bavilGravlax',
redirect: () => {
window.location.replace(
'https://steamcommunity.com/profiles/76561198855251311'
);
return '/bavil-gravlax';
},
},
];
const router = createRouter({
history: createWebHistory(),
routes,
});
export default router;

6
src/shims-vue.d.ts vendored
View File

@@ -1,6 +0,0 @@
/* eslint-disable */
declare module '*.vue' {
import type { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
}

7
src/templates/README.md Normal file
View File

@@ -0,0 +1,7 @@
Templates for **GraphQL collections** should be added here.
To create a template for a collection called `WordPressPost`
create a file named `WordPressPost.vue` in this folder.
Learn more: https://gridsome.org/docs/templates/
You can delete this file.

View File

@@ -1,5 +0,0 @@
<template>
<div class="about">
<h1>This is an about page</h1>
</div>
</template>

View File

@@ -1,154 +0,0 @@
<template>
<main>
<div class="first">
<h1>Witajcie w Gractwie!</h1>
<p>
Jesteśmy społecznością - grupą ludzi - których kręcą gry. Proste, nie?
<br />
</p>
<gractwosvg class="g" />
</div>
<div class="second">
<h1>Spis Moderacji</h1>
<div class="cardContainer">
<card
name="Jakub Mańczak"
photo="j4mesen.png"
desc="j4mesen | wannabe programista"
link="/j4mesen"
/>
<card
name="Olek Kulka"
photo="olek.png"
desc="KuOlek | scooby doo stan"
link="/kuolek"
/>
<card
name="Adam Cała"
photo="adam.png"
desc="BeElephant | dosłowny słoń"
link="/be-elephant"
/>
<card
name="Jarek Kortals"
photo="jarooko.png"
desc="Jarooko | nadal tu jest?"
link="/jarooko"
/>
<card
name="Jakub Mollin"
photo="mollin.png"
desc="Mollin | resident grinder"
link="/mollin"
/>
<card
name="Franek Cała"
photo="franek.png"
desc="BavilGravlax | secret society blanket"
link="/bavil-gravlax"
/>
</div>
</div>
<div class="third">
<h1>Geneza Gractwa</h1>
<p class="textblock">
Gractwo zostało założone w 2020 roku w odpowiedzi na rozłam PGTF i na
<a href="https://youtu.be/zjedLeVGcfE">sytuację z PGTF</a> związaną.
Serwer discordowy PGTF pozostający pod kontrolą administracji Gractwa
został przeniesiony w stan przejściowy do czasu gdy decyzja o powstaniu
Gractwa została podjęta. Po tych wydarzeniach strona internetowa oraz
grupa facebookowa Gractwa zostały utworzone. Aktywność na grupie
facebookowej nigdy sie nie rozwinęła wystarczająco, by przekształcić sie
w pełnoprawną społeczność, ale serwer discord działa cały czas. Strona
internetowa służy głównie do uproszczenia linków - do Discorda i
Facebooka. <br />
<br />
Po co więc to piszę? ...Potrzebuję tekstu do zapełnienia strony. <br />
<br />
~j4mesen
</p>
</div>
<div class="fourth">
<p>
Gractwo 2020-2021.
<router-link to="/git" target="_blank">GitHub</router-link>
</p>
</div>
</main>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import gractwosvg from '@/components/gractwosvg.vue'; // @ is an alias to /src
import card from '@/components/card.vue';
export default defineComponent({
name: 'Home',
components: {
gractwosvg,
card,
},
});
</script>
<style lang="scss" scoped>
main {
padding: 3rem 8rem;
a {
color: #fb636b;
}
.g {
position: absolute;
top: 0;
right: 15%;
animation-name: logovibe;
animation-iteration-count: infinite;
animation-duration: 2s;
z-index: -10;
}
.second {
margin-top: 18rem;
.cardContainer {
display: inline-flex;
flex-wrap: wrap;
margin-right: 0.1rem;
}
}
.third {
margin-top: 2rem;
}
.fourth {
margin-top: 4rem;
}
.textblock {
padding-right: 40%;
text-align: justify;
}
}
@keyframes logovibe {
0% {
transform: rotate(5deg);
}
50% {
transform: rotate(-9deg) scale(0.9);
}
100% {
transform: rotate(5deg);
}
}
@media only screen and (max-width: 872px) {
main {
padding: 3rem 1rem;
.g {
position: absolute;
top: 8.5%;
width: 184px;
}
.textblock {
padding-right: 2%;
}
}
}
</style>