Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
54d2352
8698qakbb: managed bg-color state
Kalanzifrank1 Apr 14, 2025
b6ca14d
Add assets
TobiasHT5 Apr 17, 2025
31883ca
added images
TobiasHT5 Apr 17, 2025
546d20c
Merge branch 'main' into 8698qakbb
judeotine Apr 24, 2025
3d1bed5
Merge pull request #7 from TekTalentAfrica/8698qakbb
judeotine Apr 24, 2025
f240b2b
chore: remove bun.lockb file
Demidorn Apr 24, 2025
61d4d62
chore: add pre-commit hook to run lint-staged
Demidorn Apr 24, 2025
990487c
chore: add Prettier configuration file
Demidorn Apr 24, 2025
53bd0fc
Implement code changes to enhance functionality and improve performance
Demidorn Apr 24, 2025
8cd97a3
chore: update package.json to enhance linting and formatting setup
Demidorn Apr 24, 2025
6530f7d
chore: add GitHub Actions workflow for Prettier format check
Demidorn Apr 24, 2025
fde1e11
fix: correct typo in import statement for BrowserRouter
Demidorn Apr 24, 2025
d28419e
style: standardize code formatting across multiple files
Demidorn Apr 25, 2025
2bdb904
style: improve formatting and consistency in README.md
Demidorn Apr 25, 2025
74acd1a
fix: update pre-commit script to remove Husky headers and improve Typ…
Demidorn Apr 25, 2025
87db018
style: standardize code formatting and fix import typo in App.tsx
Demidorn Apr 25, 2025
9c27280
refactor: standardize import statements and improve code formatting a…
Demidorn Apr 25, 2025
d444978
feat: add custom color tekWhite to Tailwind configuration
Demidorn Apr 25, 2025
f7c4880
style: update Footer component styles for improved readability and co…
Demidorn Apr 25, 2025
8fe4f9f
style: update Footer component dark background color for consistency
Demidorn Apr 25, 2025
2efeb06
Revert "8698qakbb: managed bg-color state"
awath-abdat Apr 25, 2025
1dc23fc
Merge pull request #9 from TekTalentAfrica/revert-7-8698qakbb
awath-abdat Apr 25, 2025
7b006e3
Revert "Revert "8698qakbb: managed bg-color state""
awath-abdat Apr 25, 2025
740941e
Merge pull request #10 from TekTalentAfrica/revert-9-revert-7-8698qakbb
awath-abdat Apr 25, 2025
744373d
feat: Add blog functionality with dynamic routing and markdown support
Demidorn Apr 25, 2025
0445dd1
Merge branch 'main' of https://github.com/TekTalentAfrica/tektalentaf…
Demidorn Apr 25, 2025
8687f05
feat: Add WhatsApp community link to NavBar
Demidorn Apr 25, 2025
91290d9
style: Improve layout and alignment in Footer component
Demidorn Apr 25, 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
18 changes: 18 additions & 0 deletions .github/workflows/format-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Format Check
on:
pull_request:
branches:
- main
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Run Prettier
run: npx prettier --check
13 changes: 13 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh
# Skip the Husky shell script headers that will fail in v10.0.0

# Check TypeScript types
echo "🔎 Checking TypeScript types..."
npm run typecheck || {
echo "❌ TypeScript type check failed. Please fix the type errors before committing."
exit 1
}

# Run lint-staged
echo "🔍 Running lint-staged..."
npx lint-staged
10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"tabWidth": 2,
"useTabs": true,
"printWidth": 100,
"bracketSpacing": true,
"arrowParens": "avoid"
}
52 changes: 26 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<h1 align="center" style="bold">Tek Talent Africa Community Site</h1>

<p align="center">
Expand Down Expand Up @@ -40,17 +39,17 @@

## 🧰 Tech Stack

| Tech | Description |
|------|-------------|
| **React** | Frontend library for UI development |
| **TypeScript** | Typed JavaScript for better maintainability |
| **Tailwind CSS** | Utility-first, responsive styling |
| **Shadcn/UI** | Accessible, modern UI components |
| **React Router** | Routing with `HashRouter` support |
| **React Query** | Asynchronous data handling |
| **Gray Matter** | Markdown frontmatter parsing |
| **React Markdown** | Markdown content renderer |
| **Lucide Icons** | Clean and beautiful SVG icons |
| Tech | Description |
| ------------------ | ------------------------------------------- |
| **React** | Frontend library for UI development |
| **TypeScript** | Typed JavaScript for better maintainability |
| **Tailwind CSS** | Utility-first, responsive styling |
| **Shadcn/UI** | Accessible, modern UI components |
| **React Router** | Routing with `HashRouter` support |
| **React Query** | Asynchronous data handling |
| **Gray Matter** | Markdown frontmatter parsing |
| **React Markdown** | Markdown content renderer |
| **Lucide Icons** | Clean and beautiful SVG icons |

---

Expand Down Expand Up @@ -114,13 +113,13 @@ Markdown location: `content/blog/*.md`

```yaml
---
title: "Post Title"
date: "YYYY-MM-DD"
slug: "post-slug"
description: "Short summary"
author: "Author Name"
image: "url-to-image"
category: "Tech/Events/Other"
title: 'Post Title'
date: 'YYYY-MM-DD'
slug: 'post-slug'
description: 'Short summary'
author: 'Author Name'
image: 'url-to-image'
category: 'Tech/Events/Other'
---
```

Expand All @@ -130,12 +129,12 @@ Markdown location: `content/events/*.md`

```yaml
---
title: "Event Title"
date: "YYYY-MM-DD"
slug: "event-slug"
description: "Event summary"
image: "url-to-image"
location: "City, Country"
title: 'Event Title'
date: 'YYYY-MM-DD'
slug: 'event-slug'
description: 'Event summary'
image: 'url-to-image'
location: 'City, Country'
---
```

Expand Down Expand Up @@ -166,6 +165,7 @@ The site is designed for **GitHub Pages** using `HashRouter` to handle routing.
### 🛠 Build & Deploy Steps

1. **Build the Project**:

```bash
npm run build
```
Expand All @@ -181,7 +181,7 @@ name: Deploy to GitHub Pages

on:
push:
branches: [ main ]
branches: [main]

jobs:
build-and-deploy:
Expand Down
38 changes: 19 additions & 19 deletions components.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.ts",
"css": "src/index.css",
"baseColor": "slate",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
}
}
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.ts",
"css": "src/index.css",
"baseColor": "slate",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
}
}
28 changes: 20 additions & 8 deletions content/blog/test-of-the-blog.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,33 @@
---
title: "Test of the blog"
date: "2025-04-17"
slug: "test-of-the-blog"
description: "Just a test of the blog"
author: "Author"
image: "public/uploads/tektalentlogo.png"
category: "Technology"
title: 'Test of the blog'
date: '2025-04-17'
slug: 'test-of-the-blog'
description: 'Just a test of the blog'
author: 'Author'
image: 'public/uploads/tektalentlogo.png'
category: 'Technology'
---

## Overview

Our blog system is built using a static markdown-based approach, which provides several benefits including:

- Fast loading times
- Easy content management
- Version control friendly
- SEO optimized

## Content Structure

Each blog post consists of two main parts:

1. Frontmatter (Metadata)
2. Content (Markdown)

### Frontmatter

The frontmatter contains essential metadata about the blog post:

- title: The main title of the post
- date: Publication date
- description: A brief summary of the post
Expand All @@ -30,7 +37,9 @@ The frontmatter contains essential metadata about the blog post:
- slug: URL-friendly identifier

### Content

The main content is written in Markdown format, which supports:

- Headers
- Lists
- Links
Expand All @@ -39,13 +48,16 @@ The main content is written in Markdown format, which supports:
- And more...

## Technical Implementation

The system uses:

- TypeScript for type safety
- Gray-matter for parsing markdown files
- Static file generation for optimal performance

## How to Create a New Post

1. Create a new markdown file
2. Add frontmatter with required metadata
3. Write content in markdown format
4. Save the file in the appropriate directory
4. Save the file in the appropriate directory
Loading