Skip to content

Commit

Permalink
Add the state of the word page (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenDufresne authored Nov 15, 2023
1 parent dbd5a22 commit 0704e5b
Show file tree
Hide file tree
Showing 6 changed files with 292 additions and 0 deletions.
4 changes: 4 additions & 0 deletions env/page-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,9 @@
{
"slug": "search",
"template": "page-search.html"
},
{
"slug": "state-of-the-word",
"template": "page-sotw.html"
}
]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

61 changes: 61 additions & 0 deletions source/wp-content/themes/wporg-main-2022/src/style/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,67 @@ $wporg-about-breakpoint-max: 1920px;
}
}


// Styles for the State of the Word page.
.page-template-page-sotw a {
color: #ff2b2b;
}

@media (max-width: 419px) {
.page-template-page-sotw h2 {
font-size: 60px !important;
}
}

.page-template-page-sotw .sotw-event-details-social a {
text-decoration: none;
}

.page-template-page-sotw .sotw-quote {
position: relative;
z-index: 1;
}

.page-template-page-sotw .sotw-quote > p::before {
content: "";
position: absolute;
top: -50px;
left: -40px;
width: 100px;
height: 75px;
background-image: url(../../images/sotw/quote.png);
background-size: contain;
background-repeat: no-repeat;
z-index: -1;
}

@media (min-width: 960px) {
.page-template-page-sotw .sotw-quote > p::before {
top: -100px;
left: -140px;
width: 200px;
height: 150px;
}
}

.page-template-page-sotw .sotw-heading-splash {
position: relative;
}

.page-template-page-sotw .sotw-heading-splash::before {
content: "";
position: absolute;
top: -80px;
left: -160px;
width: 420px;
height: 430px;
background-image: url(../../images/sotw/heading-splash.png);
background-size: contain;
background-repeat: no-repeat;
z-index: -1;
}


/*
* Workaround for Gutenberg CSS4 selectors on older browsers.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- wp:wporg/global-header {"backgroundColor":"black"} /-->

<!-- wp:group {"tagName":"main","layout":{"inherit":true},"className":"entry-content","style":{"spacing":{"blockGap":"0px"}}} -->
<main class="wp-block-group entry-content">
<!-- wp:pattern {"slug":"wporg-main-2022/state-of-the-word"} /-->
</main>
<!-- /wp:group -->

<!-- wp:wporg/global-footer {"backgroundColor":"black"} /-->

0 comments on commit 0704e5b

Please sign in to comment.