1
0

Compare commits

..

No commits in common. "3e07a22110c6a0ab1eb0c10c4ac4b0d22a047acb" and "4bef2b666f32b86cc96d17b0f8e0b52c53b0687d" have entirely different histories.

14 changed files with 3836 additions and 5151 deletions

1
.gitignore vendored
View File

@ -8,4 +8,3 @@ node_modules
!.env.example !.env.example
vite.config.js.timestamp-* vite.config.js.timestamp-*
vite.config.ts.timestamp-* vite.config.ts.timestamp-*
result

View File

@ -1,4 +1,18 @@
# My personal portfolio website # create-svelte
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte).
## Creating a project
If you're seeing this, you've probably already done this step. Congrats!
```bash
# create a new project in the current directory
npm create svelte@latest
# create a new project in my-app
npm create svelte@latest my-app
```
## Developing ## Developing
@ -18,3 +32,7 @@ To create a production version of your app:
```bash ```bash
npm run build npm run build
``` ```
You can preview the production build with `npm run preview`.
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.

1251
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -7,10 +7,9 @@
"build": "vite build", "build": "vite build",
"preview": "vite preview", "preview": "vite preview",
"lint": "prettier --check . && eslint .", "lint": "prettier --check . && eslint .",
"prepare": "tw-patch install" "format": "prettier --write ."
}, },
"devDependencies": { "devDependencies": {
"@fortawesome/fontawesome-free": "^6.5.1",
"@sveltejs/adapter-auto": "^3.0.0", "@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/adapter-static": "^3.0.1", "@sveltejs/adapter-static": "^3.0.1",
"@sveltejs/kit": "^2.0.0", "@sveltejs/kit": "^2.0.0",
@ -25,9 +24,10 @@
"prettier-plugin-svelte": "^3.1.2", "prettier-plugin-svelte": "^3.1.2",
"svelte": "^4.2.7", "svelte": "^4.2.7",
"tailwindcss": "^3.4.1", "tailwindcss": "^3.4.1",
"tailwindcss-patch": "^2.2.3",
"unplugin-tailwindcss-mangle": "^2.2.2",
"vite": "^5.0.3" "vite": "^5.0.3"
}, },
"type": "module" "type": "module",
"dependencies": {
"@fortawesome/fontawesome-free": "^6.5.1"
}
} }

View File

@ -1,27 +0,0 @@
<script>
export var info
</script>
<div class="bg-srcery-black-hard flex flex-row gap-2 border-srcery-black-hard border-2 border-solid">
<div class="bg-srcery-black p-4 text-2xl flex flex-col justify-center">
{info.title}
</div>
<div class="flex-grow p-4 flex flex-col gap-2">
<div>
{info.shortDescription}
</div>
<div class="text-srcery-black-bright">
{info.createdAt}
<a href="{info.sourceCodeURL}" class="hover:text-srcery-blue duration-200">
<i class="fa-brands fa-github" />
</a>
</div>
</div>
<a href="/projects/{info.id}" class="my-auto bg-srcery-yellow hover:bg-srcery-yellow-bright text-srcery-black duration-200 p-1.5 m-4">
<div class="text-center">
Daugiau
</div>
</a>
</div>

View File

@ -1,17 +1 @@
// place files you want to import through the `$lib` alias in this folder.
export var gameOfLifeInfo = {
id: "game-of-life",
title: "\"Game Of Life\"",
sourceCodeURL: "https://github.com/RokasPuzonas/rust-game-of-life",
createdAt: "2022/06/03",
shortDescription: "John Conway's game of life parašytas rust programavimo kalboje"
}
export var projects = [
gameOfLifeInfo,
]
export var highlightProjects = [
gameOfLifeInfo,
]

View File

@ -1,15 +1,11 @@
<svelte:head>
<title>Rokas Puzonas</title>
</svelte:head>
<script> <script>
import "../app.css";
import "@fortawesome/fontawesome-free/css/all.min.css" import "@fortawesome/fontawesome-free/css/all.min.css"
import "../app.css";
const navLinks = [ const navLinks = [
{ {
label: "Projektai", label: "Projektai",
href: "/projects" href: "/#projects"
}, },
{ {
label: "Apie mane", label: "Apie mane",
@ -23,17 +19,9 @@
</script> </script>
<div class="w-full h-dvh flex flex-col"> <div class="w-full h-dvh flex flex-col">
<header class="px-6 py-3 bg-srcery-gray-6 text-lg"> <header class="px-6 py-3 bg-srcery-gray-6">
<div class="mx-auto max-w-screen-lg flex flex-row justify-between"> <div class="mx-auto max-w-screen-lg flex flex-row justify-between">
<span> <span>Rokas Puzonas</span>
<a
href="/"
class="hover:underline duration-200 hover:text-srcery-blue"
>
Rokas Puzonas
</a>
</span>
<span class="flex flex-row gap-6"> <span class="flex flex-row gap-6">
{#each navLinks as navLink} {#each navLinks as navLink}
<a <a
@ -47,7 +35,7 @@
</div> </div>
</header> </header>
<div class="px-6 w-full flex-grow"> <div class="w-full flex-grow">
<main class="mx-auto max-w-screen-lg"> <main class="mx-auto max-w-screen-lg">
<slot /> <slot />
</main> </main>

View File

@ -1,8 +1,3 @@
<script>
import ProjectCard from "$lib/components/ProjectCard.svelte";
import { highlightProjects } from '$lib'
</script>
<section class="mb-10 mt-10"> <section class="mb-10 mt-10">
<div class="text-2xl text-center"> <div class="text-2xl text-center">
<p>Sveikas atvykęs!</p> <p>Sveikas atvykęs!</p>
@ -12,30 +7,18 @@
<hr class="border-srcery-gray-1 border-dashed"> <hr class="border-srcery-gray-1 border-dashed">
<section id="about" class="my-10"> <section id="projects" class="my-10">
<h1 class="text-center text-3xl">Apie mane</h1> <h1 class="text-center text-3xl">Projektai</h1>
// TODO:
</section> </section>
<hr class="border-srcery-gray-1 border-dashed"> <hr class="border-srcery-gray-1 border-dashed">
<section id="projects" class="my-10 flex flex-col gap-6"> <section id="about" class="my-10">
<h1 class="text-center text-3xl">Projektai</h1> <h1 class="text-center text-3xl">Apie mane</h1>
<div class="flex flex-col gap-4">
{#each highlightProjects as project }
<ProjectCard info={project} />
{/each}
</div>
<a href="/projects" class="mx-auto text-lg bg-srcery-yellow hover:bg-srcery-yellow-bright text-srcery-black duration-200 p-2">
Daugiau projektų...
</a>
</section> </section>
<hr class="border-srcery-gray-1 border-dashed"> <hr class="border-srcery-gray-1 border-dashed">
<section id="contact" class="my-10"> <section id="contact" class="my-10">
<h1 class="text-center text-3xl">Kontaktai</h1> <h1 class="text-center text-3xl">Kontaktai</h1>
// TODO:
</section> </section>

View File

@ -1,2 +0,0 @@
// TODO:

View File

@ -1,10 +0,0 @@
<script>
import ProjectCard from "$lib/components/ProjectCard.svelte";
import { projects } from '$lib'
</script>
<div class="flex flex-col mt-8 gap-4">
{#each projects as project }
<ProjectCard info={project} />
{/each}
</div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

View File

@ -13,14 +13,7 @@ const config = {
trailingSlash: 'always' trailingSlash: 'always'
}) })
}, },
preprocess: vitePreprocess({ preprocess: vitePreprocess()
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {}
}
}
})
}; };
export default config; export default config;

View File

@ -1,8 +1,6 @@
/** @type {import('tailwindcss').Config} */ /** @type {import('tailwindcss').Config} */
export default { export default {
content: [ content: ['./src/**/*.{html,js,svelte,ts}'],
"./src/**/*.{html,js,css,svelte,ts}"
],
theme: { theme: {
extend: { extend: {
colors: { colors: {