finalise profile card design
This commit is contained in:
@@ -4,6 +4,12 @@
|
|||||||
<div class="cardInnerFlex">
|
<div class="cardInnerFlex">
|
||||||
<div class="cardInnerPhoto">
|
<div class="cardInnerPhoto">
|
||||||
<!-- <img alt="" :src="require(`~/assets/cards/${photo}`)" /> -->
|
<!-- <img alt="" :src="require(`~/assets/cards/${photo}`)" /> -->
|
||||||
|
<g-image
|
||||||
|
:src="require(`~/assets/cards/${photo}.png`)"
|
||||||
|
:alt="`Zdjęcie ${name}`"
|
||||||
|
v-if="photo"
|
||||||
|
width="128"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="cardInnerInfo">
|
<div class="cardInnerInfo">
|
||||||
<div class="cardInnerInfoTitle">
|
<div class="cardInnerInfoTitle">
|
||||||
@@ -15,7 +21,24 @@
|
|||||||
{{ description }}
|
{{ description }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="cardInnerInfoMeta"></div>
|
<div class="cardInnerInfoButtons">
|
||||||
|
<g-link to="/" v-if="external">
|
||||||
|
<i class="fas fa-link" />
|
||||||
|
</g-link>
|
||||||
|
<g-link to="/" v-if="steam">
|
||||||
|
<i class="fab fa-steam" />
|
||||||
|
</g-link>
|
||||||
|
<g-link to="/" v-if="github">
|
||||||
|
<i class="fab fa-github"></i>
|
||||||
|
</g-link>
|
||||||
|
<g-link to="/" v-if="facebook">
|
||||||
|
<i class="fab fa-facebook"></i>
|
||||||
|
</g-link>
|
||||||
|
<g-link to="/" v-if="discord">
|
||||||
|
<i class="fab fa-discord" />
|
||||||
|
{{ discord }}
|
||||||
|
</g-link>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -29,6 +52,11 @@ export default {
|
|||||||
nickname: String,
|
nickname: String,
|
||||||
photo: String,
|
photo: String,
|
||||||
description: String,
|
description: String,
|
||||||
|
external: String,
|
||||||
|
steam: String,
|
||||||
|
github: String,
|
||||||
|
facebook: String,
|
||||||
|
discord: String,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
@@ -41,6 +69,7 @@ export default {
|
|||||||
// padding: 1rem;
|
// padding: 1rem;
|
||||||
margin: 1rem 0.2rem;
|
margin: 1rem 0.2rem;
|
||||||
width: 49%;
|
width: 49%;
|
||||||
|
height: 8rem;
|
||||||
transition-duration: var(--trandur);
|
transition-duration: var(--trandur);
|
||||||
.cardInnerFlex {
|
.cardInnerFlex {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -51,13 +80,20 @@ export default {
|
|||||||
background-color: black;
|
background-color: black;
|
||||||
border-top-left-radius: 3px;
|
border-top-left-radius: 3px;
|
||||||
border-bottom-left-radius: 3px;
|
border-bottom-left-radius: 3px;
|
||||||
|
img {
|
||||||
|
width: 8rem;
|
||||||
|
border-top-left-radius: 3px;
|
||||||
|
border-bottom-left-radius: 3px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.cardInnerInfo {
|
.cardInnerInfo {
|
||||||
padding: 1rem;
|
padding: 0.8rem;
|
||||||
|
padding-top: 0.6rem;
|
||||||
.cardInnerInfoTitle {
|
.cardInnerInfoTitle {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: baseline;
|
align-items: baseline;
|
||||||
|
padding-bottom: 0.3rem;
|
||||||
h3 {
|
h3 {
|
||||||
margin-right: 1rem;
|
margin-right: 1rem;
|
||||||
}
|
}
|
||||||
@@ -66,11 +102,36 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.cardInnerInfoDescription {
|
.cardInnerInfoDescription {
|
||||||
// font-size: 0.8rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
.cardInnerInfoMeta {
|
.cardInnerInfoMeta {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
align-items: baseline;
|
||||||
|
color: var(--graytext);
|
||||||
|
margin-top: 0.4rem;
|
||||||
|
i {
|
||||||
|
margin-right: 0.3rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.cardInnerInfoButtons {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: right;
|
||||||
|
align-items: baseline;
|
||||||
|
margin-top: 0.6rem;
|
||||||
|
a {
|
||||||
|
color: var(--graytext);
|
||||||
|
text-decoration: inherit;
|
||||||
|
padding: 0.2rem;
|
||||||
|
margin: 0 0.2rem;
|
||||||
|
border-radius: 3px;
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
background-color: var(--red);
|
||||||
|
color: var(--black);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ html {
|
|||||||
&:hover,
|
&:hover,
|
||||||
&:focus {
|
&:focus {
|
||||||
background-color: var(--light-red);
|
background-color: var(--light-red);
|
||||||
|
outline: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
13
src/main.js
13
src/main.js
@@ -1,9 +1,14 @@
|
|||||||
// This is the main.js file. Import global CSS and scripts here.
|
// 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
|
// The Client API can be used here. Learn more: gridsome.org/docs/client-api
|
||||||
|
|
||||||
import DefaultLayout from '~/layouts/Default.vue'
|
import DefaultLayout from '~/layouts/Default.vue';
|
||||||
|
|
||||||
export default function (Vue, { router, head, isClient }) {
|
export default function(Vue, { router, head, isClient }) {
|
||||||
// Set default layout as a global component
|
head.script.push({
|
||||||
Vue.component('Layout', DefaultLayout)
|
src: 'https://kit.fontawesome.com/0b1492a165.js',
|
||||||
|
crossorigin: 'anonymous',
|
||||||
|
body: true,
|
||||||
|
});
|
||||||
|
// Set default layout as a global component
|
||||||
|
Vue.component('Layout', DefaultLayout);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,6 +13,10 @@
|
|||||||
<p style="text-align: center">
|
<p style="text-align: center">
|
||||||
Strona w trakcie rewrite-u! Zapraszamy później.
|
Strona w trakcie rewrite-u! Zapraszamy później.
|
||||||
</p>
|
</p>
|
||||||
|
<div class="header-buttons">
|
||||||
|
<g-link to="/discord">Discord</g-link>
|
||||||
|
<g-link to="/facebook">Facebook</g-link>
|
||||||
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<section>
|
<section>
|
||||||
<h2>
|
<h2>
|
||||||
@@ -20,6 +24,7 @@
|
|||||||
</h2>
|
</h2>
|
||||||
<p>
|
<p>
|
||||||
Jesteśmy społecznością - grupą ludzi - których kręcą gry. Proste, nie?
|
Jesteśmy społecznością - grupą ludzi - których kręcą gry. Proste, nie?
|
||||||
|
🎮💖
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
@@ -47,16 +52,20 @@
|
|||||||
id="jamesen"
|
id="jamesen"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
name="Jakub Mańczak"
|
name="Jakub Mańczak"
|
||||||
nickname="j4mesen"
|
nickname="jamesen"
|
||||||
photo="-"
|
photo="01"
|
||||||
description="Odpowiedzialny za software podtrzymujący Gractwo."
|
description="Wykonywacz zadań, pisacz kodu, rysownik grafik, zarządca."
|
||||||
|
external="true"
|
||||||
|
steam="true"
|
||||||
|
facebook="true"
|
||||||
|
github="true"
|
||||||
|
discord="j4mesen#1429"
|
||||||
/>
|
/>
|
||||||
<Card
|
<Card
|
||||||
id="kuolek"
|
id="kuolek"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
name="Olek Kulka"
|
name="Olek Kulka"
|
||||||
nickname="KuOlek"
|
nickname="KuOlek"
|
||||||
photo="-"
|
|
||||||
description="Reprezentant medialny."
|
description="Reprezentant medialny."
|
||||||
/>
|
/>
|
||||||
<Card
|
<Card
|
||||||
@@ -64,7 +73,6 @@
|
|||||||
tabindex="0"
|
tabindex="0"
|
||||||
name="Adam Cała"
|
name="Adam Cała"
|
||||||
nickname="Be Elephant"
|
nickname="Be Elephant"
|
||||||
photo="-"
|
|
||||||
description=""
|
description=""
|
||||||
/>
|
/>
|
||||||
<Card
|
<Card
|
||||||
@@ -72,7 +80,6 @@
|
|||||||
tabindex="0"
|
tabindex="0"
|
||||||
name="Jakub Mollin"
|
name="Jakub Mollin"
|
||||||
nickname="Mollin"
|
nickname="Mollin"
|
||||||
photo="-"
|
|
||||||
description=""
|
description=""
|
||||||
/>
|
/>
|
||||||
<Card
|
<Card
|
||||||
@@ -80,7 +87,6 @@
|
|||||||
tabindex="0"
|
tabindex="0"
|
||||||
name="Franek Cała"
|
name="Franek Cała"
|
||||||
nickname="Bavil Gravlax"
|
nickname="Bavil Gravlax"
|
||||||
photo="-"
|
|
||||||
description="Pełnoprawny członek tajemnego społeczeństwa kocyków."
|
description="Pełnoprawny członek tajemnego społeczeństwa kocyków."
|
||||||
/>
|
/>
|
||||||
<Card name="... ?" />
|
<Card name="... ?" />
|
||||||
@@ -96,8 +102,8 @@
|
|||||||
<section>
|
<section>
|
||||||
<h3>Gractwo 2020-2021</h3>
|
<h3>Gractwo 2020-2021</h3>
|
||||||
<p>
|
<p>
|
||||||
Kod dostępny na
|
Napisane i hostowane przez <a href="#jamesen">Jakuba Mańczaka</a>. Kod
|
||||||
<a href="/github" target="_blank">GitHubie</a>.
|
dostępny na <a href="/github" target="_blank">GitHubie</a>.
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
@@ -136,6 +142,15 @@ main {
|
|||||||
margin-right: 0.5rem;
|
margin-right: 0.5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.header-buttons {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
a {
|
||||||
|
margin: 0 2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
section {
|
section {
|
||||||
padding: 2rem 0 4rem;
|
padding: 2rem 0 4rem;
|
||||||
.cards {
|
.cards {
|
||||||
|
|||||||
Reference in New Issue
Block a user