Skip to content

Commit e08b088

Browse files
committed
button
1 parent b91cd9d commit e08b088

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

_includes/components/design-btn.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
{% if include.hidden %}hidden{% endif %}
1212
{% if include.target %}target="{{ include.target }}"{% endif %}
1313
{% if include.rel %}rel="{{ include.rel }}"{% endif %}
14+
{% if include.data_umami_event %}data-umami-event="{{ include.data_umami_event }}"{% endif %}
1415
>{% if label and label != "" %}{{ label }}{% else %}{{ include.content }}{% endif %}</a>
1516
{% else %}
1617
<button
@@ -19,5 +20,6 @@
1920
{% if include.id %}id="{{ include.id }}"{% endif %}
2021
{% if include.hidden %}hidden{% endif %}
2122
{% if include.disabled %}disabled aria-disabled="true"{% endif %}
23+
{% if include.data_umami_event %}data-umami-event="{{ include.data_umami_event }}"{% endif %}
2224
>{% if label and label != "" %}{{ label }}{% else %}{{ include.content }}{% endif %}</button>
2325
{% endif %}

_includes/components/radar-nav.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,13 @@
5555
</nav>
5656

5757
<div class="radar-topbar-right">
58-
<a href="/login" class="radar-nav-link radar-nav-login" data-umami-event="Login link">Log In</a>
58+
{% include components/design-btn.html
59+
label="Log In"
60+
href="/login"
61+
class="design-btn--sm radar-nav-login"
62+
data_umami_event="Login link"
63+
%}
64+
5965
<a href="https://github.com/dotenvx/dotenvx" target="_blank" rel="noopener noreferrer" class="radar-nav-icon" aria-label="GitHub repository" data-umami-event="GitHub repository link">
6066
<svg viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
6167
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path>

assets/css/main.src.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1686,11 +1686,12 @@ html.dark .radar-brand-dark {
16861686
.radar-nav-login {
16871687
display: none;
16881688
flex-shrink: 0;
1689+
line-height: 1.2;
16891690
}
16901691

16911692
@media (min-width: 768px) {
16921693
.radar-nav-login {
1693-
display: inline-flex;
1694+
display: inline-block;
16941695
}
16951696
}
16961697

@@ -4103,6 +4104,12 @@ html.dark .design-check--danger {
41034104
width: 100%;
41044105
}
41054106

4107+
.design-btn--sm {
4108+
font-size: 0.7rem;
4109+
letter-spacing: 0.03em;
4110+
padding: 0.3rem 0.55rem;
4111+
}
4112+
41064113
.design-btn--danger {
41074114
border-color: rgba(180, 35, 24, 0.45);
41084115
color: #b42318 !important;

0 commit comments

Comments
 (0)