Skip to content

Commit

Permalink
Merge pull request #58 from oAGoulart/updates
Browse files Browse the repository at this point in the history
Add projects overlay option
  • Loading branch information
oAGoulart authored Jan 18, 2021
2 parents 43d6390 + 85a33b3 commit 32484d3
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 5 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -71,7 +77,8 @@ 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
[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
Expand Down
5 changes: 5 additions & 0 deletions _layouts/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ <h1 class="title is-size-1 has-text-centered has-text-primary">{{ page.title }}<

<img src="{{ link }}" alt="{{ project.title }}">
</a>

{% if project.overlay %}
<span class="overlay {{ project.overlay.style }}">{{ project.overlay.text }}</span>
{% endif %}

</figure>
</div>

Expand Down
3 changes: 3 additions & 0 deletions _projects/Meet.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
title: Meet
link: /
image: /assets/img/meet.png
overlay:
text: Work In Progress
style: has-text-primary has-background-light
---
3 changes: 3 additions & 0 deletions _projects/Take.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
title: Take
link: /
image: /assets/img/take.png
overlay:
text: v1.4.3a
style: has-text-primary has-background-light
---
3 changes: 3 additions & 0 deletions _projects/Think.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
title: Think
link: /
image: /assets/img/think.png
overlay:
text: Pre-Release
style: has-text-primary has-background-light
---
16 changes: 14 additions & 2 deletions _sass/elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion vitrina.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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']

Expand Down

0 comments on commit 32484d3

Please sign in to comment.