more styling on home page

Changed files
+21 -9
src
components
pages
styles
+1 -2
src/components/Base.astro
··· 34 <meta property="og:description" content={graph.description} /> 35 <meta 36 property="og:url" 37 - content= 38 - {new URL(Astro.url.pathname.toString(), Astro.site)} 39 /> 40 <meta property="og:type" content={graph.type ?? "website"} /> 41 <meta property="og:image" content={banner} />
··· 34 <meta property="og:description" content={graph.description} /> 35 <meta 36 property="og:url" 37 + content={new URL(Astro.url.pathname.toString(), Astro.site)} 38 /> 39 <meta property="og:type" content={graph.type ?? "website"} /> 40 <meta property="og:image" content={banner} />
-4
src/components/BlogPost.astro
··· 18 margin-bottom: 13px; 19 } 20 21 - a:last-child { 22 - margin-bottom: 0; 23 - } 24 - 25 article { 26 flex: 1 1; 27 padding: 13px 15px;
··· 18 margin-bottom: 13px; 19 } 20 21 article { 22 flex: 1 1; 23 padding: 13px 15px;
+9 -3
src/pages/home.astro
··· 30 <img src="/img/sprites/sunfl1.png" alt="" /> 31 </div> 32 <div id="blog" class="bwbox"> 33 - <h2>Latest blog post</h2> 34 <BlogPost 35 url={`/blog/${post[0].id}`} 36 title={post[0].data.title} 37 time={`${post[0].data.pub.getFullYear()}-${post[0].data.pub.getMonth() + 1}-${post[0].data.pub.getDate()}`} 38 /> 39 - <a href="/blog">View all posts</a> 40 - <a href="/rss.xml">RSS feed</a> 41 </div> 42 </main> 43 </div> ··· 62 .grid { 63 display: grid; 64 grid-template-columns: repeat(4, 1fr); 65 } 66 67 @media (max-width: 86ch) {
··· 30 <img src="/img/sprites/sunfl1.png" alt="" /> 31 </div> 32 <div id="blog" class="bwbox"> 33 + <h2 class="center">Latest blog post</h2> 34 <BlogPost 35 url={`/blog/${post[0].id}`} 36 title={post[0].data.title} 37 time={`${post[0].data.pub.getFullYear()}-${post[0].data.pub.getMonth() + 1}-${post[0].data.pub.getDate()}`} 38 /> 39 + <div class="center"> 40 + <a href="/blog" class="button">::ALL_POSTS::</a> 41 + <a href="/rss.xml" class="button">::RSS_FEED::</a> 42 + </div> 43 </div> 44 </main> 45 </div> ··· 64 .grid { 65 display: grid; 66 grid-template-columns: repeat(4, 1fr); 67 + } 68 + 69 + .button { 70 + margin-bottom: 13px; 71 } 72 73 @media (max-width: 86ch) {
+11
src/styles/main.css
··· 80 font-family: barcodetext; 81 } 82 83 @font-face { 84 font-family: barcodetext; 85 src: url("/fonts/LibreBarcode39ExtendedText-Regular.woff");
··· 80 font-family: barcodetext; 81 } 82 83 + .button { 84 + display: inline-block; 85 + color: var(--yellow); 86 + border: 10px double; 87 + padding: 4px 6px; 88 + } 89 + 90 + a.button { 91 + text-decoration: none; 92 + } 93 + 94 @font-face { 95 font-family: barcodetext; 96 src: url("/fonts/LibreBarcode39ExtendedText-Regular.woff");