From 0840cffb2342b1051d99951d96e17a6fe70c3f46 Mon Sep 17 00:00:00 2001 From: chase-manning Date: Sun, 9 Jul 2023 15:00:00 +0100 Subject: [PATCH] :rocket: add blog content --- src/components/Blog.css | 71 +++++++++++++++++++++++++++++- src/components/Blog.tsx | 97 ++++++++++++++++++++++++++++++++++++++++- 2 files changed, 165 insertions(+), 3 deletions(-) diff --git a/src/components/Blog.css b/src/components/Blog.css index 09f135c..3de5e30 100644 --- a/src/components/Blog.css +++ b/src/components/Blog.css @@ -1,5 +1,72 @@ .blog { width: 100%; - height: 100vh; - background: grey; + background: #141414; + padding: 13rem 8rem; + display: flex; + flex-direction: column; + align-items: center; +} + +.blog-header { + color: var(--primary); + font-size: 6.4rem; + font-weight: 800; + margin-bottom: 6.5rem; +} + +.blog-posts { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(41rem, 1fr)); + grid-column-gap: 2.3rem; + grid-row-gap: 7.2rem; + width: 100%; + max-width: 130rem; + margin-bottom: 6.4rem; +} + +.blog-post { + width: 100%; + height: 100%; + display: flex; + flex-direction: column; + align-items: flex-start; + overflow: hidden; + border-radius: 2.4rem; +} + +.blog-post-image { + width: 100%; +} + +.blog-post-content { + padding: 3.2rem; + display: flex; + flex-direction: column; + align-items: flex-start; + background: #1d1f22; + flex: 1; +} + +.blog-post-content-date { + background: #0f0f0f; + color: rgba(255, 255, 255, 0.5); + font-size: 1.2rem; + font-weight: 600; + padding: 0.8rem 1.2rem; + margin-bottom: 1rem; +} + +.blog-post-content-header { + color: rgba(255, 255, 255, 0.75); + font-size: 2.4rem; + font-weight: 700; + line-height: 135%; + margin-bottom: 2.4rem; +} + +.blog-post-content-description { + color: rgba(255, 255, 255, 0.45); + font-size: 2rem; + font-weight: 600; + line-height: 140%; } diff --git a/src/components/Blog.tsx b/src/components/Blog.tsx index ef57865..b125be4 100644 --- a/src/components/Blog.tsx +++ b/src/components/Blog.tsx @@ -1,10 +1,105 @@ import "./Blog.css"; import Section from "./Section"; +import blog1 from "../assets/blog/01.png"; +import blog2 from "../assets/blog/02.png"; +import blog3 from "../assets/blog/03.png"; +import blog4 from "../assets/blog/04.png"; +import blog5 from "../assets/blog/05.png"; +import blog6 from "../assets/blog/06.png"; +import Button from "./Button"; +import { MIRROR_LINK } from "../app/globals"; + +interface BlogPostType { + image: string; + date: string; + title: string; + description: string; + mirrorId: string; +} + +const blogPosts: BlogPostType[] = [ + { + image: blog1, + date: "JAN 15, 2023", + title: "uwu Labs x IROIRO: an uwu Labs Family project", + description: + "IROIRO is the 5th uwu Labs Family project! We're incredibly excited to work with their founding company CyberZ and Sashimi as their artist!", + mirrorId: "_vFRUoPS6eeV3vpRYyjdYcqW6ZGkGTaCWItxQevt_Lw", + }, + { + image: blog2, + date: "MAY 30, 2022", + title: "Introducing: uwuQuest", + description: + "uwu Quest is an interactive stamp trading game heavily inspired by rwx quest! In uwu Quest, players must collect and turn in specific amounts and types of stamps to win various prizes!", + mirrorId: "_4n9TUszNT23Eiby-vGwcaZDTjGCBWmwooMG9gLCzi0", + }, + { + image: blog3, + date: "MAY 28, 2022", + title: "Artist Megacollab: Systema Solaris", + description: + "Systema Solaris is our first Artist Megacollab, where nine Solar System themed pieces will be auctioned off on Foundation!", + mirrorId: "_R5xzweyufF3uUaFeTUr_vgmIJ--XPvaKNWA2ajUmXg", + }, + { + image: blog4, + date: "MAY 11, 2022", + title: "uwucrew x MEGAMI Partnership", + description: + "We are extremely proud to announce our partnership between uwucrew and MEGAMI!", + mirrorId: "nXDgI3RGZQezUVl2GNFy3XokrJ-F5iQeNI_P_MnPC8E", + }, + { + image: blog5, + date: "MAY 3, 2022", + title: "uwulabs x Aiko Virtual: An uwulabs family project", + description: + "Aiko Virtual joins the crew to become the 3rd uwulabs family project! They soon let uwulabs family project NFT holders claim allowlist to mint!", + mirrorId: "h3LBjG6HXiraoJXmNIa95X7pjuSEa_xxTQikQhv2ciE", + }, + { + image: blog6, + date: "MAY 3, 2022", + title: "The uwu Art License + Community Collection", + description: + "Today, uwulabs is excited to share the uwu art license. It’s designed to encourage derivative works but also respect the holder’s rights, as we believe their NFT is a representation of them!", + mirrorId: "DwrrmMYgsUT0mXsMEvbWBoLtnKcW0TRKOpwUWjDbZXg", + }, +]; + const Blog = () => { return (
-
Blog
+
+

Blog

+
+ { + // Render blog posts + blogPosts.map((post, index) => { + const { image, date, title, description, mirrorId } = post; + return ( +
+ {title} +
+

{date}

+

{title}

+

+ {description} +

+
+
+ ); + }) + } +
+
); };