56 lines
1.1 KiB
Vue
56 lines
1.1 KiB
Vue
<template>
|
|
<div class="welcome flex flex--row flex--wrap flex--center flex--center-v">
|
|
<div class="welcome__image-container col col-m-6 col-3">
|
|
<img
|
|
class="welcome__image"
|
|
src="@/assets/sebin-smug-icon.png"
|
|
alt="Sebin Avatar"
|
|
/>
|
|
</div>
|
|
<div class="welcome__headings col col-m-12 col-7">
|
|
<h1 class="welcome__main-heading">
|
|
<slot name="main"></slot>
|
|
</h1>
|
|
<h2 class="welcome__sub-heading">
|
|
<slot name="sub"></slot>
|
|
</h2>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<style lang="scss">
|
|
.welcome {
|
|
max-width: 40em;
|
|
margin: 1em auto;
|
|
|
|
&__image {
|
|
width: 100%;
|
|
border-radius: 100%;
|
|
border: 0.375em solid #fff;
|
|
box-shadow: 0.125em 0.125em 0.5em rgba(#000, 0.7);
|
|
}
|
|
|
|
&__main-heading,
|
|
&__sub-heading {
|
|
font-family: "Exo", sans-serif;
|
|
margin: 1rem 0;
|
|
text-align: center;
|
|
}
|
|
|
|
&__main-heading {
|
|
font-size: 2.125em;
|
|
font-weight: 900;
|
|
font-style: italic;
|
|
|
|
@media (min-width: 35em) {
|
|
font-size: 2.75em;
|
|
}
|
|
}
|
|
|
|
&__sub-heading {
|
|
font-size: 1em;
|
|
font-weight: 300;
|
|
font-style: italic;
|
|
}
|
|
}
|
|
</style>
|