From 4504f9852a8590fdfdd4fcc407a1b788332034e6 Mon Sep 17 00:00:00 2001 From: Ross Trottier Date: Fri, 28 Jun 2024 11:48:19 -0600 Subject: [PATCH] started desktop grid area --- front-page.php | 248 +++++++++++++++++++++++++------------------------ style.css | 17 ++++ 2 files changed, 142 insertions(+), 123 deletions(-) diff --git a/front-page.php b/front-page.php index be8c96a..c4b698f 100644 --- a/front-page.php +++ b/front-page.php @@ -2,137 +2,139 @@
-
-

Latest

- post_author ); - ?> - - - 5, - 'offset' => 1, - 'orderby' => 'post_date', - 'order' => 'DESC', - 'post_type' => 'post', - 'post_status' => 'publish' - ); - query_posts($post_section_two_args); - if (have_posts()) : while (have_posts()) : the_post(); - $category = get_the_category()[0]; - $author = get_userdata( $post->post_author ); - ?> - - +
+

Latest

+ post_author ); ?> -
-
- Ad Mock - -
-

Save Big On Gear at the Slowtwitch Shop >

- -
-
-
- -
-

Tech

- 1, + + + 5, + 'offset' => 1, + 'orderby' => 'post_date', + 'order' => 'DESC', + 'post_type' => 'post', + 'post_status' => 'publish' + ); + query_posts($post_section_two_args); + if (have_posts()) : while (have_posts()) : the_post(); + $category = get_the_category()[0]; + $author = get_userdata( $post->post_author ); + ?> + + +
+
+ Ad Mock + +
+

Save Big On Gear at the Slowtwitch Shop >

+ +
+
+
+ +
+

Tech

+ 1, + 'category_name' => 'Tech', + 'orderby' => 'post_date', + 'order' => 'DESC', + 'post_type' => 'post', + 'post_status' => 'publish' + ); + query_posts($post_section_three_featured_args); + if (have_posts()) : while (have_posts()) : the_post(); + $category = get_the_category()[0]; + $author = get_userdata( $post->post_author ); + ?> + + + 3, + 'offset' => 1, 'category_name' => 'Tech', 'orderby' => 'post_date', 'order' => 'DESC', 'post_type' => 'post', 'post_status' => 'publish' ); - query_posts($post_section_three_featured_args); + query_posts($post_section_two_args); if (have_posts()) : while (have_posts()) : the_post(); - $category = get_the_category()[0]; - $author = get_userdata( $post->post_author ); - ?> - - - 3, - 'offset' => 1, - 'category_name' => 'Tech', - 'orderby' => 'post_date', - 'order' => 'DESC', - 'post_type' => 'post', - 'post_status' => 'publish' - ); - query_posts($post_section_two_args); - if (have_posts()) : while (have_posts()) : the_post(); - $category = get_the_category()[0]; - $author = get_userdata( $post->post_author ); - ?> - - -
- +

Products

diff --git a/style.css b/style.css index 61be565..59563dc 100644 --- a/style.css +++ b/style.css @@ -66,6 +66,23 @@ LAYOUT grid-column: 2; } +@media (min-width: 550px) { + .st-main-grid { + grid-template-columns: minmax(1em, 1fr) minmax(500px, 1280px) minmax(1em, 1fr); + } + + .st-article-section-grid { + display: grid; + grid-template-columns: repeat(4, 1fr); + gap: 1em; + } + + .st-article-section-highlight, + .st-article-section-bottom { + grid-column: 1 / span 3; + } +} + /* ============================ SECTIONS