-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: follow me through various channels (#1360)
- Loading branch information
Showing
9 changed files
with
88 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{%- if theme.follow_me %} | ||
|
||
<div class="followme"> | ||
<p>{{ __('follow_me.welcome') }}</p> | ||
|
||
<div class="social-list"> | ||
{%- for name, value in theme.follow_me %} | ||
{%- set link = value.split('||')[0] | trim %} | ||
{%- set icon = value.split('||')[1] | trim %} | ||
|
||
<div class="social-item"> | ||
<a target="_blank" class="social-link" href="{{ link }}"> | ||
<span class="icon"> | ||
<i class="fa fa-{{ icon }}"></i> | ||
</span> | ||
|
||
<span class="label">{{ name }}</span> | ||
</a> | ||
</div> | ||
{%- endfor %} | ||
</div> | ||
</div> | ||
{%- endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.followme { | ||
align-items: center; | ||
background: $whitesmoke; | ||
border-left: 3px solid $red; | ||
color: $grey; | ||
display: flex; | ||
flex-direction: column; | ||
margin: 2em 0 1em 0; | ||
padding: 1em 1.5em; | ||
|
||
.social-list { | ||
align-items: center; | ||
display: flex; | ||
flex-wrap: wrap; | ||
|
||
.social-item { | ||
margin: 0.5em 2em; | ||
} | ||
+tablet-mobile() { | ||
.social-item { | ||
margin: 0.5em 0.75em; | ||
} | ||
} | ||
|
||
.social-link { | ||
border: none; | ||
display:inline-block; | ||
text-align: center; | ||
|
||
.icon { | ||
font-size: 1.75em; | ||
height: 1.75em; | ||
width: 1.75em; | ||
} | ||
|
||
.label { | ||
display: block; | ||
font-size: 14px; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters