Skip to content

Commit 81fc500

Browse files
vLuckyyyCitralFlo
andauthored
GH-121 Add skeleton for team and projects page. (#121)
* Add skeleton. Signed-off-by: Martin Sulikowski <[email protected]> * Update components/projects/Projects.tsx Co-authored-by: Michał Wojtas <[email protected]> --------- Signed-off-by: Martin Sulikowski <[email protected]> Co-authored-by: Michał Wojtas <[email protected]>
1 parent 07f0f02 commit 81fc500

File tree

2 files changed

+36
-4
lines changed

2 files changed

+36
-4
lines changed

components/projects/Projects.tsx

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import React, { useEffect, useState } from "react";
44
import SectionTitle from "@/components/SectionTitle";
55
import ProjectItem from "@/components/projects/ProjectItem";
6+
import { motion } from "framer-motion";
67

78
interface Project {
89
id: string;
@@ -22,6 +23,7 @@ export default function Projects() {
2223
const [projects, setProjects] = useState<Project[]>([]);
2324
const [loading, setLoading] = useState<boolean>(true);
2425
const [error, setError] = useState<string | null>(null);
26+
const [imageError, setImageError] = useState<boolean>(false);
2527

2628
useEffect(() => {
2729
const fetchProjects = async () => {
@@ -61,8 +63,24 @@ export default function Projects() {
6163
return (
6264
<section id="projects">
6365
<div className="mx-auto max-w-screen-xl px-4 py-16">
64-
<div className="flex h-64 items-center justify-center">
65-
<div className="text-xl">Loading projects...</div>
66+
<SectionTitle
67+
title="Our project"
68+
description="Below you will find a list of our projects."
69+
/>
70+
<div className="lg:alternate mt-8 space-y-8 lg:mt-12">
71+
{[...Array(3)].map((_, index) => (
72+
<div key={index} className="animate-pulse">
73+
<div className="flex flex-col lg:flex-row lg:items-center lg:space-x-8">
74+
<div className="h-64 w-full rounded-lg bg-gray-200 dark:bg-gray-700 lg:w-1/2"></div>
75+
<div className="mt-4 w-full lg:mt-0 lg:w-1/2">
76+
<div className="mb-4 h-8 w-3/4 rounded bg-gray-200 dark:bg-gray-700"></div>
77+
<div className="mb-6 h-4 w-full rounded bg-gray-200 dark:bg-gray-700"></div>
78+
<div className="h-4 w-full rounded bg-gray-200 dark:bg-gray-700"></div>
79+
<div className="mt-8 h-10 w-40 rounded bg-gray-200 dark:bg-gray-700"></div>
80+
</div>
81+
</div>
82+
</div>
83+
))}
6684
</div>
6785
</div>
6886
</section>

components/team/Team.tsx

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,22 @@ export default function Team() {
8989
return (
9090
<section id="team">
9191
<div className="mx-auto max-w-screen-xl px-4 py-16">
92-
<div className="flex h-64 items-center justify-center">
93-
<div className="text-xl">Loading team data...</div>
92+
<SectionTitle
93+
title="Our Team"
94+
description="EternalCodeTeam is a dedicated group of creative programmers who work on unique open source projects."
95+
/>
96+
<div className="mt-8 grid grid-cols-1 gap-8 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4">
97+
{[...Array(8)].map((_, index) => (
98+
<div key={index} className="animate-pulse">
99+
<div className="mx-auto mb-4 h-36 w-36 rounded-full bg-gray-200 dark:bg-gray-700"></div>
100+
<div className="mb-2 h-6 w-3/4 rounded bg-gray-200 dark:bg-gray-700 mx-auto"></div>
101+
<div className="mb-4 h-4 w-1/2 rounded bg-gray-200 dark:bg-gray-700 mx-auto"></div>
102+
<div className="mt-4 flex justify-center space-x-4">
103+
<div className="h-6 w-6 rounded bg-gray-200 dark:bg-gray-700"></div>
104+
<div className="h-6 w-6 rounded bg-gray-200 dark:bg-gray-700"></div>
105+
</div>
106+
</div>
107+
))}
94108
</div>
95109
</div>
96110
</section>

0 commit comments

Comments
 (0)