innit bruv

This commit is contained in:
LovroG05
2024-11-27 11:04:37 +01:00
commit 7340dde62b
40 changed files with 5182 additions and 0 deletions

6
.editorconfig Normal file
View File

@@ -0,0 +1,6 @@
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue}]
charset = utf-8
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

30
.gitignore vendored Normal file
View File

@@ -0,0 +1,30 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
.DS_Store
dist
dist-ssr
coverage
*.local
/cypress/videos/
/cypress/screenshots/
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
*.tsbuildinfo

7
.prettierrc.json Normal file
View File

@@ -0,0 +1,7 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": false,
"singleQuote": true,
"printWidth": 100
}

8
.vscode/extensions.json vendored Normal file
View File

@@ -0,0 +1,8 @@
{
"recommendations": [
"Vue.volar",
"dbaeumer.vscode-eslint",
"EditorConfig.EditorConfig",
"esbenp.prettier-vscode"
]
}

39
README.md Normal file
View File

@@ -0,0 +1,39 @@
# vue-test
This template should help get you started developing with Vue 3 in Vite.
## Recommended IDE Setup
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
## Type Support for `.vue` Imports in TS
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types.
## Customize configuration
See [Vite Configuration Reference](https://vite.dev/config/).
## Project Setup
```sh
npm install
```
### Compile and Hot-Reload for Development
```sh
npm run dev
```
### Type-Check, Compile and Minify for Production
```sh
npm run build
```
### Lint with [ESLint](https://eslint.org/)
```sh
npm run lint
```

1
env.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
/// <reference types="vite/client" />

19
eslint.config.js Normal file
View File

@@ -0,0 +1,19 @@
import pluginVue from 'eslint-plugin-vue'
import vueTsEslintConfig from '@vue/eslint-config-typescript'
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
export default [
{
name: 'app/files-to-lint',
files: ['**/*.{ts,mts,tsx,vue}'],
},
{
name: 'app/files-to-ignore',
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],
},
...pluginVue.configs['flat/essential'],
...vueTsEslintConfig(),
skipFormatting,
]

17
index.html Normal file
View File

@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=JetBrains+Mono"
/>
<title>Lovro Govekar</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>

4518
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

36
package.json Normal file
View File

@@ -0,0 +1,36 @@
{
"name": "vue-test",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "run-p type-check \"build-only {@}\" --",
"preview": "vite preview",
"build-only": "vite build",
"type-check": "vue-tsc --build --force",
"lint": "eslint . --fix",
"format": "prettier --write src/"
},
"dependencies": {
"vue": "^3.5.12",
"vue-router": "^4.4.5"
},
"devDependencies": {
"@tsconfig/node22": "^22.0.0",
"@types/node": "^22.9.0",
"@vitejs/plugin-vue": "^5.1.4",
"@vitejs/plugin-vue-jsx": "^4.0.1",
"@vue/eslint-config-prettier": "^10.1.0",
"@vue/eslint-config-typescript": "^14.1.3",
"@vue/tsconfig": "^0.5.1",
"eslint": "^9.14.0",
"eslint-plugin-vue": "^9.30.0",
"npm-run-all2": "^7.0.1",
"prettier": "^3.3.3",
"typescript": "~5.6.3",
"vite": "^5.4.10",
"vite-plugin-vue-devtools": "^7.5.4",
"vue-tsc": "^2.1.10"
}
}

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

33
src/App.vue Normal file
View File

@@ -0,0 +1,33 @@
<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
</script>
<template>
<header>
<h1>Lovro Govekar</h1>
<hr>
<div class="wrapper">
<nav>
<RouterLink to="/">Domov</RouterLink>
<RouterLink to="/ham">Radioamaterstvo</RouterLink>
</nav>
</div>
<hr>
</header>
<RouterView />
</template>
<style scoped>
h1 {
font-size: 48px;
}
header {
padding: 10px;
text-align: center;
}
nav {
text-align: center;
}
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

102
src/assets/base.css Normal file
View File

@@ -0,0 +1,102 @@
:root {
--vt-c-white:#fcf7f8;
/* --vt-c-white-soft: #f8f8f8;
--vt-c-white-mute: #f2f2f2; */
--vt-c-black: #1C1D21;
/* --vt-c-black-soft: #264563;
--vt-c-black-mute: #264563; */
--card-dark: #404044;
--card-light: #c0f9d6;
--vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
--vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
--vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
--vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
--vt-c-text-light-1: var(--vt-c-indigo);
--vt-c-text-light-2: rgba(60, 60, 60, 0.66);
--vt-c-text-dark-1: var(--vt-c-white);
--vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
--spring-green: #31e981;
--spring-green-light: #219653;
--snow: #fcf7f8;
}
/* semantic color variables for this project */
:root {
--color-background: var(--vt-c-white);
--color-background-soft: var(--vt-c-white-soft);
--color-background-mute: var(--vt-c-white-mute);
--color-bg-2: var(--card-light);
--color-border: var(--vt-c-divider-light-2);
--color-border-hover: var(--vt-c-divider-light-1);
--color-heading: var(--vt-c-text-light-1);
--color-text: var(--vt-c-text-light-1);
--link: var(--spring-green-light);
--section-gap: 160px;
}
@media (prefers-color-scheme: dark) {
:root {
--color-background: var(--vt-c-black);
--color-background-soft: var(--vt-c-black-soft);
--color-background-mute: var(--vt-c-black-mute);
--color-bg-2: var(--card-dark);
--color-border: var(--vt-c-divider-dark-2);
--color-border-hover: var(--vt-c-divider-dark-1);
--color-heading: var(--vt-c-text-dark-1);
--color-text: var(--vt-c-text-dark-2);
--link: var(--spring-green);
}
}
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
font-weight: normal;
}
body {
min-height: 100vh;
color: var(--color-text);
background: var(--color-background);
transition:
color 0.5s,
background-color 0.5s;
line-height: 1.6;
font-family:
Inter,
-apple-system,
BlinkMacSystemFont,
'Segoe UI',
Roboto,
Oxygen,
Ubuntu,
Cantarell,
'Fira Sans',
'Droid Sans',
'Helvetica Neue',
sans-serif,
"Jetbrains Mono";
font-size: 15px;
font: 1em "Jetbrains Mono";
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
height: 100%;
width: 100%;
}

BIN
src/assets/bg.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

BIN
src/assets/hamlog.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
src/assets/linkedin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

1
src/assets/logo.svg Normal file
View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>

After

Width:  |  Height:  |  Size: 276 B

29
src/assets/main.css Normal file
View File

@@ -0,0 +1,29 @@
@import './base.css';
#app {
width: 100%;
margin: 0 auto;
padding: 2rem;
font-weight: normal;
}
a,
.green {
text-decoration: none;
color: var(--link);
transition: 0.4s;
padding: 10px;
}
hr {
width: 75%;
margin: auto;
margin-top: 20px;
margin-bottom: 20px;
}
p {
text-align: center;
width: 75%;
margin: auto;
}

BIN
src/assets/qrz_com.svgz Normal file

Binary file not shown.

View File

@@ -0,0 +1,34 @@
<template>
<div>
<a href="https://github.com/LovroG05"
><img
class="linkimg"
src="../assets/GitHub-Mark-Light-120px-plus.png"
width="48px"
height="48px"
/></a>
<a href="https://gitlab.com/LovroG05"
><img
class="linkimg"
src="../assets/gitlab-logo-500.png"
width="48px"
height="48px"
/></a>
<a href="https://www.linkedin.com/in/lovro-govekar-531939232/"
><img
class="linkimg"
src="../assets/linkedin.png"
width="48px"
height="48px"
/></a>
</div>
</template>
<style scoped>
div {
display: flex;
justify-content: center;
width: 100%;
margin: auto;
}
</style>

View File

@@ -0,0 +1,75 @@
<script setup lang="ts">
defineProps({
ime: {type: String, required: true},
icon: {type: String, required: true},
opis: {type: String, required: true},
url: {type: String, required: true},
})
</script>
<template>
<div class="bg">
<img :src="icon" />
<div class="txt">
<h3>{{ime}}</h3>
<a :href=url target="_blank">Link</a>
<hr>
<p>{{opis}}</p>
</div>
</div>
</template>
<style scoped>
.bg {
background-color: var(--color-bg-2);
border-radius: 15px;
padding: 15px;
width: 75%;
margin: auto;
display: flex;
flex-direction: row;
margin-bottom: 20px;
}
.txt {
display: flex;
flex-direction: column;
margin: 5px;
text-align: left;
width: 100%
}
img {
width: 128px;
height: 128px;
margin:5px;
border-radius: 10px;
}
a {
padding: 0px;
}
p {
margin: 0px;
text-align: left;
}
hr {
width: 25%;
margin-left: 0px;
color: var(--color-background);
margin-top: 5px;
margin-bottom: 5px;
}
h3 {
font-size: 22px;
font-weight: bold;
}
</style>

11
src/main.ts Normal file
View File

@@ -0,0 +1,11 @@
import './assets/main.css'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
const app = createApp(App)
app.use(router)
app.mount('#app')

21
src/router/index.ts Normal file
View File

@@ -0,0 +1,21 @@
import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import HAMView from '@/views/HAMView.vue'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
name: 'Domov',
component: HomeView,
},
{
path: '/ham',
name: 'Radioamaterstvo',
component: HAMView,
},
],
})
export default router

30
src/views/HAMView.vue Normal file
View File

@@ -0,0 +1,30 @@
<template>
<div>
<h2>S50LO</h2>
<p>
Konec februarja 2023 sem postal radioamater in član <a href="https://rklub.vegova.si/">Radiokluba Vegova</a>.
Moj klicni znak je <b>S50LO</b>. Uporabljam postajo Anytone AT-D878UV II PLUS, s katero lahko delam na 2m in 70cm bandu tako v FM kot DMR načinu.
</p>
<hr />
<div>
<a href="https://www.qrz.com/db/S50LO">Moja QRZ stran</a>
</div>
<hr />
<div>
<p>73</p>
</div>
</div>
</template>
<style scoped>
div {
text-align: center;
}
h2 {
padding-bottom: 20px;
}
a {
padding-right: 0px;
padding-left: 0px;
}
</style>

101
src/views/HomeView.vue Normal file
View File

@@ -0,0 +1,101 @@
<script setup lang="ts">
import ContactsComponent from '../components/ContactsComponent.vue';
import ProjectComponent from '../components/ProjectComponent.vue';
</script>
<template>
<main>
<p>
Pozdravljen/a! Sem študent FERIja, v prostem času
pa se med drugim ukvarjam z razvijanjem programske opreme. To počnem že od
svojega 12. leta.
<br />
Skupaj z ekipo
<a href="https://vegovasat.si">VegaSat</a> sem v 2023 sodeloval na tekmovanju
CanSat Evropske vesoljske agencije, nekaj mojih ostalih projektov pa si lahko ogledate na mojem <a href="https://github.com/LovroG05">GitHubu.</a>
<br />
Veliko prostega časa zapravim z poslušanjem glasbe, po Spotifyevih
podatkih največ poslušam Pink Floyde, drugačne pa važno da je rock n' roll!
</p>
<hr>
<ContactsComponent></ContactsComponent>
<hr>
<ProjectComponent
ime="Šah"
icon="src\assets\icons8-chess-128.png"
opis="Zaledni strežnik za preverjanje pravil pri šahu, napisan kot seminarska naloga. Uporabniški vmesnik je LovroG05/chessboard-seminarska."
url="https://github.com/LovroG05/chess-seminarska" />
<ProjectComponent
ime="Hamlog"
icon="src/assets/hamlog.png"
opis="Informacijski sistem radioamaterskega dnevnika zvez, napisan za maturitetno nalogo pri računalništvu. Uporabniški vmesnik je napisan v ogrodju Flutter, zaledni strežnik pa v Spring boot-u."
url="https://github.com/LovroG05/hamlog" />
<ProjectComponent
ime="VegaSat"
icon="https://cansat.esa.int/wp-content/uploads/2023/08/ESA_Edu_Cansat_RGB-300x300.png"
opis="Skupaj z ekipo prijateljev sem sodeloval v tekmovanju CanSat, ki ga organizira Evropska vesoljska agencija.
Namen tekmovanja je, da skupaj z ekipo sestavimo sondo v velikosti pločevinke Coca-Cole, ki opravlja določeno
misijo. Sonda ekipe naše ekipe je imela nalogo vodenega pristanka."
url="https://cansat.si" />
<ProjectComponent
ime="Homelab"
icon="https://avatars.githubusercontent.com/u/53482242?s=200&v=4"
opis="Doma imam postavljen svoj 'Homelab', ki temelji na TrueNAS SCALE strežniku, v katerem uporabljam Docker. Gostujem storitve, kot so Nextcloud, Home Assistant in Crafty, ki so z javnostjo povezane skozi Nginx reverse proxy."
url="https://homepage.govekar.net" />
<hr>
<div class="folk">
<h2>Zanimivi ljudje</h2>
<ul>
<li>
<a href="https://fortuna.wf/">Jurij Fortuna</a>
</li>
<li>
<a href="https://gapi.me/">Gašper Dobrovoljc</a>
</li>
<li>
<a href="https://golobii.com/">Luka Golob Cerar</a>
</li>
<li>
<a href="https://babnik.io/">Matic Babnik</a>
</li>
<li>
<a href="https://aikenahac.com/">Aiken <b>Tine</b> Ahac</a>
</li>
<li>
<a href="https://www.zigakralj.com/"
>Žiga Kralj (za prijatelje hlapec)</a
>
</li>
<li>
<a href="https://asavkovic.xyz/">Aleksandar Savković</a>
</li>
</ul>
</div>
</main>
</template>
<style scoped>
ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.folk {
text-align: center;
width: 100%;
margin:auto;
}
h2 {
font-size: 26px;
font-weight: bold;
padding-bottom: 20px;
}
li a {
font-size: 18px;
}
</style>

14
tsconfig.app.json Normal file
View File

@@ -0,0 +1,14 @@
{
"extends": "@vue/tsconfig/tsconfig.dom.json",
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
"exclude": ["src/**/__tests__/*"],
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
}

11
tsconfig.json Normal file
View File

@@ -0,0 +1,11 @@
{
"files": [],
"references": [
{
"path": "./tsconfig.node.json"
},
{
"path": "./tsconfig.app.json"
}
]
}

19
tsconfig.node.json Normal file
View File

@@ -0,0 +1,19 @@
{
"extends": "@tsconfig/node22/tsconfig.json",
"include": [
"vite.config.*",
"vitest.config.*",
"cypress.config.*",
"nightwatch.conf.*",
"playwright.config.*"
],
"compilerOptions": {
"composite": true,
"noEmit": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
"module": "ESNext",
"moduleResolution": "Bundler",
"types": ["node"]
}
}

20
vite.config.ts Normal file
View File

@@ -0,0 +1,20 @@
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import vueDevTools from 'vite-plugin-vue-devtools'
// https://vite.dev/config/
export default defineConfig({
plugins: [
vue(),
vueJsx(),
vueDevTools(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
},
},
})