Skip to content
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

feat(gallery): unlock gallery information panel #630

Merged
merged 2 commits into from May 1, 2018
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
10 changes: 10 additions & 0 deletions _config.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,16 @@ hanabi:
# You can also use Front-Matter `license` to override this setting.
license:

# Gallery Panel
# You must activate Formspree before using
gallery:
panel_show: false
left_show: true
left_title: Introduction
left_info: This is a Example.
right_show: true
right_title: Get in touch

# ---------------------------------------------------------------
# Menu Settings
# ---------------------------------------------------------------
Expand Down
38 changes: 15 additions & 23 deletions layout/_widget/page-gallery.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -37,42 +37,33 @@
<% } %>
</div>
<!-- Footer -->
<!--
<% if(theme.gallery.panel_show === true) { %>
<footer id="footer" class="panel">
<div class="inner split">
<% if(theme.gallery.left_show === true) { %>
<div>
<section>
<h2>Magna feugiat sed adipiscing</h2>
<p>Nulla consequat, ex ut suscipit rutrum, mi dolor tincidunt erat, et scelerisque turpis ipsum eget quis orci mattis aliquet. Maecenas fringilla et ante at lorem et ipsum. Dolor nulla eu bibendum sapien. Donec non pharetra dui. Nulla consequat, ex ut suscipit rutrum, mi dolor tincidunt erat, et scelerisque turpis ipsum.</p>
<h2><%= theme.gallery.left_title %></h2>
<p><%= theme.gallery.left_info %></p>
</section>
<section>
<h2>Follow me on ...</h2>
<ul class="icons">
<li><a href="#" class="icon fa-twitter"><span class="label">Twitter</span></a></li>
<li><a href="#" class="icon fa-facebook"><span class="label">Facebook</span></a></li>
<li><a href="#" class="icon fa-instagram"><span class="label">Instagram</span></a></li>
<li><a href="#" class="icon fa-github"><span class="label">GitHub</span></a></li>
<li><a href="#" class="icon fa-dribbble"><span class="label">Dribbble</span></a></li>
<li><a href="#" class="icon fa-linkedin"><span class="label">LinkedIn</span></a></li>
<li><a href="#" class="icon fa-telegram"><span class="label">Telegram</span></a></li>
</ul>
</section>
<p class="copyright">
<!-- <p class="copyright">
&copy; Design: <a href="#">Gallery</a>.
</p>
</p> -->
</div>
<% } %>
<% if(theme.gallery.right_show === true) { %>
<div>
<section>
<h2>Get in touch</h2>
<form method="post" action="#">
<h2><%= theme.gallery.right_title %></h2>
<form method="post" action="https://formspree.io/<%= theme.sns.email %>">
<div class="field half first">
<input type="text" name="name" id="name" placeholder="Name" />
<input type="text" id="Name" name="name" placeholder="Name" />
</div>
<div class="field half">
<input type="text" name="email" id="email" placeholder="Email" />
<input pattern="[a-z,0-9,@,.,-,_]*" type="text" id="Email" name="_replyto" placeholder="Email" />
</div>
<div class="field">
<textarea name="message" id="message" rows="4" placeholder="Message"></textarea>
<textarea id="note" name="message" rows="4" placeholder="Message"></textarea>
</div>
<ul class="actions">
<li><input type="submit" value="Send" class="special" /></li>
Expand All @@ -81,9 +72,10 @@
</form>
</section>
</div>
<% } %>
</div>
</footer>
-->
<% } %>

</div>

Expand Down