Files
directus/docs/home.css
Bryant Gillespie 8ab73b2c0f Add Developer Blog to /docs (#19049)
* wip

* Added guest author details

* Adding guidelines

* avatar fixes

* extract Badge component

* Add links in header and sidebar

* add lazy loading for article images

* get user_created fields

* refactor post page

* refactor blog index page

* refactor data fetching to developer_articles

* fix avatar image position

* avatar cleanup

* lint fixes

* lint fixed

* fix formatting to pass checks

* pull in blog data

* add blog tags to sidevar

* flex article card meta to align across grid

* remove unneeded date formatters

* tagging support

* fixes for blog index page

* avatar cleanup

* dev blog post metadata

* Fix edit link for blog pages

* unneeded util

* fix tags condition

* fix lint errors

* dark mode fixes

* Main Listing

* TagsIndex Styling

* ADjusted the PostMeta component, shifted component directories

* Fixed broken data file

* Prettier

* remove articles that aren't published from tags

* sort 1th and 2th

* fix sidebar conflict

* Latest posts first

* removed sort on tags pages

* Dev blog items to landing page

* Order posts on tag pages

* Linting

* Fix tag pages when article values are null

* Sidebar: remove tags, add guest author, perma-open

* Blog link on docs home

* Fix blog button on landing page

* Prettier

* Default description

* Default OG Image

* Add meta tags to docs blog post

* Prettier

* Hardcoded colors now variables

---------

Co-authored-by: Kevin Lewis <kvn@lws.io>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-08-03 15:27:18 -04:00

218 lines
2.8 KiB
CSS

.paddingBox {
padding: 0 32px;
}
.sectionContainer {
max-width: calc(var(--vp-layout-max-width) - 64px);
margin-inline: auto;
}
.sectionContainerHero {
position: relative;
}
.sectionPaddingHero {
padding-block: 108px;
}
.sectionPaddingMd {
padding-block: 60px;
}
.sectionPaddingLg {
padding-block: 120px;
}
.hero {
background: var(--vp-docs-section-bg);
color: white;
position: relative;
overflow: hidden;
}
.heroPattern {
position: absolute;
top: 40%;
left: 50%;
translate: -50% -50%;
pointer-events: none;
}
.heroPattern svg {
width: 1600px;
height: 1000px;
opacity: 0.5;
}
.heroContent {
max-width: 580px;
}
.heroContent h1 {
font-size: 60px;
font-weight: 700;
line-height: 1;
margin: 20px 0;
}
.heroContent p {
max-inline-size: 50ch;
margin: 20px 0;
}
.heroButtons {
margin: 48px 0;
}
.heroToggler {
border-radius: 12px;
width: 100%;
max-width: 590px;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 0 100px 24px rgba(255, 255, 255, 0.3);
backdrop-filter: blur(4px);
margin-left: 20px;
}
.heroToggler :global(.snippet-toggler .content-area .copy) {
display: none;
}
.flex {
display: flex;
align-items: center;
justify-content: space-between;
}
.whiteBg {
background: var(--vp-c-bg);
}
.grayBg {
background: var(--vp-c-bg-soft);
}
.header {
text-align: center;
max-width: 680px;
margin: 0 auto;
}
.header h2 {
border-top: 0;
margin: 0;
line-height: 1.2;
font-size: 38px;
}
.header p {
font-size: 20px;
line-height: 1.5;
color: var(--vp-c-text-2);
margin: 20px 0;
}
.m60 {
margin: 60px 0;
}
.grid2 {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 24px;
}
.grid3 {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
}
.grid4 {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 24px;
}
.buttonGroup {
display: inline-flex;
gap: 32px;
}
.sectionContainerSelfHosted {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 48px;
}
.headerSelfHosted {
max-width: 420px;
}
@media only screen and (min-width: 768px) {
.headerSelfHosted {
align-self: center;
text-align: unset;
}
.headingSelfHosted {
max-width: 10ch;
}
}
@media only screen and (max-width: 1200px) {
.heroToggler {
display: none;
}
.grid4 {
grid-template-columns: 1fr 1fr;
}
}
@media only screen and (max-width: 768px) {
.hero {
min-height: unset;
}
.flex {
flex-direction: column;
align-items: stretch;
}
.header h2 {
font-size: 28px;
}
.header p {
font-size: 18px;
}
.grid2,
.grid3,
.grid4 {
grid-template-columns: 1fr;
}
.sectionContainerSelfHosted {
display: block;
}
.headerSelfHosted {
text-align: center;
max-width: 680px;
margin: 0 auto;
}
.heroContent h1 {
font-size: 42px;
}
.sectionPaddingHero {
padding-block: 32px;
}
}
@media only screen and (max-width: 380px) {
.heroContent h1 {
font-size: 36px;
}
}