Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

modulate: footer — improving admin job #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Sep 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions src/_data/footer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"quote": "Belajar untuk menikmati sesuatu yang membuat diri-mu bosan",
"brand" : {
"title": "EmptyWork",
"svg" : "logo.njk"
},
"sublinks": [
{
"linkTo": "/blog",
"linkName": "Blog"
},
{
"linkTo": "/contact",
"linkName": "Contact"
},
{
"linkTo": "/multimedia",
"linkName": "Multimedia"
}
]
}
4 changes: 4 additions & 0 deletions src/_data/link.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"website": "https://emptywork.my.id",
"github": "https://github.com/EmptyWork"
}
5 changes: 5 additions & 0 deletions src/_includes/components/svg/logo.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg" area-label="EmptyWork's Logo">
<path d="M11.65 8.42634L14.8715 5.20767L18.1667 8.50567V14.2517L14.7667 17.6517V10.1178L11.65 13.2345V15.1017L8.24998 18.5017V16.6345L7.39998 17.4845V12.6763L8.24998 11.8263V7.00117L11.65 3.60117V8.42634Z"/>
<path d="M7.23 17.6573L7.4 17.4845V19.3517L4 22.7517V5.18501H7.4V12.6763L4.82733 15.2518L7.23 17.6573Z"/>
<path d="M14.472 0L21 6.52801V11.3362L18.1667 8.50284V5.18501H14.8913L14.8715 5.20484L12.0665 2.40267L14.472 0Z"/>
</svg>
35 changes: 12 additions & 23 deletions src/_includes/sections/footer.njk
Original file line number Diff line number Diff line change
@@ -1,42 +1,31 @@
<footer class="footer t-all">
<div class="footer-container">
<div class="footer-top">
<q>Belajar untuk menikmati sesuatu yang membuat diri-mu bosan</q>
<q>{{ footer.quote }}</q>
</div>
<div class="footer-bottom">
<a class="brand" href="/">
<div class="brand-logo">
<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg" area-label="EmptyWork's Logo">
<path d="M11.65 8.42634L14.8715 5.20767L18.1667 8.50567V14.2517L14.7667 17.6517V10.1178L11.65 13.2345V15.1017L8.24998 18.5017V16.6345L7.39998 17.4845V12.6763L8.24998 11.8263V7.00117L11.65 3.60117V8.42634Z"/>
<path d="M7.23 17.6573L7.4 17.4845V19.3517L4 22.7517V5.18501H7.4V12.6763L4.82733 15.2518L7.23 17.6573Z"/>
<path d="M14.472 0L21 6.52801V11.3362L18.1667 8.50284V5.18501H14.8913L14.8715 5.20484L12.0665 2.40267L14.472 0Z"/>
</svg>
{% include 'components/svg/' + footer.brand.svg %}
</div>
<h2 class="brand-title">EmptyWork</h2>
<h2 class="brand-title">{{ footer.brand.title }}</h2>
</a>
<p>Made and Design by
<a href="https://github.com/EmptyWork" rel="noopener noreferrer" target="_blank">
<a href="{{ link.github }}" rel="noopener noreferrer" target="_blank">
<mark class="highlight">EmptyWork</mark>
<span class="new-tab-warning"> Open a new tab </span>
</a>
</p>
<p>
Copyright &copy; 2020 - All Rights Reversed |
<a href="/blog">
<mark class="highlight" >
Blog
</mark>
</a> —
<a href="/contact">
<mark class="highlight">
Contact
</mark>
</a> —
<a href="/multimedia">
<mark class="highlight">
Multimedia
</mark>
</a>
{%- for sublink in footer.sublinks -%}
<a href="{{ sublink.linkTo }}">
<mark class="highlight">{{ sublink.linkName }}</mark>
</a>
{% if loop.index < footer.sublinks | length %}
{% endif %}
{%- endfor -%}
</p>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/_includes/sections/header.njk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</span>
</p>
<div>
<a href="https://github.com/EmptyWork" class="title-link" target="_blank" rel="noopener noreferrer ">
<a href="{{ link.github }}" class="title-link" target="_blank" rel="noopener noreferrer ">
<h1 id="titletext" class="title-text">/EmptyWork</h1>
<span class="new-tab-warning"> Open a new tab </span>
</a>
Expand Down Expand Up @@ -95,7 +95,7 @@
<p>Workspace: emptywork-javascript</p>
</div>
</div>
<a class="status-card-button" href="https://github.com/EmptyWork" rel="noreferrer noopener" target="_blank">
<a class="status-card-button" href="{{ link.github }}" rel="noreferrer noopener" target="_blank">
View Github
<span class="new-tab-warning"> Open a new tab </span>
</a>
Expand All @@ -122,7 +122,7 @@
</a>
</li>
<li data-animation="left-show" data-delay="4">
<a href="https://github.com/EmptyWork/emptywork.github.io" aria-label="Link to this website Github repo" target="_blank" rel="noopener noreferrer" class="title-action secondary">
<a href="{{ link.github }}/emptywork.github.io" aria-label="Link to this website Github repo" target="_blank" rel="noopener noreferrer" class="title-action secondary">
<svg fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<path fill-rule="evenodd" d="M12.316 3.051a1 1 0 01.633 1.265l-4 12a1 1 0 11-1.898-.632l4-12a1 1 0 011.265-.633zM5.707 6.293a1 1 0 010 1.414L3.414 10l2.293 2.293a1 1 0 11-1.414 1.414l-3-3a1 1 0 010-1.414l3-3a1 1 0 011.414 0zm8.586 0a1 1 0 011.414 0l3 3a1 1 0 010 1.414l-3 3a1 1 0 11-1.414-1.414L16.586 10l-2.293-2.293a1 1 0 010-1.414z"
clip-rule="evenodd" ></path>
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/sections/partof.njk
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</span>
</article>
</section>
<a href="https://github.com/EmptyWork" target="_blank" rel="noopener noreferrer" class="part-of-more" data-animation="right-show">
<a href="{{ link.github }}" target="_blank" rel="noopener noreferrer" class="part-of-more" data-animation="right-show">
See more in Github...
<span class="new-tab-warning"> Open a new tab </span>
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/sections/work.njk
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{% include 'components/snippets/project.njk' %}
{%- endfor -%}
{% if lengthProjects > 3 %}
<a href="https://github.com/EmptyWork" target="_blank" rel="noopener noreferrer" class="section-more">
<a href="{{ link.github }}" target="_blank" rel="noopener noreferrer" class="section-more">
See more in Github...
<span class="new-tab-warning"> Open a new tab </span>
</a>
Expand Down