initialize React + TypeScript + Vite project with essential configurations and assets
This commit is contained in:
74
src/App.tsx
Normal file
74
src/App.tsx
Normal file
@@ -0,0 +1,74 @@
|
||||
function App() {
|
||||
return (
|
||||
<main className="w-full h-full min-h-screen flex flex-col items-center justify-center bg-[url('./assets/backgrounds/background2.jpg')] bg-cover bg-center">
|
||||
<div className="w-full max-w-[980px] max-h-[930px] flex-1 flex flex-col glass-sm aero-gradient-light rounded-2xl border-midnight border-[2px]">
|
||||
<header className="flex p-[30px] items-center gap-4 rounded-t-2xl text-white border-b-0 aero-gradient">
|
||||
<h1 className="text-2xl font-semibold">Gabriel Kaszewski</h1>
|
||||
<h2 className="text-lg font-normal">Full-stack Developer</h2>
|
||||
</header>
|
||||
<section className="grid grid-cols-6 w-full h-full flex-1 gap-8 overflow-y-auto">
|
||||
<aside className="col-span-2 aero-gradient-dark p-4 rounded-bl-2xl flex flex-col gap-2 items-stretch overflow-y-auto">
|
||||
<section className="aero-gradient-dark text-white p-1 rounded-sm">
|
||||
<p className="aero-gradient p-2 border-b border-midnight text-lg">
|
||||
Main
|
||||
</p>
|
||||
<ul className="flex flex-col gap-1 justify-center">
|
||||
<li className="border-b border-midnight">Home</li>
|
||||
<li className="border-b border-midnight">About</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section className="aero-gradient-dark text-white p-1 rounded-sm">
|
||||
<p className="aero-gradient p-2 border-b border-midnight text-lg">
|
||||
Projects
|
||||
</p>
|
||||
<ul className="flex flex-col gap-1 justify-center">
|
||||
<li className="border-b border-midnight">Project 1</li>
|
||||
<li className="border-b border-midnight">Project 2</li>
|
||||
<li className="border-b border-midnight">Project 3</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section className="aero-gradient-dark text-white p-1 rounded-sm">
|
||||
<p className="aero-gradient p-2 border-b border-midnight text-lg">
|
||||
Games
|
||||
</p>
|
||||
<ul className="flex flex-col gap-1 justify-center">
|
||||
<li className="border-b border-midnight">Snake</li>
|
||||
<li className="border-b border-midnight">Tetris</li>
|
||||
<li className="border-b border-midnight">Wordle</li>
|
||||
</ul>
|
||||
</section>
|
||||
</aside>
|
||||
<section className="col-span-4 flex flex-col px-8 pt-4 gap-4">
|
||||
<article className="aero-gradient-glass rounded-lg p-4 flex flex-col border-midnight-light border">
|
||||
<section className="aero-gradient-dark p-2 rounded-lg border-midnight border prose text-white flex flex-col items-center">
|
||||
<h6 className="aero-gradient text-white p-2 border border-midnight rounded-lg w-full items-center flex justify-center">
|
||||
Who am I?
|
||||
</h6>
|
||||
<p>
|
||||
Hi, my name is Gabriel Kaszewski, and I am a Bioinformatics
|
||||
student 🧬 and self-taught full-stack developer 💻.{" "}
|
||||
</p>
|
||||
<p>
|
||||
My journey with programming started when I was 11 🚀. I love
|
||||
solving problems and creating software that resolves them 👨💻.
|
||||
</p>
|
||||
<p>
|
||||
Currently, I am working as a Python Developer at
|
||||
digimonkeys.com. In my free time I like to read about new
|
||||
technologies and work on my projects 📚.
|
||||
</p>
|
||||
</section>
|
||||
</article>
|
||||
<span className="flex-1"></span>
|
||||
<footer className="text-white gap-2 flex justify-center items-center p-8 rounded-t-lg aero-gradient">
|
||||
<p>Powered by loco.rs & Rust 🦀</p>
|
||||
<p>Made with 💗 in Poland</p>
|
||||
</footer>
|
||||
</section>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
||||
BIN
src/assets/backgrounds/background1.jpg
Normal file
BIN
src/assets/backgrounds/background1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 336 KiB |
BIN
src/assets/backgrounds/background2.jpg
Normal file
BIN
src/assets/backgrounds/background2.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.5 MiB |
BIN
src/assets/fonts/Frutiger.woff
Normal file
BIN
src/assets/fonts/Frutiger.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Frutiger_bold.woff
Normal file
BIN
src/assets/fonts/Frutiger_bold.woff
Normal file
Binary file not shown.
81
src/index.css
Normal file
81
src/index.css
Normal file
@@ -0,0 +1,81 @@
|
||||
@import "tailwindcss";
|
||||
@plugin "@tailwindcss/typography";
|
||||
|
||||
@font-face {
|
||||
font-family: "Frutiger";
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
src: local("Frutiger"), url("assets/fonts/Frutiger.woff") format("woff");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Frutiger Bold";
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
src: local("Frutiger Bold"),
|
||||
url("assets/fonts/Frutiger_bold.woff") format("woff");
|
||||
}
|
||||
|
||||
:root {
|
||||
--gradient-color-1: rgba(148, 148, 148, 0.9);
|
||||
--gradient-color-2: rgba(71, 71, 71, 0.9);
|
||||
--gradient-color-3: rgba(19, 19, 19, 0.9);
|
||||
--gradient-color-4: rgba(7, 7, 7, 0.93);
|
||||
}
|
||||
|
||||
@theme {
|
||||
--default-font-family: "Frutiger", sans-serif;
|
||||
--color-midnight: #3d3d3d;
|
||||
--color-midnight-light: #707070;
|
||||
}
|
||||
|
||||
@layer components {
|
||||
.aero-gradient {
|
||||
background: linear-gradient(
|
||||
180deg,
|
||||
var(--gradient-color-1) 0%,
|
||||
var(--gradient-color-2) 20%,
|
||||
var(--gradient-color-3) 40%,
|
||||
var(--gradient-color-4) 100%
|
||||
);
|
||||
}
|
||||
|
||||
.aero-gradient-light {
|
||||
background: linear-gradient(
|
||||
100deg,
|
||||
rgba(255, 255, 255, 0.1) 50%,
|
||||
rgba(255, 255, 255, 0.2) 100%
|
||||
);
|
||||
}
|
||||
|
||||
.aero-gradient-dark {
|
||||
background: linear-gradient(
|
||||
100deg,
|
||||
rgba(20, 20, 20, 0.8) 50%,
|
||||
rgba(27, 27, 27, 0.9) 100%
|
||||
);
|
||||
}
|
||||
|
||||
.aero-gradient-glass {
|
||||
background: linear-gradient(
|
||||
rgba(34, 34, 34, 0.5),
|
||||
rgba(26, 26, 26, 0.5),
|
||||
rgba(26, 26, 26, 0.5)
|
||||
);
|
||||
}
|
||||
|
||||
.glass-sm {
|
||||
@apply backdrop-blur-sm;
|
||||
@apply bg-clip-padding;
|
||||
}
|
||||
|
||||
.glass-md {
|
||||
@apply backdrop-blur-md;
|
||||
@apply bg-clip-padding;
|
||||
}
|
||||
|
||||
.glass-lg {
|
||||
@apply backdrop-blur-lg;
|
||||
@apply bg-clip-padding;
|
||||
}
|
||||
}
|
||||
10
src/main.tsx
Normal file
10
src/main.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { StrictMode } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import './index.css'
|
||||
import App from './App.tsx'
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>,
|
||||
)
|
||||
1
src/vite-env.d.ts
vendored
Normal file
1
src/vite-env.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/// <reference types="vite/client" />
|
||||
Reference in New Issue
Block a user