updated vite config & added basic components
This commit is contained in:
parent
934089968a
commit
04526678ab
@ -2,9 +2,11 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Vite + React</title>
|
||||
<meta name="description" content="Full Stack Developer focused on React, Next and Express framerworks"/>
|
||||
<title>Paul Hughes - Full Stack Developer</title>
|
||||
<link rel="canonical" href="https://paulus.casa">
|
||||
<link rel="icon" type="image/png" href="/favicon.png" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
BIN
public/favicon.png
Normal file
BIN
public/favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 300 KiB |
15
src/App.jsx
15
src/App.jsx
@ -1,15 +1,16 @@
|
||||
import { useState } from 'react'
|
||||
import './App.css'
|
||||
/* ----- Project Imports ----- */
|
||||
import "./App.css";
|
||||
import Header from "@/components/Header.jsx";
|
||||
import Footer from "@/components/Footer.jsx";
|
||||
import Content from "@/components/Content.jsx";
|
||||
|
||||
function App() {
|
||||
|
||||
return (
|
||||
<>
|
||||
<div>
|
||||
<p>
|
||||
paragraph
|
||||
</p>
|
||||
</div>
|
||||
<Header />
|
||||
<Content />
|
||||
<Footer />
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
14
src/components/Content.jsx
Normal file
14
src/components/Content.jsx
Normal file
@ -0,0 +1,14 @@
|
||||
/* ----- Project Imports ----- */
|
||||
import Details from "@/components/Details.jsx";
|
||||
import Projects from "@/components/Projects.jsx"
|
||||
|
||||
function Content() {
|
||||
return (
|
||||
<main className="contentContainer">
|
||||
<Details />
|
||||
<Projects />
|
||||
</main>
|
||||
);
|
||||
};
|
||||
|
||||
export default Content;
|
||||
14
src/components/Details.jsx
Normal file
14
src/components/Details.jsx
Normal file
@ -0,0 +1,14 @@
|
||||
/* ----- Project Imports ----- */
|
||||
|
||||
|
||||
|
||||
function Details() {
|
||||
return (
|
||||
<article className="detailsContainer">
|
||||
<p>This be some details</p>
|
||||
</article>
|
||||
);
|
||||
};
|
||||
|
||||
export default Details;
|
||||
|
||||
13
src/components/Footer.jsx
Normal file
13
src/components/Footer.jsx
Normal file
@ -0,0 +1,13 @@
|
||||
/* ----- Project Imports ----- */
|
||||
|
||||
|
||||
|
||||
function Footer() {
|
||||
return (
|
||||
<footer>
|
||||
<p>footer stuff rn </p>
|
||||
</footer>
|
||||
);
|
||||
};
|
||||
|
||||
export default Footer;
|
||||
13
src/components/Header.jsx
Normal file
13
src/components/Header.jsx
Normal file
@ -0,0 +1,13 @@
|
||||
/* ----- Project Imports ----- */
|
||||
|
||||
|
||||
|
||||
function Header() {
|
||||
return (
|
||||
<header>
|
||||
<p>This is some header stuff rn </p>
|
||||
</header>
|
||||
);
|
||||
};
|
||||
|
||||
export default Header;
|
||||
14
src/components/Projects.jsx
Normal file
14
src/components/Projects.jsx
Normal file
@ -0,0 +1,14 @@
|
||||
/* ----- Project Imports ----- */
|
||||
|
||||
|
||||
|
||||
function Projects() {
|
||||
return (
|
||||
<article className="projectsContainer">
|
||||
<p>This be some projects</p>
|
||||
</article>
|
||||
);
|
||||
};
|
||||
|
||||
export default Projects;
|
||||
|
||||
@ -1,7 +1,13 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
import path from "path";
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
})
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(__dirname, "./src/"),
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user