fix white background in projects, add screenshots to gitignore

This commit is contained in:
Christian Cueni 2019-04-16 11:16:27 +02:00
parent e9bb8844e7
commit 69c9ecafd8
2 changed files with 12 additions and 1 deletions

3
.gitignore vendored
View File

@ -42,3 +42,6 @@ server/media/
.python-version .python-version
.coverage .coverage
# Cypress screenshots
client/cypress/screenshots

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="project"> <div class="project" :class="specialContainerClass">
<div class="project__header"> <div class="project__header">
<h1 class="project__title">{{project.title}}</h1> <h1 class="project__title">{{project.title}}</h1>
<p class="project__description"> <p class="project__description">
@ -36,6 +36,10 @@
computed: { computed: {
objectives() { objectives() {
return this.project.objectives ? this.project.objectives.split('\n') : []; return this.project.objectives ? this.project.objectives.split('\n') : [];
},
specialContainerClass() {
const cls = this.project.appearance;
return [cls ? `project--${cls}` : ''];
} }
}, },
@ -73,8 +77,12 @@
<style scoped lang="scss"> <style scoped lang="scss">
@import "@/styles/_variables.scss"; @import "@/styles/_variables.scss";
@import "@/styles/_functions.scss"; @import "@/styles/_functions.scss";
@import "@/styles/_mixins.scss";
.project { .project {
@include skillbox-colors;
&__header { &__header {
padding: $large-spacing; padding: $large-spacing;
} }