Skip to content

Commit

Permalink
feat: create all basic section + style the custom scrollbar with them…
Browse files Browse the repository at this point in the history
…e support
  • Loading branch information
thekiranmahajan committed Jun 23, 2024
1 parent c607ca1 commit 36e275b
Show file tree
Hide file tree
Showing 10 changed files with 63 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { Footer, Header } from "./components";
import { Home } from "./sections";

const App = () => {
return (
<main className="relative flex min-h-screen w-screen flex-col bg-white font-space-grotesk transition-colors duration-500 dark:bg-[#100E34]">
<main className="relative flex min-h-screen w-full flex-col overflow-x-hidden bg-white font-space-grotesk transition-colors duration-500 dark:bg-[#100E34]">
<Header />
<Home />
<Footer />
</main>
);
Expand Down
3 changes: 3 additions & 0 deletions src/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ const Footer = () => {
const year = new Date().getFullYear();
return (
<footer className="mt-auto flex h-64 w-full flex-col items-center bg-black text-white">
<div>

</div>
<div className="mb-20 mt-auto flex w-full items-center justify-center text-sm text-gray-400">
&copy; Kiran Mahajan. All Rights Reserved {year}
</div>
Expand Down
17 changes: 17 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,20 @@
@apply transition-colors duration-300 hover:text-dark-blue dark:hover:text-violet;
}
}
@layer utilities {
::-webkit-scrollbar {
@apply w-1;
}

::-webkit-scrollbar-track {
@apply bg-gray-400 dark:bg-slate-700;
}

::-webkit-scrollbar-thumb {
@apply bg-light-blue dark:bg-yellow;
}

::-webkit-scrollbar-thumb:hover {
@apply bg-dark-blue dark:bg-violet;
}
}
5 changes: 5 additions & 0 deletions src/sections/About.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const About = () => {
return <section id="about">About</section>;
};

export default About;
5 changes: 5 additions & 0 deletions src/sections/Contact.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const Contact = () => {
return <section id="contact">Contact</section>;
};

export default Contact;
5 changes: 5 additions & 0 deletions src/sections/Experience.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const Experience = () => {
return <section id="experience">Experience</section>;
};

export default Experience;
9 changes: 9 additions & 0 deletions src/sections/Home.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const Home = () => {
return (
<section id="home" className="h-screen w-full">
Home
</section>
);
};

export default Home;
5 changes: 5 additions & 0 deletions src/sections/Projects.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const Projects = () => {
return <section id="projects">Projects</section>;
};

export default Projects;
5 changes: 5 additions & 0 deletions src/sections/Skills.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const Skills = () => {
return <section id="skills">Skills</section>;
};

export default Skills;
6 changes: 6 additions & 0 deletions src/sections/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export { default as Home } from "./Home";
export { default as About } from "./About";
export { default as Skills } from "./Skills";
export { default as Experience } from "./Experience";
export { default as Projects } from "./Projects";
export { default as Contact } from "./Contact";

0 comments on commit 36e275b

Please sign in to comment.