Skip to content

Commit 33901fe

Browse files
authored
Merge pull request #67 from BitCoisas/feat/header-add-x-link
feat(header): add X (@saopaulobitdevs) link to navigation
2 parents c990901 + 6cb1a60 commit 33901fe

File tree

5 files changed

+29
-0
lines changed

5 files changed

+29
-0
lines changed

Gemfile.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ GEM
1818
ffi (1.17.1-arm-linux-gnu)
1919
ffi (1.17.1-arm-linux-musl)
2020
ffi (1.17.1-arm64-darwin)
21+
ffi (1.17.1-x64-mingw-ucrt)
2122
ffi (1.17.1-x86-linux-gnu)
2223
ffi (1.17.1-x86-linux-musl)
2324
ffi (1.17.1-x86_64-darwin)
@@ -33,6 +34,9 @@ GEM
3334
google-protobuf (4.30.1-arm64-darwin)
3435
bigdecimal
3536
rake (>= 13)
37+
google-protobuf (4.30.1-x64-mingw-ucrt)
38+
bigdecimal
39+
rake (>= 13)
3640
google-protobuf (4.30.1-x86-linux)
3741
bigdecimal
3842
rake (>= 13)
@@ -118,6 +122,8 @@ GEM
118122
google-protobuf (~> 4.30)
119123
sass-embedded (1.86.0-riscv64-linux-musl)
120124
google-protobuf (~> 4.30)
125+
sass-embedded (1.86.0-x64-mingw-ucrt)
126+
google-protobuf (~> 4.30)
121127
sass-embedded (1.86.0-x86_64-darwin)
122128
google-protobuf (~> 4.30)
123129
sass-embedded (1.86.0-x86_64-linux-android)
@@ -146,6 +152,7 @@ PLATFORMS
146152
riscv64-linux-gnu
147153
riscv64-linux-musl
148154
ruby
155+
x64-mingw-ucrt
149156
x86-linux
150157
x86-linux-gnu
151158
x86-linux-musl

_data/settings.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ menu:
55

66
- {name: 'Eventos', url: '/events'}
77
- {name: 'Meetup', url: 'https://www.meetup.com/saopaulobitdevs', external: true}
8+
9+
social:
10+
x:
11+
url: "https://x.com/saopaulobitdevs"

_includes/header.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
<a href="{{ item.url | relative_url }}">{{ item.name }}</a>
1717
{% endif %}
1818
{% endfor %}
19+
{%- assign x = site.data.settings.social.x.url | default: 'https://x.com/saopaulobitdevs' -%}
20+
<a class="nav-social nav-x" href="{{ x }}" target="_blank" rel="noopener" aria-label="SP BitDevs no X">
21+
<span class="icon-x" aria-hidden="true"></span>
22+
</a>
1923
<button id="theme-toggle" class="theme-toggle" aria-label="Alternar tema">
2024
<svg class="sun-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
2125
<circle cx="12" cy="12" r="5"/>

assets/css/_header.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,18 @@
9696
opacity: 1;
9797
}
9898
}
99+
100+
/* === Ícone do X (Twitter) === */
101+
.icon-x {
102+
display: inline-block;
103+
width: 22px;
104+
height: 22px;
105+
background-color: currentColor;
106+
-webkit-mask: url("/public/icons/x.svg") no-repeat center / contain;
107+
mask: url("/public/icons/x.svg") no-repeat center / contain;
108+
vertical-align: middle;
109+
transform: translateY(-1px);
110+
}
111+
99112
}
100113
}

public/icons/x.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)