Skip to content

Commit

Permalink
Merge pull request #135 from whitep4nth3r/add-video-page
Browse files Browse the repository at this point in the history
add video page
  • Loading branch information
whitep4nth3r authored Mar 21, 2024
2 parents 34b494a + cb56db1 commit dd7556c
Show file tree
Hide file tree
Showing 9 changed files with 247 additions and 9 deletions.
102 changes: 98 additions & 4 deletions src/_css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/_css/main.css.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions src/_includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<a href="/" class="header__navListItemLink" data-link="home">Home</a>
</li>
<li class="header__navListItem">
<a href="/about/" class="header__navListItemLink" data-link="about">
About
<a href="/video/" class="header__navListItemLink" data-link="video">
Video
</a>
</li>
<li class="header__navListItem">
Expand All @@ -24,6 +24,7 @@
<details class="header__navListDetails">
<summary class="header__navListSummary">More</summary>
<div class="header__navListMoreLinks">
<a href="/about/" class="header__navListItemLink">About</a>
<a
href="/newsletter"
target="_blank"
Expand Down
Binary file added src/_public/img/salma_on_sofa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/_public/img/this_internet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/_sass/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@

[data-active="home"] [data-link="home"],
[data-active="blog"] [data-link="blog"],
[data-active="about"] [data-link="about"] {
[data-active="video"] [data-link="video"] {
opacity: 1;
position: relative;

Expand Down Expand Up @@ -240,7 +240,7 @@
}
}

[data-active="about"] [data-link="about"] {
[data-active="video"] [data-link="video"] {
&::after {
content: var(--header-about-active-content);
bottom: 0.75rem;
Expand Down
78 changes: 78 additions & 0 deletions src/_sass/_video.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
.video {
position: relative;
aspect-ratio: 16/9;

/* address the magic numbers here, see _reset.scss */
margin-top: -8rem;

@media screen and (min-width: $global_md_breakpoint) {
margin-top: -12rem;
}
}

.video__banner {
width: 100vw;
height: 100svh;
position: relative;
left: 50%;
transform: translateX(-50%);
display: flex;
flex-direction: column;
align-items: center;
background-image: url("/.netlify/images/?url=/img/salma_on_sofa.png");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
justify-content: flex-end;
filter: contrast(1.1);

@media screen and (min-width: $global_md_breakpoint) {
justify-content: center;
}
}

.video__bannerImg {
width: 100%;
}

.video__headline {
padding: clamp(0.5rem, 1vw, 1rem);
position: absolute;
right: 0;
width: 100%;
@media screen and (min-width: $global_md_breakpoint) {
width: 50%;
}
}

.video__grid {
@include card_grid;
}

.video__gridHeader {
@include font_bold;
margin-top: 3rem;
margin-bottom: 2rem;
font-size: clamp(2.5rem, 3.5vw, 3.5rem);
line-height: 1.4;
color: var(--color-fg);
max-width: var(--post-max-width);
text-wrap: balance;
}

.video__content {
max-width: var(--post-max-width);

p {
@include font_main;
font-size: 1.125rem;
line-height: 1.75;
margin-bottom: 1rem;
color: var(--color-fg-copy);
word-break: break-word;

a {
@include link_focus;
}
}
}
1 change: 1 addition & 0 deletions src/_sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@
@import "stream-package";
@import "newsletter-signup";
@import "webring";
@import "video";
Loading

0 comments on commit dd7556c

Please sign in to comment.