<template> <div class="home"> <div class="padded"> <Content custom/> </div> <div class="footer" v-if="data.footer"> {{ data.footer }} - <a href="/contacts">Contact us</a> <br> <br> <small> Follow us on <a href="https://twitter.com/fabacademany">Twitter</a> | <a href="https://instagram.com/fabacademany">Instagram</a> | <a href="https://facebook.com/fabacademany">Facebook</a> | <a href="https://www.youtube.com/channel/UCzjiE8opj7d1uHTLr-3vj1A/featured">YouTube</a> </small> <br> <br> <Sponsors :sponsors="data.sponsors"/> </div> </div> </template> <script> import NavLink from "./NavLink.vue"; import Tweets from "../components/Tweets.vue"; import Testimonial from "../components/Testimonial.vue"; import Sponsors from "../components/Sponsors.vue"; export default { components: { NavLink, Tweets }, computed: { data() { return this.$page.frontmatter; }, actionLink() { return { link: this.data.actionLink, text: this.data.actionText }; } } }; </script> <style lang="stylus"> @import './styles/config.styl'; .home { .padded { padding-left: 2rem; padding-right: 2rem; max-width: 960px; margin: 0px auto; } .hero { text-align: center; padding: $navbarHeight 0 0; background: url('/banner-FAC2019-website_2-1170x500.jpg'); background-repeat: no-repeat; background-size: cover; height: 300px; img { width: 100%; // max-height: 280px; display: block; margin: 3rem auto 1.5rem; } h1 { font-size: 3rem; } h1, .description, .action { margin: 1.8rem auto; } h1 { margin-top: 1em; color: white; } .description { max-width: 35rem; font-size: 1.8rem; font-weight: bold; text-transform: uppercase; line-height: 1.3; color: #000033; } .action-button { display: inline-block; font-size: 1.2rem; color: #fff; background-color: $accentColor; padding: 0.8rem 1.6rem; border-radius: 4px; transition: background-color 0.1s ease; box-sizing: border-box; border-bottom: 1px solid darken($accentColor, 10%); &:hover { background-color: lighten($accentColor, 10%); } } } .socialmedia { display: flex; flex-wrap: wrap; align-items: 'flex-start'; align-content: center; justify-content: 'space-around'; .header { width: 100%; text-align: center; font-size: 24px; padding-top: 32px; padding-bottom: 32px; } .tweets { margin: 0 auto; flex-grow: 1; padding-right: 32px; } .testimonial { // border: 1px solid red; // text-align: right; flex-grow: 2; } } .features { //border-bottom: 1px solid $borderColor; padding: 1.2rem 0; margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: flex-start; align-content: stretch; justify-content: space-between; } .feature { flex-grow: 1; flex-basis: 30%; max-width: 30%; h2 { font-size: 1.4rem; font-weight: 500; border-bottom: none; padding-bottom: 0; color: lighten($textColor, 10%); } p { color: lighten($textColor, 25%); } } .footer { padding: 2.5rem; border-top: 1px solid $borderColor; text-align: center; color: lighten($textColor, 25%); } } @media (max-width: $MQMobile) { .home { .features { flex-direction: column; } .feature { max-width: 100%; padding: 0 2.5rem; } } } @media (max-width: $MQMobileNarrow) { .home { .padded { padding-left: 1.5rem; padding-right: 1.5rem; } .hero { img { max-height: 210px; margin: 2rem auto 1.2rem; } h1 { font-size: 2rem; } h1, .description, .action { margin: 1.2rem auto; } h1 { margin-top: 1.8em; } .description { font-size: 1.2rem; } .action-button { font-size: 1rem; padding: 0.6rem 1.2rem; } } .feature { h2 { font-size: 1.25rem; } } } } </style>