Skip to content

Commit

Permalink
new: Add Portraits page
Browse files Browse the repository at this point in the history
  • Loading branch information
goshatch committed Oct 22, 2022
1 parent d03b31c commit 3576400
Show file tree
Hide file tree
Showing 14 changed files with 96 additions and 13 deletions.
9 changes: 7 additions & 2 deletions _includes/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,21 @@
<i class="twa twa-triangular-ruler"></i> Projects
</a>
</li>
<li>
<a class="nav-item{% if active == 'portraits' %} active{% endif %}" href="/portraits">
<i class="twa twa-camera"></i> Portraits
</a>
</li>
<li>
<a class="nav-item{% if active == 'blog' %} active{% endif %}" href="/blog">
<i class="twa twa-pencil"></i> Blog
</a>
</li>
<li>
<!-- <li>
<a class="nav-item{% if active == 'newsletter' %} active{% endif %}" href="/newsletter">
<i class="twa twa-love-letter"></i> Newsletter
</a>
</li>
</li> -->
<li>
<a class="nav-item{% if active == 'about' %} active{% endif %}" href="/about">
<i class="twa twa-man-raising-hand-light-skin-tone"></i> About
Expand Down
3 changes: 3 additions & 0 deletions _sass/_emoji.scss
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,6 @@ licensed under MIT: https://ellekasai.mit-license.org/
.twa-moon {
background-image: url("/assets/images/icons/moon.svg");
}
.twa-camera {
background-image: url("/assets/images/icons/camera.svg");
}
40 changes: 29 additions & 11 deletions _sass/_gallery.scss
Original file line number Diff line number Diff line change
Expand Up @@ -192,17 +192,6 @@ section.gallery {
}
}

@media (min-width: 481px) and (max-width: 1025px) {
.projects-grid {
grid-template-columns: 1fr 1fr;
}
}
@media (max-width: 480px) {
.projects-grid {
grid-template-columns: 1fr;
}
}

.double-column {
width: 100%;
max-width: 100%;
Expand All @@ -227,3 +216,32 @@ section.gallery {
grid-template-columns: 1fr;
}
}

.gallery-grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-column-gap: 2rem;
grid-row-gap: 2rem;

figure {
display: block;
margin: 0px;
}
}

@media (min-width: 1500px) {
.gallery-grid {
grid-template-columns: 1fr 1fr 1fr 1fr;
}
}

@media (min-width: 481px) and (max-width: 1025px) {
.projects-grid, .gallery-grid {
grid-template-columns: 1fr 1fr;
}
}
@media (max-width: 480px) {
.projects-grid, .gallery-grid {
grid-template-columns: 1fr;
}
}
1 change: 1 addition & 0 deletions assets/images/icons/camera.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/portraits/portrait-01.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/portraits/portrait-02.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/portraits/portrait-03.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/portraits/portrait-04.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/portraits/portrait-05.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/portraits/portrait-06.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/portraits/portrait-07.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/portraits/portrait-08.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/portraits/portrait-09.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions portraits.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
layout: base
active: portraits
title: Portraits
---

<header>
<h1>Portrait commissions</h1>
</header>

<section>
<p>
Photographing people is one of my favourite things to do. I’m available for both formal and informal portrait sessions, in studio or on location.
</p>
<p>
Please email me at <a href="mailto:[email protected]?subject=Portrait sesssion">[email protected]</a> for bookings.
</p>
</section>

<hr/>

<!-- Closing the "content" div to let the gallery take up the whole page width -->
</div>

<section class="gallery-grid">
<figure>
<img src="/assets/images/portraits/portrait-01.jpg">
</figure>
<figure>
<img src="/assets/images/portraits/portrait-02.jpg">
</figure>
<figure>
<img src="/assets/images/portraits/portrait-03.jpg">
</figure>
<figure>
<img src="/assets/images/portraits/portrait-04.jpg">
</figure>
<figure>
<img src="/assets/images/portraits/portrait-05.jpg">
</figure>
<figure>
<img src="/assets/images/portraits/portrait-06.jpg">
</figure>
<figure>
<img src="/assets/images/portraits/portrait-07.jpg">
</figure>
<figure>
<img src="/assets/images/portraits/portrait-08.jpg">
</figure>
<figure>
<img src="/assets/images/portraits/portrait-09.jpg">
</figure>
</section>

<!-- Reopening the "content" div again for the followup (footer, etc) -->
<div class="content">

0 comments on commit 3576400

Please sign in to comment.