Skip to content

Commit

Permalink
Feat/author template (#86)
Browse files Browse the repository at this point in the history
* Auto-block Author Template & add author detail block.

* update author index.

* Fix missing header h1.

* Update author-detail.css

* author details

* Update author-detail.css

* variables

* Feature/404 (#79)

* hero

* initial commit

* errorpage

* Update hero.js

* Revert "Update hero.js"

This reverts commit 5cd8a85.

* Revert "hero"

This reverts commit 5e3525e.

---------

Co-authored-by: Bryan Stopp <[email protected]>

* Dont need author template logic any more.

* Fix a bit of the social stuff.

* Fix some minor details on author detail block.

* Styling fixes for image.

* Double method declaration?

* Empty list css file for now.

* Fix bg image for performance.

* Linting.

* Eager load profile image.

* Eager load lcp  image.

---------

Co-authored-by: Bryan Stopp <[email protected]>
Co-authored-by: Bryan Stopp <[email protected]>
  • Loading branch information
3 people authored Jan 19, 2024
1 parent 1a9d7e1 commit 99a4615
Show file tree
Hide file tree
Showing 17 changed files with 456 additions and 119 deletions.
1 change: 1 addition & 0 deletions cigaradvisor/blocks/article-list/article-list.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/** Dummy File for now **/
3 changes: 3 additions & 0 deletions cigaradvisor/blocks/article-list/article-list.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default async function decorate(block) {
block.innerHTML = '';
}
6 changes: 3 additions & 3 deletions cigaradvisor/blocks/article-teaser/article-teaser.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
}

.article-teaser.block .article-category[data-category="Cigar Makers"] {
background-color: #8e7b5c
background-color: var(--tan)
}

.article-teaser.block .article-category[data-category="Cigar News"] {
Expand Down Expand Up @@ -151,14 +151,14 @@

.article-teaser.block .article-thumbnail .article-meta {
font-size: 0;
color: #141414;
color: var(--clr-dark-gray);
}

.article-teaser.block .article-thumbnail .article-meta a {
position: relative;
z-index: 2;
text-decoration: none;
color: #141414;
color: var(--clr-dark-gray);
}

.article-teaser.block .article-thumbnail .article-meta>* {
Expand Down
2 changes: 1 addition & 1 deletion cigaradvisor/blocks/articleheader/articleheader.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ main .articleheader-container {
.articleheader.block .article-info .article-author .article-published-date {
font-family: var(--ff-opensans);
font-weight: 600;
color: #141414;
color: var(--clr-dark-gray);
font-size: 14px;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.authorcard-container {
.author-card-container {
background: url('/cigaradvisor/images/author-card/media_17501a5f7bf5b4aebcf109765ead7cb5956480cbe.png');
margin-top: 50px;
background-position: center;
Expand All @@ -9,12 +9,12 @@
margin-bottom: 40px;
}

.authorcard-wrapper::after {
.author-card-wrapper::after {
display: block;
clear: both;
}

.authorcard-wrapper {
.author-card-wrapper {
display: flex;
padding-left: 0;
padding-right: 0;
Expand All @@ -28,11 +28,11 @@
align-content: flex-start;
}

.authorcard.block {
.author-card.block {
display: flex;
}

.authorcard.block .left-column,
.author-card.block .left-column,
.right-column {
display: flex;
float: none;
Expand All @@ -42,7 +42,7 @@
padding: 10px;
}

.authorcard.block .left-column h2 {
.author-card.block .left-column h2 {
font-family: var(--ff-alfaslabone);
font-size: var(--heading-font-size-xl);
color: var(--deep-reddish-brown);
Expand All @@ -53,13 +53,13 @@
border-bottom: 30px solid;
}

.authorcard.block .left-column h2:first-child {
.author-card.block .left-column h2:first-child {
font-size: var(--heading-font-size-l);
border-bottom: none;
}


.authorcard.block .left-column p {
.author-card.block .left-column p {
font-family: var(--ff-opensans);
font-weight: var(--font-weight-semibold);
color: var(--dark-grey);
Expand All @@ -68,7 +68,7 @@
margin-top: 30px;
}

.authorcard.block .left-column .button {
.author-card.block .left-column .button {
background-color: var(--clr-black);
border: 2px solid;
font-family: var(--ff-montserrat);
Expand Down Expand Up @@ -96,26 +96,26 @@
vertical-align: middle;
}

.authorcard.block .button:hover {
.author-card.block .button:hover {
transition: .5s;
background-color: var(--subdued-gold);
border-color: var(--subdued-gold);
text-decoration: none;
}

.authorcard.block .right-column .author-wrapper {
.author-card.block .right-column .author-wrapper {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
}

.authorcard.block .author-content {
.author-card.block .author-content {
flex: 0 0 50%;
padding: 3px;
}

.authorcard.block .author-content .overlay-image {
.author-card.block .author-content .overlay-image {
margin-right: -100%;
background-image: none;
width: 100%;
Expand All @@ -126,11 +126,11 @@
height: auto;
}

.authorcard.block .author-content .overlay-image img {
.author-card.block .author-content .overlay-image img {
display: block;
}

.authorcard.block .right-column p {
.author-card.block .right-column p {
color: var(--clr-white);
text-transform: uppercase;
background-color: transparent;
Expand All @@ -139,7 +139,7 @@
cursor: default;
}

.authorcard.block .right-column p>a {
.author-card.block .right-column p>a {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
Expand All @@ -149,13 +149,13 @@
font-size: var(--body-font-size-xl);
}

.authorcard.block .right-column p>a:hover {
.author-card.block .right-column p>a:hover {
transition: .8s;
text-decoration: none;
}


.authorcard.block .overlay-image:hover::before {
.author-card.block .overlay-image:hover::before {
content: "";
position: absolute;
top: 0;
Expand All @@ -166,7 +166,7 @@
}


.authorcard.block .align-center {
.author-card.block .align-center {
position: absolute;
top: 50%;
left: 50%;
Expand All @@ -177,12 +177,12 @@
text-align: center;
}

.authorcard.block .overlay-image:hover .align-center {
.author-card.block .overlay-image:hover .align-center {
opacity: 1;
}

@media (max-width: 768px) {
.authorcard-container {
.author-card-container {
padding: 60px 10px;
background: none #ece8e3;
background-size: auto 150%;
Expand All @@ -193,16 +193,16 @@
width: 100%;
}

.authorcard.block {
.author-card.block {
flex-flow: column wrap;
width: 100%;
}

.authorcard.block .author-content {
.author-card.block .author-content {
flex: 0 0 100%;
}

.authorcard.block .left-column,
.author-card.block .left-column,
.right-column {
width: 100%;
display: flex;
Expand All @@ -212,13 +212,13 @@
padding: 0;
}

.authorcard.block .overlay-image {
.author-card.block .overlay-image {
flex: 0 0 100%;
width: 100%;
}

.authorcard.block .author-content .overlay-image img {
.author-card.block .author-content .overlay-image img {
display: block;
width: 100%;
}
}
}
Loading

0 comments on commit 99a4615

Please sign in to comment.