From 80de6a7842ff60bfdc5d34f08e1916d5800a2c3f Mon Sep 17 00:00:00 2001
From: Augusto Goulart <26435937+oAGoulart@users.noreply.github.com>
Date: Mon, 18 Jan 2021 09:58:09 -0300
Subject: [PATCH] Add projects overlay option
---
CHANGELOG.md | 11 +++++++++--
_layouts/projects.html | 5 +++++
_projects/Meet.md | 3 +++
_projects/Take.md | 3 +++
_projects/Think.md | 3 +++
_sass/elements.scss | 16 ++++++++++++++--
package.json | 2 +-
vitrina.gemspec | 2 +-
8 files changed, 39 insertions(+), 6 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ffe53a7..e466287 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
## [Unreleased]
+## [0.3.1] - 2021-01-18
+
+### Added
+
+- Projects overlay option
+
## [0.3.0] - 2020-09-04
### Changed
@@ -71,8 +77,9 @@ All notable changes to this project will be documented in this file.
- Unnecessary files from Jekyll build/serve
-[unreleased]: https://github.com/oAGoulart/vitrina/compare/v0.3.0...HEAD
-[0.2.8]: https://github.com/oAGoulart/vitrina/releases/tag/v0.3.0
+[unreleased]: https://github.com/oAGoulart/vitrina/compare/v0.3.1...HEAD
+[0.3.1]: https://github.com/oAGoulart/vitrina/releases/tag/v0.3.1
+[0.3.0]: https://github.com/oAGoulart/vitrina/releases/tag/v0.3.0
[0.2.8]: https://github.com/oAGoulart/vitrina/releases/tag/v0.2.8
[0.2.6]: https://github.com/oAGoulart/vitrina/releases/tag/v0.2.6
[0.2.5]: https://github.com/oAGoulart/vitrina/releases/tag/v0.2.5
diff --git a/_layouts/projects.html b/_layouts/projects.html
index c30cde0..acccb59 100644
--- a/_layouts/projects.html
+++ b/_layouts/projects.html
@@ -37,6 +37,11 @@
{{ page.title }}<
+
+ {% if project.overlay %}
+ {{ project.overlay.text }}
+ {% endif %}
+
diff --git a/_projects/Meet.md b/_projects/Meet.md
index d1d6cec..9ac3c27 100644
--- a/_projects/Meet.md
+++ b/_projects/Meet.md
@@ -2,4 +2,7 @@
title: Meet
link: /
image: /assets/img/meet.png
+overlay:
+ text: Work In Progress
+ style: has-text-primary has-background-light
---
diff --git a/_projects/Take.md b/_projects/Take.md
index b5a27fd..c4b26b2 100644
--- a/_projects/Take.md
+++ b/_projects/Take.md
@@ -2,4 +2,7 @@
title: Take
link: /
image: /assets/img/take.png
+overlay:
+ text: v1.4.3a
+ style: has-text-primary has-background-light
---
diff --git a/_projects/Think.md b/_projects/Think.md
index bf94435..a5c3956 100644
--- a/_projects/Think.md
+++ b/_projects/Think.md
@@ -2,4 +2,7 @@
title: Think
link: /
image: /assets/img/think.png
+overlay:
+ text: Pre-Release
+ style: has-text-primary has-background-light
---
diff --git a/_sass/elements.scss b/_sass/elements.scss
index 693e917..ba975d1 100644
--- a/_sass/elements.scss
+++ b/_sass/elements.scss
@@ -90,6 +90,18 @@ main {
}
.projects {
+ figure {
+ .overlay {
+ background-color: $primary;
+ bottom: 1rem;
+ color: $white;
+ padding: 0 1rem 0 0.4rem;
+ position: absolute;
+ right: -0.5rem;
+ z-index: 1000;
+ }
+ }
+
.columns {
padding: 1rem;
}
@@ -99,11 +111,11 @@ main {
padding-bottom: 5rem;
}
- & > .section:nth-child(even) {
+ &>.section:nth-child(even) {
background-color: $white;
}
- & > .section:nth-child(odd) {
+ &>.section:nth-child(odd) {
background-color: $grey-lighter;
}
}
diff --git a/package.json b/package.json
index c987b45..7d79668 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "vitrina",
- "version": "0.3.0",
+ "version": "0.3.1",
"description": "A general purpose, configurable, Jekyll theme",
"main": "index.html",
"author": {
diff --git a/vitrina.gemspec b/vitrina.gemspec
index 93a1723..3bc69d7 100644
--- a/vitrina.gemspec
+++ b/vitrina.gemspec
@@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = 'vitrina'
- s.version = '0.3.0'
+ s.version = '0.3.1'
s.authors = ['Augusto Goulart']
s.email = ['josegoulart.aluno@unipampa.edu.br']