mirror of
https://github.com/eRgo35/website.git
synced 2026-02-04 13:36:10 +01:00
Compare commits
15 Commits
2e51e707c2
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| bfa650ac17 | |||
| 4843c42147 | |||
| b961e4e151 | |||
| 6a864ef8ec | |||
| 1f265df89c | |||
| 13b5516e72 | |||
| 82f70bdc43 | |||
| 1cad16ee38 | |||
| 5cb6da9109 | |||
| 1afc00ce7a | |||
| 31cab15560 | |||
| e02f1c4bc0 | |||
| eb66cb1a8b | |||
| 51c7899253 | |||
| 6acd12773d |
15
README.md
15
README.md
@@ -1 +1,14 @@
|
|||||||
# Mike's official /new/ minimalistic website
|
# Mike's Personal Website
|
||||||
|
|
||||||
|
A minimalistic, modern personal website.
|
||||||
|
|
||||||
|
## Mike around the web
|
||||||
|
|
||||||
|
- **Email**: [mike@c2yz.com](mailto:mike@c2yz.com)
|
||||||
|
- **GitHub**: [@eRgo35](https://github.com/eRgo35)
|
||||||
|
- **LinkedIn**: [mike-czyz](https://www.linkedin.com/in/mike-czyz)
|
||||||
|
- **YouTube**: [@eRgo35](https://www.youtube.com/@eRgo35)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Built with ❤️ by Michał Czyż
|
||||||
|
|||||||
BIN
assets/Michał_Czyż_CV.pdf
Normal file
BIN
assets/Michał_Czyż_CV.pdf
Normal file
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 264 KiB After Width: | Height: | Size: 15 KiB |
BIN
assets/fonts/Coiny-Regular-subset.ttf
Normal file
BIN
assets/fonts/Coiny-Regular-subset.ttf
Normal file
Binary file not shown.
BIN
assets/fonts/Coiny-Regular.ttf
Normal file
BIN
assets/fonts/Coiny-Regular.ttf
Normal file
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 144 KiB After Width: | Height: | Size: 12 KiB |
355
index.html
355
index.html
@@ -1,107 +1,348 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
<head>
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="icon" href="./assets/favicon.ico" />
|
<link rel="icon" href="/assets/favicon.ico" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<meta name="theme-color" content="#8aadf4" />
|
<meta name="theme-color" content="#8aadf4" />
|
||||||
<meta name="description"
|
<meta
|
||||||
content="Michał Czyż is a student and a software developer." />
|
name="description"
|
||||||
|
content="Welcome to the official website of Michał Czyż, a student and a software developer. Explore projects, skills, and contact details."
|
||||||
|
/>
|
||||||
<meta name="author" content="Michał Czyż" />
|
<meta name="author" content="Michał Czyż" />
|
||||||
<meta name="copyright" content="Michał Czyż, 2024 All Rights Reserved" />
|
<meta name="copyright" content="Michał Czyż, 2025 All Rights Reserved" />
|
||||||
<meta name="keywords" lang="en"
|
<meta
|
||||||
content="Michał Czyż, Michael Czyż, Mike Czyż, tsi, developer, crypto, web, angular, react, javascript" />
|
name="keywords"
|
||||||
<meta name="date" content="" />
|
lang="en"
|
||||||
<meta name="page-topic" content="" />
|
content="Michał Czyż, Michael Czyż, Mike Czyż, ai, llm, python, developer, crypto, web, angular, react, javascript"
|
||||||
|
/>
|
||||||
|
<meta name="language" content="en" />
|
||||||
|
<meta name="robots" content="index, follow" />
|
||||||
|
<meta name="date" content="2025-07-26" />
|
||||||
|
<meta
|
||||||
|
name="page-topic"
|
||||||
|
content="Personal Website, Software Developer, Michał Czyż, Mike Czyż"
|
||||||
|
/>
|
||||||
|
|
||||||
<!--Facebook Open Graph-->
|
<!--Facebook Open Graph-->
|
||||||
<meta property="og:url" content="https://c2yz.com" />
|
<meta property="og:url" content="https://c2yz.com" />
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:title" content="Michał Czyż" />
|
<meta property="og:title" content="Michał Czyż - Software Developer" />
|
||||||
<meta property="og:site_name" content="Michał Czyż" />
|
<meta property="og:site_name" content="Michał Czyż" />
|
||||||
<meta property="og:locale" content="en_US" />
|
<meta property="og:locale" content="en_US" />
|
||||||
<meta property="og:description"
|
<meta
|
||||||
content="Michał Czyż is a student and a software developer." />
|
property="og:description"
|
||||||
<meta property="og:image" content="./assets/card.png" />
|
content="Michał Czyż is a student and software developer. Explore projects, skills, and contact details."
|
||||||
|
/>
|
||||||
|
<meta property="og:image" content="/assets/card.png" />
|
||||||
|
|
||||||
<!--Twitter card metadata-->
|
<!--Twitter card metadata-->
|
||||||
<meta name="twitter:card" content="summary_large_image" />
|
<meta name="twitter:card" content="summary_large_image" />
|
||||||
<meta name="twitter:site" content="@Mike_Czyz_" />
|
<meta name="twitter:site" content="@Mike_Czyz_" />
|
||||||
<meta name="twitter:creator" content="@Mike_Czyz_" />
|
<meta name="twitter:creator" content="@Mike_Czyz_" />
|
||||||
<meta name="twitter:title" content="Michał Czyż" />
|
<meta name="twitter:title" content="Michał Czyż - Software Developer" />
|
||||||
<meta name="twitter:description"
|
<meta
|
||||||
content="Michał Czyż is a student and a software developer." />
|
name="twitter:description"
|
||||||
<meta name="twitter:image" content="./assets/card.png">
|
content="Michał Czyż is a student and software developer. Explore projects, skills, and contact details."
|
||||||
|
/>
|
||||||
|
<meta name="twitter:image" content="/assets/card.png" />
|
||||||
|
|
||||||
<link rel="apple-touch-icon" href="./assets/logo192.png" />
|
<link
|
||||||
|
rel="apple-touch-icon"
|
||||||
|
href="/assets/logo192.png"
|
||||||
|
media="print"
|
||||||
|
onload="this.media='all'"
|
||||||
|
/>
|
||||||
|
<link rel="manifest" href="/manifest.json" />
|
||||||
|
|
||||||
<link rel="manifest" href="manifest.json" />
|
<script>
|
||||||
<link rel="stylesheet" href="styles.css" />
|
(function () {
|
||||||
|
try {
|
||||||
|
var ls = localStorage.getItem("preferredTheme");
|
||||||
|
var theme =
|
||||||
|
ls === "dark" ||
|
||||||
|
(!ls && window.matchMedia("(prefers-color-scheme: dark)").matches)
|
||||||
|
? "dark"
|
||||||
|
: "light";
|
||||||
|
if (theme === "dark") document.documentElement.classList.add("dark");
|
||||||
|
} catch (e) {}
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
<script src="main.js" defer></script>
|
<style>
|
||||||
|
:root {
|
||||||
|
--base: #faf4ed;
|
||||||
|
--surface: #fffaf3;
|
||||||
|
--text: #575279;
|
||||||
|
--foam: #56949f;
|
||||||
|
}
|
||||||
|
.dark {
|
||||||
|
--base: #191724;
|
||||||
|
--surface: #1f1d2e;
|
||||||
|
--text: #e0def4;
|
||||||
|
--foam: #9ccfd8;
|
||||||
|
}
|
||||||
|
body,
|
||||||
|
html {
|
||||||
|
margin: 0;
|
||||||
|
width: 100%;
|
||||||
|
min-height: 100vh;
|
||||||
|
font-family: system-ui, sans-serif;
|
||||||
|
background-color: var(--base);
|
||||||
|
color: var(--text);
|
||||||
|
display: grid;
|
||||||
|
place-items: center;
|
||||||
|
overflow: auto;
|
||||||
|
overflow-anchor: none;
|
||||||
|
}
|
||||||
|
.page {
|
||||||
|
box-shadow: rgba(0, 0, 0, 0.19) 0 10px 20px 0,
|
||||||
|
rgba(0, 0, 0, 0.23) 0 6px 6px 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 8.5in;
|
||||||
|
height: 9in;
|
||||||
|
margin-top: 5px;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
background-color: var(--surface);
|
||||||
|
padding: 0.5in;
|
||||||
|
position: relative;
|
||||||
|
animation: 0.5s ease-out 0s 1 fadein;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 2.5in;
|
||||||
|
grid-template-rows: 1.1in 0.2fr 0.4fr auto;
|
||||||
|
gap: 0 0;
|
||||||
|
grid-template-areas: "header header" "bio aside" "world aside" "footer footer";
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
<title>Michał Czyż</title>
|
.avatar {
|
||||||
</head>
|
width: 2.5in;
|
||||||
|
height: 2.5in;
|
||||||
|
}
|
||||||
|
|
||||||
<body>
|
a {
|
||||||
|
color: var(--foam);
|
||||||
|
transition: 0.1s color ease-in-out, 0.1s text-decoration ease-in-out;
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
grid-area: header;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bio {
|
||||||
|
grid-area: bio;
|
||||||
|
}
|
||||||
|
|
||||||
|
.world {
|
||||||
|
grid-area: world;
|
||||||
|
}
|
||||||
|
|
||||||
|
.aside {
|
||||||
|
grid-area: aside;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
grid-area: footer;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 2000px) {
|
||||||
|
.page {
|
||||||
|
height: 11in;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 768px) and (max-width: 900px) {
|
||||||
|
html,
|
||||||
|
body {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0.25in;
|
||||||
|
box-shadow: none;
|
||||||
|
animation: none;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
margin-top: 0.25in;
|
||||||
|
grid-template-rows: none;
|
||||||
|
grid-template-columns: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 767px) {
|
||||||
|
html,
|
||||||
|
body {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0.25in;
|
||||||
|
box-shadow: none;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
grid-template-rows: 0.1fr 0.2fr 0.4fr auto;
|
||||||
|
gap: 0px 0px;
|
||||||
|
grid-template-areas:
|
||||||
|
"header"
|
||||||
|
"aside"
|
||||||
|
"bio"
|
||||||
|
"world"
|
||||||
|
"footer";
|
||||||
|
animation: none;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<link
|
||||||
|
rel="preload"
|
||||||
|
href="/assets/fonts/Coiny-Regular-subset.ttf"
|
||||||
|
as="font"
|
||||||
|
crossorigin="anonymous"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="stylesheet"
|
||||||
|
href="/styles.css"
|
||||||
|
media="print"
|
||||||
|
onload="this.media='all'"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<script type="application/ld+json">
|
||||||
|
{
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@type": "Person",
|
||||||
|
"name": "Michał Czyż",
|
||||||
|
"alternateName": "Mike",
|
||||||
|
"url": "https://c2yz.com/",
|
||||||
|
"jobTitle": "Software Developer, Student",
|
||||||
|
"alumniOf": {
|
||||||
|
"@type": "CollegeOrUniversity",
|
||||||
|
"name": "Silesian University of Technology"
|
||||||
|
},
|
||||||
|
"sameAs": [
|
||||||
|
"https://github.com/eRgo35",
|
||||||
|
"https://www.linkedin.com/in/mike-czyz",
|
||||||
|
"https://www.youtube.com/@eRgo35"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<title>Michał Czyż - Student, Software Developer | Official Website</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<script src="/main.js" defer></script>
|
||||||
<div class="page">
|
<div class="page">
|
||||||
<h1 class="header">
|
<h1 class="header coiny-regular">Hi, I'm Mike 👋🏻</h1>
|
||||||
Hi, I'm Mike 👋🏻
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
<div class="bio">
|
<div class="bio">
|
||||||
<h4>A Student and a Software Developer</h4>
|
<p class="small-text">
|
||||||
|
I'm currently working on new fascinating<br />
|
||||||
|
projects, so be sure to follow me!
|
||||||
|
</p>
|
||||||
|
|
||||||
<p>I'm currently working on new fascinating projects,
|
<h2 class="coiny-regular">Student / Software Developer</h2>
|
||||||
so be sure to follow me!</p>
|
|
||||||
|
|
||||||
<h4>About Mike</h4>
|
<p>
|
||||||
|
I am currently pursuing a degree in Computer Science at the Silesian
|
||||||
|
University of Technology in Gliwice. Programming is my passion. I have
|
||||||
|
experience working with a variety of languages. Recently, I have been
|
||||||
|
focusing my attention on Rust and JavaScript.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
I am also interested in artificial intelligence and machine learning.
|
||||||
|
In addition, I actively create and develop many projects to further
|
||||||
|
enhance my skills.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h2 class="coiny-regular">My Projects</h2>
|
||||||
|
|
||||||
|
<a class="button" href="https://github.com/eRgo35?tab=repositories"
|
||||||
|
>Go to <i>Projects</i></a
|
||||||
|
>
|
||||||
|
|
||||||
|
<h2 class="coiny-regular">Mike around the web</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li>⚙️ I use daily: <code>.rs</code>, <code>.js</code> <code>.py</code> <code>.sh</code> <code>.cpp</code> <code>.md</code></li>
|
<li>
|
||||||
<li>🏗️ Developed: <a href="https://github.com/eRgo35/lyra">lyra</a>, <a href="https://github.com/eRgo35/ah">ah</a>, <a href="https://github.com/eRgo35/ti">ti</a>, <a href="https://github.com/eRgo35/ascii">ascii</a>, etc...</li>
|
🐙 take a look at my <a href="https://github.com/eRgo35">GitHub</a>
|
||||||
<li>🍚 Check out my: <a href="https://github.com/eRgo35/dots">dotfiles</a>, <a href="https://github.com/eRgo35/nix-config">nix flake</a></li>
|
</li>
|
||||||
</ul>
|
<li>
|
||||||
|
💼 find me on
|
||||||
<h4>Mike around the web</h4>
|
<a href="https://www.linkedin.com/in/mike-czyz">LinkedIn</a>
|
||||||
<ul>
|
</li>
|
||||||
<li>🐙 take a look at my <a href="https://github.com/eRgo35">GitHub</a></li>
|
<li>
|
||||||
<li>💼 find me on <a href="https://www.linkedin.com/in/mike-czyz">LinkedIn</a></li>
|
📹 visit my <a href="https://www.youtube.com/@eRgo35">YouTube</a>
|
||||||
<li>📹 visit my <a href="https://www.youtube.com/@eRgo35">YouTube</a></li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="world">
|
<div class="world">
|
||||||
<!-- <p>Also, checkout <a href="https://scientia.c2yz.com">this site</a>. You might find it interesting. 👀</p> -->
|
<span>[📎 <a href="/assets/Michał_Czyż_CV.pdf">cv</a>]</span>
|
||||||
|
<span>[📧 <a href=" mailto:mike@c2yz.com?subject=Hi">contact</a>]</span>
|
||||||
<!-- <p>[📎 <a href="assets/resume.pdf"">resume</a>] [📧 <a href=" mailto:mike@c2yz.com?subject=Hi">contact</a>]</p> -->
|
|
||||||
<p>[📧 <a href=" mailto:mike@c2yz.com?subject=Hi">contact</a>]</p>
|
|
||||||
|
|
||||||
<span class="separator">. . .</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="aside">
|
<div class="aside">
|
||||||
<div class="avatar-wrapper">
|
<div class="avatar-wrapper">
|
||||||
<img src="assets/mike-czyz.webp" class="avatar" width="2.5in" height="2.5in" />
|
<img
|
||||||
<div class="theme">
|
src="/assets/mike-czyz.webp"
|
||||||
<i class="material-icons"></i>
|
class="avatar"
|
||||||
|
alt="Michał Czyż"
|
||||||
|
class="avatar"
|
||||||
|
width="2.5in"
|
||||||
|
height="2.5in"
|
||||||
|
fetchpriority="high"
|
||||||
|
/>
|
||||||
|
<div
|
||||||
|
class="theme"
|
||||||
|
aria-label="Toggle dark/light mode"
|
||||||
|
role="button"
|
||||||
|
tabindex="0"
|
||||||
|
>
|
||||||
|
<i class="material-icons">🌙</i>
|
||||||
<span class="theme-text">Dark Mode</span>
|
<span class="theme-text">Dark Mode</span>
|
||||||
</div>
|
</div>
|
||||||
|
<script>
|
||||||
|
const themeButton = document.querySelector(".theme");
|
||||||
|
function toggleTheme() {
|
||||||
|
const current = document.documentElement.classList.contains(
|
||||||
|
"dark"
|
||||||
|
)
|
||||||
|
? "dark"
|
||||||
|
: "light";
|
||||||
|
const newMode = current === "dark" ? "light" : "dark";
|
||||||
|
updateTheme(newMode);
|
||||||
|
}
|
||||||
|
themeButton.addEventListener("click", toggleTheme);
|
||||||
|
</script>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div class="copyright">
|
<div class="copyright">© <span id="year">2025</span></div>
|
||||||
© <span id="year">2024</span>
|
<script>
|
||||||
</div>
|
document.querySelector("#year").innerHTML = new Date().getFullYear();
|
||||||
|
</script>
|
||||||
<div class="gpg">
|
<div class="gpg">
|
||||||
<a href="assets/mike-czyz-public.gpg" target="_blank" class="gpg-key">
|
<a
|
||||||
|
href="/assets/mike-czyz-public.gpg"
|
||||||
|
target="_blank"
|
||||||
|
class="gpg-key"
|
||||||
|
>
|
||||||
🔑
|
🔑
|
||||||
<span>GPG</span>
|
<span>GPG</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
69
main.js
69
main.js
@@ -1,50 +1,39 @@
|
|||||||
const root = document.documentElement;
|
const root = document.documentElement;
|
||||||
const themeText = document.querySelector('.theme-text');
|
const themeText = document.querySelector(".theme-text");
|
||||||
const themeIcon = document.querySelector('.material-icons');
|
const themeIcon = document.querySelector(".material-icons");
|
||||||
|
|
||||||
const isDarkMode = () => root.classList.contains('dark');
|
const THEMES = {
|
||||||
|
light: { class: "", text: "Light Mode", icon: "☀️" },
|
||||||
const setDarkMode = () => {
|
dark: { class: "dark", text: "Dark Mode", icon: "🌙" },
|
||||||
root.classList.add('dark');
|
|
||||||
themeText.textContent = 'Dark Mode';
|
|
||||||
themeIcon.innerHTML = '';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const setLightMode = () => {
|
function updateTheme(mode) {
|
||||||
root.classList.remove('dark');
|
root.classList.toggle("dark", mode === "dark");
|
||||||
themeText.textContent = 'Light Mode';
|
themeText.textContent = THEMES[mode].text;
|
||||||
themeIcon.innerHTML = '';
|
themeIcon.textContent = THEMES[mode].icon;
|
||||||
};
|
localStorage.setItem("preferredTheme", mode);
|
||||||
|
}
|
||||||
|
|
||||||
const toggleTheme = () => {
|
function getPreferredTheme() {
|
||||||
if (isDarkMode()) {
|
const stored = localStorage.getItem("preferredTheme");
|
||||||
setLightMode();
|
if (stored === "dark" || stored === "light") {
|
||||||
localStorage.setItem('preferredTheme', 'light');
|
return stored;
|
||||||
} else {
|
|
||||||
setDarkMode();
|
|
||||||
localStorage.setItem('preferredTheme', 'dark');
|
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|
||||||
const checkPreferredTheme = () => {
|
return window.matchMedia("(prefers-color-scheme: dark)").matches
|
||||||
const preferredTheme = localStorage.getItem('preferredTheme');
|
? "dark"
|
||||||
if (preferredTheme === 'dark') {
|
: "light";
|
||||||
setDarkMode();
|
}
|
||||||
} else if (preferredTheme === 'light') {
|
|
||||||
setLightMode();
|
|
||||||
} else {
|
|
||||||
const prefersDarkScheme = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
||||||
if (prefersDarkScheme) {
|
|
||||||
setDarkMode();
|
|
||||||
} else {
|
|
||||||
setLightMode();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
document.querySelector("#year").innerHTML = new Date().getFullYear();
|
if ("serviceWorker" in navigator) {
|
||||||
|
window.addEventListener("load", () => {
|
||||||
|
navigator.serviceWorker.register("/sw.js");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
checkPreferredTheme();
|
navigator.serviceWorker.addEventListener("controllerchange", () => {
|
||||||
|
console.log("New version available, reloading...");
|
||||||
|
window.location.reload();
|
||||||
|
});
|
||||||
|
|
||||||
const themeButton = document.querySelector('.theme');
|
updateTheme(getPreferredTheme());
|
||||||
themeButton.addEventListener('click', toggleTheme);
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"short_name": "Mike Czyż",
|
"short_name": "Mike Czyż",
|
||||||
"name": "Michał Czyż's Website",
|
"name": "Michał Czyż's Website",
|
||||||
|
"description": "Michał Czyż - software developer, student, and creator.",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "assets/favicon.ico",
|
"src": "assets/favicon.ico",
|
||||||
|
|||||||
209
styles.css
209
styles.css
@@ -1,70 +1,62 @@
|
|||||||
@import url("https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:ital,wght@0,400;0,500;1,400&display=swap");
|
/* Coiny Regular */
|
||||||
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");
|
@font-face {
|
||||||
|
font-family: 'Coiny';
|
||||||
|
src: url('/assets/fonts/Coiny-Regular-subset.ttf') format('truetype');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
font-display: swap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
* {
|
* {
|
||||||
transition: background-color 0.15s ease-in-out;
|
transition: background-color 0.15s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
:root {
|
||||||
--rosewater: #dc8a78;
|
--base: #faf4ed;
|
||||||
--flamingo: #dd7878;
|
--surface: #fffaf3;
|
||||||
--pink: #ea76cb;
|
--overlay: #f2e9e1;
|
||||||
--mauve: #8839ef;
|
--muted: #9893a5;
|
||||||
--red: #d20f39;
|
--subtle: #797593;
|
||||||
--maroon: #e64553;
|
--text: #575279;
|
||||||
--peach: #fe640b;
|
--love: #b4637a;
|
||||||
--yellow: #df8e1d;
|
--gold: #ea9d34;
|
||||||
--green: #40a02b;
|
--rose: #d7827e;
|
||||||
--teal: #179299;
|
--pine: #286983;
|
||||||
--sky: #04a5e5;
|
--foam: #56949f;
|
||||||
--sapphire: #209fb5;
|
--iris: #907aa9;
|
||||||
--blue: #1e66f5;
|
--highlight-low: #f4ede8;
|
||||||
--lavender: #7287fd;
|
--highlight-med: #dfdad9;
|
||||||
--text: #434f69;
|
--highlight-high: #cecacd;
|
||||||
--subtext1: #5c5f77;
|
|
||||||
--subtext0: #6c6f85;
|
|
||||||
--overlay2: #7c7f93;
|
|
||||||
--overlay1: #8c8fa1;
|
|
||||||
--overlay0: #9ca0b0;
|
|
||||||
--surface2: #acb0be;
|
|
||||||
--surface1: #bcc0cc;
|
|
||||||
--surface0: #ccd0da;
|
|
||||||
--base: #eff1f5;
|
|
||||||
--mantle: #e6e9ef;
|
|
||||||
--crust: #dce0e8;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.dark {
|
.dark {
|
||||||
--rosewater: #f4dbd6;
|
--base: #191724;
|
||||||
--flamingo: #f0c6c6;
|
--surface: #1f1d2e;
|
||||||
--pink: #f5bde6;
|
--overlay: #26233a;
|
||||||
--mauve: #c6a0f6;
|
--muted: #6e6a86;
|
||||||
--red: #ed8796;
|
--subtle: #908caa;
|
||||||
--maroon: #ee99a0;
|
--text: #e0def4;
|
||||||
--peach: #f5a97f;
|
--love: #eb6f92;
|
||||||
--yellow: #eed49f;
|
--gold: #f6c177;
|
||||||
--green: #a6da95;
|
--rose: #ebbcba;
|
||||||
--teal: #8bd5ca;
|
--pine: #31748f;
|
||||||
--sky: #91d7e3;
|
--foam: #9ccfd8;
|
||||||
--sapphire: #7dc4e4;
|
--iris: #c4a7e7;
|
||||||
--blue: #8aadf4;
|
--highlight-low: #21202e;
|
||||||
--lavender: #b7bdf8;
|
--highlight-med: #403d52;
|
||||||
--text: #cad3f5;
|
--highlight-high: #524f67;
|
||||||
--subtext1: #b8c0e0;
|
|
||||||
--subtext0: #a5adcb;
|
|
||||||
--overlay2: #939ab7;
|
|
||||||
--overlay1: #8087a2;
|
|
||||||
--overlay0: #6e738d;
|
|
||||||
--surface2: #5b6078;
|
|
||||||
--surface1: #494d64;
|
|
||||||
--surface0: #363a4f;
|
|
||||||
--base: #24273a;
|
|
||||||
--mantle: #1e2030;
|
|
||||||
--crust: #181926;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.coiny-regular {
|
||||||
|
font-family: "Coiny", system-ui;
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
::selection {
|
::selection {
|
||||||
background-color: var(--overlay0);
|
background-color: var(--overlay);
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes fadein {
|
@keyframes fadein {
|
||||||
@@ -89,11 +81,11 @@ body {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
/* height: 100vh; */
|
/* height: 100vh; */
|
||||||
background-color: var(--crust);
|
font-family: system-ui, sans-serif;
|
||||||
|
background-color: var(--base);
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
display: grid;
|
display: grid;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
font-family: "Schibsted Grotesk", sans-serif;
|
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
overflow-anchor: none;
|
overflow-anchor: none;
|
||||||
}
|
}
|
||||||
@@ -105,16 +97,16 @@ body {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
width: 8.5in;
|
width: 8.5in;
|
||||||
/* height: 11in; */
|
/* height: 11in; */
|
||||||
height: 8in;
|
height: 9in;
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
background-color: var(--base);
|
background-color: var(--surface);
|
||||||
padding: 0.5in;
|
padding: 0.5in;
|
||||||
position: relative;
|
position: relative;
|
||||||
animation: 0.5s ease-out 0s 1 fadein;
|
animation: 0.5s ease-out 0s 1 fadein;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 2.5in;
|
grid-template-columns: 1fr 2.5in;
|
||||||
grid-template-rows: 0.85in 0.2fr 0.4fr auto;
|
grid-template-rows: 1.1in 0.2fr 0.4fr auto;
|
||||||
gap: 0px 0px;
|
gap: 0px 0px;
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"header header"
|
"header header"
|
||||||
@@ -126,35 +118,45 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: var(--sapphire);
|
color: var(--foam);
|
||||||
transition:
|
transition:
|
||||||
0.1s color ease-in-out,
|
0.1s color ease-in-out,
|
||||||
0.1s text-decoration ease-in-out;
|
0.1s text-decoration ease-in-out;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover,
|
a:hover,
|
||||||
a:active,
|
a:active,
|
||||||
a:focus {
|
a:focus {
|
||||||
color: var(--blue);
|
color: var(--iris);
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
grid-area: header;
|
grid-area: header;
|
||||||
|
font-size: 3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bio {
|
.bio {
|
||||||
grid-area: bio;
|
grid-area: bio;
|
||||||
padding: 0 0.5in 0 0;
|
padding: 0 0.5in 0 0;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
hyphens: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.small-text {
|
||||||
|
font-style: italic;
|
||||||
|
font-size: 0.8em;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.world {
|
.world {
|
||||||
grid-area: world;
|
grid-area: world;
|
||||||
}
|
display: flex;
|
||||||
|
gap: 0.5em;
|
||||||
.separator {
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.aside {
|
.aside {
|
||||||
@@ -171,6 +173,7 @@ a:focus {
|
|||||||
grid-template-columns: 0.3fr 0.7fr;
|
grid-template-columns: 0.3fr 0.7fr;
|
||||||
column-gap: 0.5in;
|
column-gap: 0.5in;
|
||||||
align-self: end;
|
align-self: end;
|
||||||
|
margin-top: 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.copyright {
|
.copyright {
|
||||||
@@ -192,13 +195,64 @@ a:focus {
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button {
|
||||||
|
display: block;
|
||||||
|
padding: 1em 2em;
|
||||||
|
color: var(--text);
|
||||||
|
z-index: 0;
|
||||||
|
position: relative;
|
||||||
|
border-radius: 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button:hover, .button:active, .button:focus {
|
||||||
|
text-decoration: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button:before {
|
||||||
|
content: '';
|
||||||
|
background: linear-gradient(45deg, var(--love), var(--gold), var(--rose), var(--pine), var(--foam), var(--iris), var(--love));
|
||||||
|
position: absolute;
|
||||||
|
top: -1px;
|
||||||
|
left: -1px;
|
||||||
|
background-size: 200%;
|
||||||
|
z-index: -1;
|
||||||
|
filter: blur(4px);
|
||||||
|
width: calc(100% + 2px);
|
||||||
|
height: calc(100% + 2px);
|
||||||
|
animation: glowing 30s linear infinite;
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity .3s ease-in-out;
|
||||||
|
border-radius: 10px;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button:after {
|
||||||
|
z-index: -1;
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: var(--base);
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
border-radius: 10px;
|
||||||
|
transition: background 0.1s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes glowing {
|
||||||
|
0% { background-position: 0 0; }
|
||||||
|
50% { background-position: 400% 0; }
|
||||||
|
100% { background-position: 0 0; }
|
||||||
|
}
|
||||||
|
|
||||||
.theme {
|
.theme {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0.125in;
|
bottom: 0.125in;
|
||||||
right: 0.125in;
|
right: 0.125in;
|
||||||
background-color: var(--mantle);
|
background-color: var(--base);
|
||||||
color: var(--yellow);
|
color: var(--gold);
|
||||||
border: 1px solid var(--overlay0);
|
border: 1px solid var(--overlay);
|
||||||
border-radius: 10in;
|
border-radius: 10in;
|
||||||
margin: 0.125in 0 0;
|
margin: 0.125in 0 0;
|
||||||
padding: 0.125in;
|
padding: 0.125in;
|
||||||
@@ -216,7 +270,8 @@ a:focus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.material-icons {
|
.material-icons {
|
||||||
font-family: "Material Icons";
|
font-size: 1.25em;
|
||||||
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.theme-text {
|
.theme-text {
|
||||||
@@ -307,7 +362,7 @@ a:focus {
|
|||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
grid-template-rows: 0.85in 0.2fr 0.4fr auto;
|
grid-template-rows: 0.1fr 0.2fr 0.4fr auto;
|
||||||
gap: 0px 0px;
|
gap: 0px 0px;
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"header"
|
"header"
|
||||||
@@ -319,6 +374,10 @@ a:focus {
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
font-size: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
.theme:focus,
|
.theme:focus,
|
||||||
.theme:active,
|
.theme:active,
|
||||||
.theme:hover {
|
.theme:hover {
|
||||||
@@ -332,7 +391,8 @@ a:focus {
|
|||||||
.bio {
|
.bio {
|
||||||
grid-template-columns: none;
|
grid-template-columns: none;
|
||||||
grid-template-rows: 2.5in 1fr;
|
grid-template-rows: 2.5in 1fr;
|
||||||
place-items: center;
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -340,6 +400,11 @@ a:focus {
|
|||||||
grid-row: 1;
|
grid-row: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.small-text {
|
||||||
|
text-align: center;
|
||||||
|
margin: 0.5em 0;
|
||||||
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
margin-top: 0.25in;
|
margin-top: 0.25in;
|
||||||
position: static;
|
position: static;
|
||||||
|
|||||||
54
sw.js
Normal file
54
sw.js
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
const CACHE_VERSION = "v1-202507271"; // update this on every deploy!
|
||||||
|
const CACHE_NAME = `c2yz-cache-${CACHE_VERSION}`;
|
||||||
|
|
||||||
|
const ASSETS_TO_CACHE = [
|
||||||
|
"/",
|
||||||
|
"/index.html",
|
||||||
|
"/styles.css",
|
||||||
|
"/main.js",
|
||||||
|
"/assets/fonts/Coiny-Regular-subset.ttf",
|
||||||
|
"/assets/card.png",
|
||||||
|
"/assets/mike-czyz.webp",
|
||||||
|
"/manifest.json",
|
||||||
|
];
|
||||||
|
|
||||||
|
self.addEventListener("install", (event) => {
|
||||||
|
event.waitUntil(
|
||||||
|
caches.open(CACHE_NAME).then((cache) => cache.addAll(ASSETS_TO_CACHE))
|
||||||
|
);
|
||||||
|
self.skipWaiting();
|
||||||
|
});
|
||||||
|
|
||||||
|
self.addEventListener("activate", (event) => {
|
||||||
|
event.waitUntil(
|
||||||
|
caches
|
||||||
|
.keys()
|
||||||
|
.then((keys) =>
|
||||||
|
Promise.all(
|
||||||
|
keys.filter((k) => k !== CACHE_NAME).map((k) => caches.delete(k))
|
||||||
|
)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
self.clients.claim();
|
||||||
|
});
|
||||||
|
|
||||||
|
self.addEventListener("fetch", (event) => {
|
||||||
|
event.respondWith(
|
||||||
|
caches.match(event.request, { ignoreSearch: true }).then(
|
||||||
|
(cached) =>
|
||||||
|
cached ||
|
||||||
|
fetch(event.request)
|
||||||
|
.then((response) => {
|
||||||
|
return response;
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
// Optional: fallback response when offline and not cached
|
||||||
|
// return caches.match('/offline.html');
|
||||||
|
})
|
||||||
|
)
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
self.addEventListener("message", (event) => {
|
||||||
|
if (event.data === "skipWaiting") self.skipWaiting();
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user