Skip to content

Commit 8af1285

Browse files
chore: configure path aliases and update imports
1 parent 431bbc9 commit 8af1285

File tree

15 files changed

+37
-34
lines changed

15 files changed

+37
-34
lines changed

app/about/page.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import EduCard from '../../components/educard';
2-
import Heading from '../../components/heading';
3-
import SkillCap from '../../components/skill-cap';
4-
import { companies, institutions } from '../data/data';
5-
import { skills } from '../data/skills';
1+
import { companies, institutions } from '@/app/data/data';
2+
import { skills } from '@/app/data/skills';
3+
import EduCard from '@/components/educard';
4+
import Heading from '@/components/heading';
5+
import SkillCap from '@/components/skill-cap';
66

77
export const metadata = {
88
title: 'About',

app/layout.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import Footer from '@/components/footer';
2+
import Navbar from '@/components/navbar';
3+
import { BASE_URL } from '@/lib/constants';
14
import { GoogleAnalytics, GoogleTagManager } from '@next/third-parties/google';
25
import { ViewTransitions } from 'next-view-transitions';
36
import { Cabin } from 'next/font/google';
47

5-
import Footer from '../components/footer';
6-
import Navbar from '../components/navbar';
7-
import { BASE_URL } from '../lib/constants';
88
import './globals.css';
99

1010
const cabin = Cabin({

app/manifest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BASE_URL } from '../lib/constants';
1+
import { BASE_URL } from '@/lib/constants';
22

33
export default function manifest() {
44
return {

app/open-source/page.jsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1+
import Description from '@/components/description';
2+
import Heading from '@/components/heading';
3+
import RepoList from '@/components/repo-list';
4+
import RepoSkeleton from '@/components/repo-skeleton';
15
import { Suspense } from 'react';
26

3-
import Description from '../../components/description';
4-
import Heading from '../../components/heading';
5-
import RepoList from '../../components/repo-list';
6-
import RepoSkeleton from '../../components/repo-skeleton';
7-
87
export const metadata = {
98
title: 'Open Source',
109
description:

app/page.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import FeaturedRepo from '../components/featured-repo';
2-
import Hero from '../components/hero';
3-
import Highlights from '../components/highlights';
1+
import FeaturedRepo from '@/components/featured-repo';
2+
import Hero from '@/components/hero';
3+
import Highlights from '@/components/highlights';
44

55
const Home = () => {
66
return (

app/projects/page.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import Description from '../../components/description';
2-
import Heading from '../../components/heading';
3-
import ProjectCard from '../../components/project-card';
4-
import { projectList } from '../data/projects';
1+
import { projectList } from '@/app/data/projects';
2+
import Description from '@/components/description';
3+
import Heading from '@/components/heading';
4+
import ProjectCard from '@/components/project-card';
55

66
export const metadata = {
77
title: 'Projects',

app/sitemap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BASE_URL } from '../lib/constants';
1+
import { BASE_URL } from '@/lib/constants';
22

33
export default async function sitemap() {
44
const routes = ['', '/about', '/projects', '/open-source'].map((route) => ({

components/EduCard.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
import { shimmer, toBase64 } from '@/lib/utils';
12
import Image from 'next/image';
23

3-
import { shimmer, toBase64 } from '../lib/utils';
4-
54
const EduCard = ({ institution, logo, degree, startDate, endDate }) => {
65
return (
76
<article className="transform items-center gap-3 rounded-lg border-2 border-sh-dark bg-sh-dark-500 p-4 text-sh-white transition-transform ease-in hover:scale-[1.02] hover:shadow-lg md:flex">

components/Footer.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
import { socialMedia } from '@/app/data/data';
12
import Link from 'next/link';
23

3-
import { socialMedia } from '../app/data/data';
4-
54
const Footer = () => {
65
return (
76
<footer className="mx-auto w-full max-w-[50rem] px-10 py-2 md:px-0">

components/Highlights.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { highlightList } from '../app/data/highlights';
1+
import { highlightList } from '@/app/data/highlights';
22

33
const Highlights = () => {
44
return (

components/featured-repo.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import { featuredRepositories } from '@/app/data/data';
2+
import { GITHUB_API_URL, GITHUB_USERNAME } from '@/lib/constants';
13
import { Link } from 'next-view-transitions';
24
import { HiCursorClick } from 'react-icons/hi';
35

4-
import { featuredRepositories } from '../app/data/data';
5-
import { GITHUB_API_URL, GITHUB_USERNAME } from '../lib/constants';
66
import Heading from './heading';
77
import RepoCard from './repo-card';
88

components/greeting-switcher.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
'use client';
22

3+
import { greetingList } from '@/app/data/greetings';
34
import { useState } from 'react';
45

5-
import { greetingList } from '../app/data/greetings';
6-
76
const GreetingSwitcher = () => {
87
const [arrItem, setArrItem] = useState(0);
98

components/project-card.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
import { shimmer, toBase64 } from '@/lib/utils';
12
import Image from 'next/image';
23
import Link from 'next/link';
34

4-
import { shimmer, toBase64 } from '../lib/utils';
5-
65
const ProjectCard = ({ leftAlign, image, title, des, tech, url }) => {
76
return (
87
<article

components/repo-list.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { GITHUB_API_URL, GITHUB_USERNAME } from '../lib/constants';
1+
import { GITHUB_API_URL, GITHUB_USERNAME } from '@/lib/constants';
2+
23
import RepoCard from './repo-card';
34

45
const RepoList = async () => {

jsconfig.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"compilerOptions": {
3+
"paths": {
4+
"@/*": ["./*"]
5+
}
6+
}
7+
}

0 commit comments

Comments
 (0)