Skip to content

Commit

Permalink
[Tools] Improve the design
Browse files Browse the repository at this point in the history
  • Loading branch information
renan-taranto committed Oct 4, 2023
1 parent 5a9114b commit 13fcd18
Show file tree
Hide file tree
Showing 15 changed files with 65 additions and 33 deletions.
4 changes: 2 additions & 2 deletions _data/en_US/navigation.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- name: Apps
link: /apps/
- name: Tools
link: /tools/

- name: About
link: /about/
4 changes: 2 additions & 2 deletions _data/pt_BR/navigation.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- name: Apps
link: /apps/
- name: Ferramentas
link: /tools/

- name: Sobre
link: /about/
12 changes: 0 additions & 12 deletions _includes/apps.html

This file was deleted.

2 changes: 1 addition & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="container">
<div>
<h1 class="header__title">
<span>{{ page.title }}</span>
<span>{{ page.header_content }}</span>
</h1>
</div>

Expand Down
12 changes: 12 additions & 0 deletions _includes/tools.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<div class="pure-g">
<div class="pure-u-1-1 pure-u-md-1-2">
<img src="/assets/images/tools.jpg" alt="tools" class="pure-img img--tools">
</div>
<div class="pure-u-1-1 pure-u-md-1-2">
<p>
<ul>
<li><a href="https://cron.renantaranto.com/">AWS EventBridge Cron Expressions Validator</a></li>
</ul>
</p>
</div>
</div>
13 changes: 13 additions & 0 deletions _sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,23 @@ h6 { font-size: $h6-font-size; text-transform: uppercase; letter-spacing: 0.02em
padding-bottom: 64px;
}

.visible-ml {
display: none;
}

.visible-md {
display: none;
}

@media (min-width: $breakpoint-ml) {
.hidden-ml {
display: none;
}
.visible-ml {
display: block !important;
}
}

@media (min-width: $breakpoint-md) {
.hidden-md {
display: none;
Expand Down
6 changes: 6 additions & 0 deletions _sass/_components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@
color: $color-primary;
}

.img--tools {
max-width: 300px !important;
display: block;
margin-left: auto;
}

@media (min-width: $breakpoint-sm) {
.header__title {
font-size: 84px;
Expand Down
1 change: 1 addition & 0 deletions _sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ $navigation-padding-vertical: 8px;
$navigation-border-size: 2px;
$navigation-content-margin-horizontal: 16px;

$breakpoint-ml: 425px;
$breakpoint-sm: 568px;
$breakpoint-md: 768px;
$breakpoint-xl: 1280px;
1 change: 1 addition & 0 deletions about.en_US.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: About
header_content: About
layout: prose
lang: en_US
permalink: /about/
Expand Down
1 change: 1 addition & 0 deletions about.pt_BR.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Sobre
header_content: Sobre
layout: prose
lang: pt_BR
permalink: /about/
Expand Down
8 changes: 0 additions & 8 deletions apps.en_US.html

This file was deleted.

8 changes: 0 additions & 8 deletions apps.pt_BR.html

This file was deleted.

Binary file modified assets/images/tools.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions tools.en_US.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Tools
header_content: Tools
layout: prose
lang: en_US
permalink: /tools/
---

{% include tools.html %}
17 changes: 17 additions & 0 deletions tools.pt_BR.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Ferramentas
header_content:
<span class="hidden-ml">
Ferra
<br>
mentas
</span>
<span class="visible-ml">
Ferramentas
</span>
layout: prose
lang: pt_BR
permalink: /tools/
---

{% include tools.html %}

0 comments on commit 13fcd18

Please sign in to comment.