From 710f9106830b095c528261c080cb72cb133695a5 Mon Sep 17 00:00:00 2001 From: tigawanna Date: Sun, 15 Dec 2024 10:47:54 +0300 Subject: [PATCH 1/5] refactor: remove commented-out landing page content from HomePage component --- src/routes/-components/HomePage.tsx | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/routes/-components/HomePage.tsx b/src/routes/-components/HomePage.tsx index 5248c84..7401017 100644 --- a/src/routes/-components/HomePage.tsx +++ b/src/routes/-components/HomePage.tsx @@ -1,6 +1,5 @@ import { LandingPageNavbar } from "@/components/navigation/LandingPageNavbar"; import { HeroSection } from "./HeroSection"; -import { Link } from "@tanstack/react-router"; import RepositoriesSection from "./RepositoriesSection"; import { projects } from "@/data/projects"; @@ -13,15 +12,6 @@ export function HomePage() {
-
- {/* landing page goes here */} -

- Landing page goes here -

- - Go to Dashboard - -
From ede418b97711030884eb469b1734ea62c729742e Mon Sep 17 00:00:00 2001 From: tigawanna Date: Sun, 15 Dec 2024 12:05:59 +0300 Subject: [PATCH 2/5] re adjust footer section --- src/data/projects.ts | 2 +- {tests => src/lib/vitest}/setup.ts | 0 {tests => src/lib/vitest}/utils/index.tsx | 0 src/routes/-components/HeroSection.tsx | 14 +++++++------- src/routes/-components/HomePage.tsx | 7 +++---- .../-components/{ => footer-section}/Footer.tsx | 10 +++++----- .../{ => footer-section}/FooterCTA.tsx | 16 +++++++++------- .../RepositoriesSection.test.tsx | 4 ++-- .../{ => repos-sections}/RepositoriesSection.tsx | 0 tsconfig.app.json | 2 +- tsconfig.app.tsbuildinfo | 2 +- 11 files changed, 29 insertions(+), 28 deletions(-) rename {tests => src/lib/vitest}/setup.ts (100%) rename {tests => src/lib/vitest}/utils/index.tsx (100%) rename src/routes/-components/{ => footer-section}/Footer.tsx (82%) rename src/routes/-components/{ => footer-section}/FooterCTA.tsx (71%) rename src/routes/-components/{ => repos-sections}/RepositoriesSection.test.tsx (96%) rename src/routes/-components/{ => repos-sections}/RepositoriesSection.tsx (100%) diff --git a/src/data/projects.ts b/src/data/projects.ts index db71e34..f876dd6 100644 --- a/src/data/projects.ts +++ b/src/data/projects.ts @@ -1,4 +1,4 @@ -import { Project } from "@/routes/-components/RepositoriesSection"; +import { Project } from "@/routes/-components/repos-sections/RepositoriesSection"; export const projects: Project[] = [ { diff --git a/tests/setup.ts b/src/lib/vitest/setup.ts similarity index 100% rename from tests/setup.ts rename to src/lib/vitest/setup.ts diff --git a/tests/utils/index.tsx b/src/lib/vitest/utils/index.tsx similarity index 100% rename from tests/utils/index.tsx rename to src/lib/vitest/utils/index.tsx diff --git a/src/routes/-components/HeroSection.tsx b/src/routes/-components/HeroSection.tsx index 559a630..a138d86 100644 --- a/src/routes/-components/HeroSection.tsx +++ b/src/routes/-components/HeroSection.tsx @@ -1,9 +1,9 @@ -import astronaut from "../../assets/Astronaut-herosection.png"; -import rocketIcon from "../../assets/rocket.png"; -import fred from "../../assets/hero-section/fred.png"; -import ian from "../../assets/hero-section/ian.png"; -import katrina from "../../assets/hero-section/katrina.png"; -import sharon from "../../assets/hero-section/sharon.png"; +import astronaut from "@/assets/Astronaut-herosection.png"; +import rocketIcon from "@/assets/rocket.png"; +import fred from "@/assets/hero-section/fred.png"; +import ian from "@/assets/hero-section/ian.png"; +import katrina from "@/assets/hero-section/katrina.png"; +import sharon from "@/assets/hero-section/sharon.png"; import { Link } from "@tanstack/react-router"; export const HeroSection = () => { @@ -13,7 +13,7 @@ export const HeroSection = () => { //border border-red-500

diff --git a/src/routes/-components/HomePage.tsx b/src/routes/-components/HomePage.tsx index 7401017..fd8b34b 100644 --- a/src/routes/-components/HomePage.tsx +++ b/src/routes/-components/HomePage.tsx @@ -1,11 +1,10 @@ import { LandingPageNavbar } from "@/components/navigation/LandingPageNavbar"; import { HeroSection } from "./HeroSection"; -import RepositoriesSection from "./RepositoriesSection"; - +import RepositoriesSection from "./repos-sections/RepositoriesSection"; import { projects } from "@/data/projects"; import { ToolsSection } from "./tools-section/ToolsSection"; -import { FooterCTA } from "./FooterCTA"; -import Footer from "./Footer"; +import { FooterCTA } from "./footer-section/FooterCTA"; +import Footer from "./footer-section/Footer"; export function HomePage() { return ( diff --git a/src/routes/-components/Footer.tsx b/src/routes/-components/footer-section/Footer.tsx similarity index 82% rename from src/routes/-components/Footer.tsx rename to src/routes/-components/footer-section/Footer.tsx index cd6a614..d05b6a9 100644 --- a/src/routes/-components/Footer.tsx +++ b/src/routes/-components/footer-section/Footer.tsx @@ -1,12 +1,12 @@ -import ColabsLogo from "../../assets/logo-container.png"; -import XIcon from "../../assets/x-icon.png"; -import LinkedinIcon from "../../assets/linkedin-icon.png"; +import ColabsLogo from "@/assets/logo-container.png"; +import XIcon from "@/assets/x-icon.png"; +import LinkedinIcon from "@/assets/linkedin-icon.png"; import { Link } from "@tanstack/react-router"; export default function Footer() { return ( -