Skip to content

Commit

Permalink
feat: better OG styles
Browse files Browse the repository at this point in the history
  • Loading branch information
designerzen committed Oct 14, 2024
1 parent dd6f2d0 commit cb1d57f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
2 changes: 1 addition & 1 deletion source/_base.pug
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ html(lang="en-GB", class=classes)
meta(property="og:title", content=name)
meta(property="og:url", content=URL)

//- Twitter
//- Twitter specific og
meta(property="twitter:image", content="./assets/icons/og-image.jpg")
meta(property="twitter:site" content="@designerzen")
//- meta(property="twitter:card" content="summary_large_image")
Expand Down
3 changes: 3 additions & 0 deletions source/assets/styles/gadgets/toast.scss
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@
z-index:-1;
position:absolute;

border: inherit;
border-top:0; // for arrow on base

// now we have a special case of when on the right hand side...
left: clamp( var(--pad, 0%), var(--triangle-x), calc(100% - var(--triangle-size) - var(--pad) ) );

Expand Down
22 changes: 12 additions & 10 deletions source/assets/styles/sections/intro.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Top section that contains the header text and loader
#intro {

// height is 100% - the margins
// min-height: calc(100% - 2 * var(--pad));
min-height: calc(100vh - 2 * var(--pad));
min-height: calc(100dvh - 2 * var(--pad));

max-width: 1080px;
max-width: var(--viewport-max-width, 1080px);

grid-gap: var(--pad);

Expand All @@ -19,12 +14,9 @@
border-radius: var(--curve);

// text-align: center;
display: grid;
flex-direction: column;
align-items: stretch;
justify-items: center;

// above the
position: relative;
z-index: 909;

Expand Down Expand Up @@ -125,8 +117,18 @@
// margin-bottom:var(--pad);
margin-top: var(--pad); //auto;
}
}

.interface #intro {

// height is 100% - the margins
// min-height: calc(100% - 2 * var(--pad));
min-height: calc(100vh - 2 * var(--pad));
min-height: calc(100dvh - 2 * var(--pad));

// layouts
display: grid;

// layouts
grid-template-areas:
"heading"
"poster"
Expand Down
4 changes: 3 additions & 1 deletion source/assets/styles/wallpapers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ html{

// add some background textures
body{
background-image: linear-gradient( rgba($col-white, 0.9),rgba($col-white, 048), rgba($col-dark, 0.2), rgba($col-dark, 0.98) );

background-image:
linear-gradient( rgba($col-white, 0.9),rgba($col-white, 048), rgba($col-dark, 0.2), rgba($col-dark, 0.98) );

// we have four layers of background
background-size: 100%,
Expand Down

0 comments on commit cb1d57f

Please sign in to comment.