Skip to content
This repository was archived by the owner on Apr 28, 2024. It is now read-only.

Commit

Permalink
fix: basic structure
Browse files Browse the repository at this point in the history
  • Loading branch information
DavDeDev committed Mar 7, 2023
1 parent 531f007 commit 52a1abb
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 290 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>DavDeDev | Portfolio</title>
<title>Vite + React</title>
</head>
<body>
<div id="root"></div>
Expand Down
108 changes: 7 additions & 101 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,12 @@
"react-dom": "^18.2.0",
"react-router-dom": "^6.8.2",
"react-tilt": "^0.1.4",
"react-vertical-timeline-component": "^3.6.0",
"three": "^0.150.1"
"react-vertical-timeline-component": "^3.6.0"
},
"devDependencies": {
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"@vitejs/plugin-react": "^3.1.0",
"autoprefixer": "^10.4.13",
"postcss": "^8.4.21",
"tailwindcss": "^3.2.7",
"vite": "^4.1.0"
}
Expand Down
6 changes: 0 additions & 6 deletions postcss.config.cjs

This file was deleted.

1 change: 1 addition & 0 deletions public/vite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 27 additions & 17 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,37 @@
import {BrowserRouter} from 'react-router-dom';

import {About,Contact,Experience,Feedbacks,Hero,Navbar,Tech,Works,StarsCanvas} from './components';
import { BrowserRouter } from "react-router-dom";

import {
About,
Contact,
Experience,
Feedbacks,
Hero,
Navbar,
Tech,
Works,
StarsCanvas,
} from "./components";

const App = () => {
return (
<BrowserRouter>
<div className="relative z-0 bg-primary">
<div className="bg-hero-pattern bg-cover bg-no-repeat bg-center">
<Navbar />
<Hero />
</div>
<About />
<Experience />
<Tech />
<Works />
<Feedbacks />
<div className="relative z-0">
<Contact />
<StarsCanvas />
<div className="relative z-0 bg-primary">
<div className="bg-hero-pattern bg-cover bg-no-repeat bg-center">
<Navbar />
<Hero />
</div>
<About />
<Experience />
<Tech />
<Works />
<Feedbacks />
<div className="relative z-0">
<Contact />
<StarsCanvas />
</div>
</div>
</div>
</BrowserRouter>
);
};

export default App;
32 changes: 5 additions & 27 deletions src/components/Hero.jsx
Original file line number Diff line number Diff line change
@@ -1,31 +1,9 @@
import { motion } from "framer-motion";

import { styles } from "../styles";
import { ComputersCanvas } from "./canvas";
import React from 'react'

const Hero = () => {
return (
<section className="relative w-full h-screen mx-auto">
<div
className={`${styles.paddingX} absolute inset-0 top-[120px] max-w-7xl mx-auto flex flex-row items-start gap-5`}
>
<div className="flex flex-col justify-center items-center mt-5">
<div className="w-5 h-5 rounded-full bg-[#915eff]" />
<div className="w-1 sm:h-80 h-40 violet-gradient" />
</div>
<div>
<h1 className={`${styles.heroHeadText} text-white`}>
Hi, I'm <span className="text-[#915eff]">David</span>
</h1>
<p className={`${styles.heroSubText} mt-2 text-white-100`}>
I develop nothing
</p>
</div>
</div>

<ComputersCanvas/>
</section>
);
};
<div>Hero</div>
)
}

export default Hero;
export default Hero
Loading

0 comments on commit 52a1abb

Please sign in to comment.