Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
91300fd
Implement blog snippet system and new landing page
Cnnb01 Jul 25, 2025
d737f6a
Adding additional styling to the blog pages
Cnnb01 Jul 28, 2025
db70c24
Adding additional styling to the blog pages
Cnnb01 Jul 28, 2025
347fea9
Add email subscription form integration and responsive media queries
Cnnb01 Jul 30, 2025
a3a55ed
Removing initial media queries
Cnnb01 Aug 6, 2025
e5271ed
Adding media queries for blogs snippet page
Cnnb01 Aug 7, 2025
24924f5
Adding media queries for individual blogs display pages
Cnnb01 Aug 8, 2025
065b9f0
Debbugging a responsivity error
Cnnb01 Aug 12, 2025
8b863fd
format document
Ericgacoki Aug 6, 2025
f1a5592
add initial resp... mobile first
Ericgacoki Aug 14, 2025
4eae751
fill vh, adjust font and spacing
Ericgacoki Aug 14, 2025
9f5f6ab
add text over image
Ericgacoki Aug 14, 2025
3d560e9
adjust text/image for large screen
Ericgacoki Aug 14, 2025
10242ed
fix mystery gap
Ericgacoki Aug 14, 2025
f74f774
add css for larger screens keeping it DRY
Ericgacoki Aug 15, 2025
5dd1241
Keep updated landing page and new css
Cnnb01 Aug 15, 2025
6b35f55
Set up [slug].astro to render blog details dynamically
Cnnb01 Aug 18, 2025
4ca5a91
Adding utf-8 encoding to [slug].astro page
Cnnb01 Aug 19, 2025
565bf1e
Fixing a typescript error
Cnnb01 Aug 19, 2025
7b74943
Fix multiple issues in project
Cnnb01 Aug 22, 2025
1c36fad
add navigation links to next and previous blog
Ericgacoki Aug 22, 2025
447ed49
Merge branch 'landing_page' into links
Ericgacoki Aug 22, 2025
b32ab4e
Corrected styling that differed from the original wordpress site
Cnnb01 Sep 8, 2025
e36c150
add link to blog titles and fix kit form style
Ericgacoki Sep 11, 2025
a8f408a
update X logo
Ericgacoki Sep 11, 2025
ca454b8
update X logo
Ericgacoki Sep 11, 2025
0a1eee3
fix style for blogs an fix other minor issues
Ericgacoki Sep 11, 2025
92ba828
fix page titles to handle special characters
Ericgacoki Sep 11, 2025
37bb713
Merge pull request #4 from AkongaLabs/minor_fixes
Cnnb01 Sep 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion landing-panda/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
// @ts-check
import { defineConfig } from 'astro/config';

import react from '@astrojs/react';

// https://astro.build/config
export default defineConfig({});
export default defineConfig({
integrations: [react()]
});
7 changes: 6 additions & 1 deletion landing-panda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"astro": "astro"
},
"dependencies": {
"astro": "^5.9.2"
"@astrojs/react": "^4.3.0",
"@types/react": "^19.1.8",
"@types/react-dom": "^19.1.6",
"astro": "^5.9.2",
"react": "^19.1.0",
"react-dom": "^19.1.0"
}
}
Binary file added landing-panda/public/images/blog1.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added landing-panda/public/images/blog2.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added landing-panda/public/images/blog3.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added landing-panda/public/images/blog4.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
299 changes: 299 additions & 0 deletions landing-panda/public/styles/mylanding.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,299 @@
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque&display=swap');

:root {
--bg-color: #1a1f2e;
--text-color: #e2e8f0;
--font-family:'Bricolage Grotesque', sans-serif;
--blue-color:#7091ff;
--lblue-color:#538cd3;
}
/* general */
html {
background-color: var(--bg-color);
color: var(--text-color);
}
body {
font-family: var(--font-family);
}

/* body content */
div{
/* border: 1px solid white; */
}

.container{
display: flex;
flex-direction: row;
height: auto;
padding: 0 15px;

}
/* container 1 */
.content{
display: flex;
flex-direction: column;
justify-content: center;
padding-left: 60px;
align-content: left;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Invalid value left for align-content – rule is ignored

align-content only accepts values such as flex-start, flex-end, center, space-between, etc. Because left is not valid, the declaration is dropped and the layout may not behave as intended.

-    align-content: left;
+    /* Align items to the start of the cross-axis */
+    align-content: flex-start;
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
justify-content: center;
padding-left: 60px;
align-content: left;
justify-content: center;
padding-left: 60px;
/* Align items to the start of the cross-axis */
align-content: flex-start;
🤖 Prompt for AI Agents
In landing-panda/public/styles/mylanding.css around lines 36 to 38, the CSS
property align-content is set to an invalid value 'left', which is ignored by
browsers. Replace 'left' with a valid value such as 'flex-start' to align
content to the start of the cross axis, ensuring the layout behaves as intended.

/* padding-right: 25px; */
height: auto;
}

.first_links{
display: flex;
flex-direction: column;
font-size: 25px;
margin-top: 80px;
}

/* paragraph title */
.title{
font-size: 41px;
font-weight: 400;
}
.about{
margin-top: 100px;
padding-right: 90px;
}

.last_links{
display: flex;
flex-direction: row;
gap: 16px;
font-size: 20px;
font-weight: 700;
margin-top: 130px;
}

/* container 2: image */
.image_container{
width: auto;
height: auto;
}
.header_image{
margin-top: 0px;
width: 700px;
height: 710px;
border-radius: 4px;
}

/* all links */
a,
a:visited,
a:hover,
a:active,
a:focus {
color: white;
}


/* Blogs specific page */
.blogs_container{
/* border: 1px solid red; */
display: flex;
flex-direction: column;
margin: 10px auto;
width: 700px;
gap: 60px;
}

/* date and read more colors */
.bluecolor{
color: var(--blue-color);
}
a.readmore{
color: var(--blue-color);
text-decoration: none;
}
a.readmore:hover{
color: var(--lblue-color);
text-decoration: underline;
}

.para_space{
line-height: 25px;
}

/* blogs styling */
.blog-body {
/* border: 1px solid pink; */
display: flex;
flex-direction: column;
margin: 10px auto;
font-size: 120%;
/* align-items: center; */
justify-content: center;
background-color:var(--bg-color);
font-family: var(--font-family);
line-height: 1.6;
padding: 9px;
color:var(--text-color);
width: 710px;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Blog body width should be fluid with a max

Prevents clipping and reliance on overflow-x: hidden.

-    width: 710px;
+    width: 100%;
+    max-width: 710px;
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
width: 710px;
}
width: 100%;
max-width: 710px;
}
🤖 Prompt for AI Agents
In landing-panda/public/styles/mylanding.css around lines 137 to 138, the blog
body uses a fixed width (width: 710px) which can cause clipping and relies on
overflow-x: hidden; change this to a fluid layout by replacing the fixed width
with width: 100% and adding max-width: 710px so the content scales on small
viewports while capping at 710px on large screens; ensure any unnecessary
overflow-x: hidden is removed or reevaluated if present.

.blog-post img {
max-width: 700px; /* or whatever width you prefer */
height: auto;
display: block;
/* margin-top: 1px; */
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Images should scale with container

Use responsive image sizing to avoid overflow.

-.blog-post img {
-  max-width: 700px;  /* or whatever width you prefer */
-  height: auto;
-  display: block;
-  /* margin-top: 1px; */
-}
+.blog-post img {
+  display: block;
+  max-width: 100%;
+  width: 100%;
+  height: auto;
+}
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
.blog-post img {
max-width: 700px; /* or whatever width you prefer */
height: auto;
display: block;
/* margin-top: 1px; */
}
.blog-post img {
display: block;
max-width: 100%;
width: 100%;
height: auto;
}
🤖 Prompt for AI Agents
In landing-panda/public/styles/mylanding.css around lines 139 to 144, the
.blog-post img rule uses a fixed max-width which can still overflow on smaller
containers; change it to be responsive by setting width: 100% and max-width:
700px with height: auto (keep display: block) so images scale down with their
container while capping their maximum size.

.blog-post title{
align-content: center;
align-self: center;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Selector does nothing – title is not a valid HTML element

If you intended to target a .title class inside .blog-post, the selector needs a dot; otherwise the rule is ignored.

-.blog-post title{
+.blog-post .title{
🤖 Prompt for AI Agents
In landing-panda/public/styles/mylanding.css around lines 136 to 139, the
selector ".blog-post title" is invalid because "title" is not an HTML element.
To fix this, change the selector to ".blog-post .title" to target elements with
the class "title" inside elements with the class "blog-post". This will ensure
the CSS rules are applied correctly.


.blog-post h1,h2,h3 {
margin-top: 1.5rem;
margin-bottom: 0.75rem;
font-size: 40px;
font-weight: 200;
/* margin-left: 3rem; */
}
.blog-post{
/* border: 1px solid red; */
}
.blog-post p {
margin-bottom: 0.5rem;
}

.blog-meta {
display: flex;
gap: 1rem;
font-size: 0.9rem;
margin-top: 0.5rem;
margin-bottom: 1.5rem;
}

.blog-post a {
color: inherit;
text-decoration: underline;
}

.blog-post blockquote {
border-left: 2px solid #ccc;
padding-left: 1rem;
}

/* ========== MEDIA QUERIES FOR HOMEPAGE ========== */

/* Screens up to 781px (phones + small tablets) */
@media (max-width: 781px) {
.container {
flex-direction: column;
align-items: left;
padding: 0 20px;
}

.content {
padding-left: 0;
padding-right: 0;
align-items: left;
text-align: left;
}

.about {
margin-top: 60px;
padding-right: 0;
}

.first_links {
margin-top: 40px;
font-size: 20px;
}

.last_links {
flex-direction: column;
align-items: center;
font-size: 18px;
margin-top: 60px;
}

.header_image {
width: 90%;
height: auto;
max-width: 600px;
margin-top: 30px;
}
}

/* Media Queries - Blog Snippets Page */
@media (max-width: 768px) {
.blogs_container {
padding: 1rem;
}

.first_links,
.last_links {
flex-direction: column;
align-items: left;
gap: 0.5rem;
}

.blog_card {
width: 100%;
margin-bottom: 1.5rem;
}

.blog_card h2 {
font-size: 1.2rem;
}

.blog_card p {
font-size: 1rem;
}
}

@media (max-width: 480px) {
.blogs_container {
padding: 0.5rem;
}

.blog_card h2 {
font-size: 1rem;
}

.blog_card p {
font-size: 0.9rem;
}
}

/* ==================================== */
/* Media Queries - Individual Blog Pages */
/* ==================================== */

@media (max-width: 768px) {
.blog-body {
padding: 1rem;
}

.first_links,
.last_links {
flex-direction: column;
align-items: center;
gap: 0.5rem;
}

.blog-post img {
max-width: 100%;
height: auto;
}

.blog-post h1,
.blog-post h2 {
font-size: 1.5rem;
}

.blog-post p {
font-size: 1rem;
}
}

@media (max-width: 480px) {
.blog-post h1,
.blog-post h2 {
font-size: 1.2rem;
}

.blog-post p {
font-size: 0.95rem;
}
}
21 changes: 21 additions & 0 deletions landing-panda/src/components/BlogCard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import '../../public/styles/mylanding.css'

type BlogCardProps = {
title: string;
date: string;
snippet: string;
link: string;
};

const BlogCard = ({ title, date, snippet, link }: BlogCardProps) => {
return (
<div>
<p className="bluecolor" >{date}</p>
<h1><a href={link}>{title}</a></h1>
<p className="para_space">{snippet}</p>
<a className="bluecolor readmore" href={link}>Read more→</a>
</div>
);
};

export default BlogCard;
Loading
Loading