Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
turbomaster95 committed Aug 25, 2024
1 parent 1ad060a commit 4586f9b
Show file tree
Hide file tree
Showing 14 changed files with 174 additions and 41 deletions.
7 changes: 5 additions & 2 deletions docs/.files
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
./about.html
./bigasciiart.txt
./index.html
./style.css
./index.js
./archive.html
./smallasciiart.txt
./style.css
./about.html
15 changes: 6 additions & 9 deletions docs/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,18 @@
<meta name="author" content="Deva Midhun">
<meta name="robots" content="follow, index, max-snippet:-1, max-video-preview:-1, max-image-preview:large"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="/index.js"></script>
<link rel="icon" type="image/png" href="/favicon.png">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preconnect" href="https://fonts.googleapis.com" defer>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin defer>
<link href="https://fonts.googleapis.com/css2?family=Courier+Prime:wght@700&family=Inconsolata&family=Source+Code+Pro&display=swap" rel="stylesheet">
<title>Coderrrrr.site : A Personal site for @turbomaster95 &mdash; Coderrrrr's Portfolio</title>
</head>
<body>

<pre style="font-family:'Courier Prime';color:var(--accent-color);text-align:center;font-weight:1000">
_____ _
/ ____| | |
| | ___ __| | ___ _ __ _ __ _ __ _ __ _ __
| | / _ \ / _` |/ _ \ '__| '__| '__| '__| '__|
| |___| (_) | (_| | __/ | | | | | | | | |
\_____\___/ \__,_|\___|_| |_| |_| |_| |_|
turbomaster95's site</pre>
</pre>
<nav>
<a href="/index.html">home</a>
<a href="mailto:dev@deva.is-cool.dev">mail</a>
Expand Down Expand Up @@ -114,3 +110,4 @@ <h1>Coderrrrr.site : A Personal site for @turbomaster95</h1>
<i class="far fa-copyright"></i> 2024-2024 </p>
</footer>
</body>
</html>
42 changes: 33 additions & 9 deletions docs/archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,18 @@
<meta name="author" content="Deva Midhun">
<meta name="robots" content="follow, index, max-snippet:-1, max-video-preview:-1, max-image-preview:large"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="/index.js"></script>
<link rel="icon" type="image/png" href="/favicon.png">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preconnect" href="https://fonts.googleapis.com" defer>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin defer>
<link href="https://fonts.googleapis.com/css2?family=Courier+Prime:wght@700&family=Inconsolata&family=Source+Code+Pro&display=swap" rel="stylesheet">
<title>ARCHIVE &mdash; Coderrrrr's Portfolio</title>
</head>
<body>

<pre style="font-family:'Courier Prime';color:var(--accent-color);text-align:center;font-weight:1000">
_____ _
/ ____| | |
| | ___ __| | ___ _ __ _ __ _ __ _ __ _ __
| | / _ \ / _` |/ _ \ '__| '__| '__| '__| '__|
| |___| (_) | (_| | __/ | | | | | | | | |
\_____\___/ \__,_|\___|_| |_| |_| |_| |_|
turbomaster95's site</pre>
</pre>
<nav>
<a href="/index.html">home</a>
<a href="mailto:dev@deva.is-cool.dev">mail</a>
Expand All @@ -38,10 +34,37 @@ <h1 style="display: none;"> ARCHIVE </h1>
<h1 style="display: none;"> ARCHIVE </h1>
<h1 style="display: none;"> ARCHIVE </h1>
<h1 style="display: none;"> ARCHIVE </h1>
<h1 style="display: none;"> ARCHIVE </h1>
<h1 style="display: none;"> ARCHIVE </h1>
<h1 style="display: none;"> ARCHIVE </h1>
<h1 style="display: none;"> ARCHIVE </h1>
<h1 style="display: none;"> ARCHIVE </h1>
<h1 style="display: none;"> ARCHIVE </h1>
<h1 style="display: none;"> ARCHIVE </h1>
<h1 style="display: none;"> ARCHIVE </h1>
<h1 style="display: none;"> ARCHIVE </h1>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
<ul>
<ul>
<ul>
<ul>
<ul>
<ul>
<ul>
<ul>
<ul>
<ul>
<ul>
<ul>
Expand All @@ -53,3 +76,4 @@ <h1 style="display: none;"> ARCHIVE </h1>
<i class="far fa-copyright"></i> 2024-2024 </p>
</footer>
</body>
</html>
8 changes: 8 additions & 0 deletions docs/bigasciiart.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
_____ _
/ ____| | |
| | ___ __| | ___ _ __ _ __ _ __ _ __ _ __
| | / _ \ / _` |/ _ \ '__| '__| '__| '__| '__|
| |___| (_) | (_| | __/ | | | | | | | | |
\_____\___/ \__,_|\___|_| |_| |_| |_| |_|
turbomaster95's site

15 changes: 6 additions & 9 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,18 @@
<meta name="author" content="Deva Midhun">
<meta name="robots" content="follow, index, max-snippet:-1, max-video-preview:-1, max-image-preview:large"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="/index.js"></script>
<link rel="icon" type="image/png" href="/favicon.png">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preconnect" href="https://fonts.googleapis.com" defer>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin defer>
<link href="https://fonts.googleapis.com/css2?family=Courier+Prime:wght@700&family=Inconsolata&family=Source+Code+Pro&display=swap" rel="stylesheet">
<title>Coderrrrr's Portfolio</title>
</head>
<body>

<pre style="font-family:'Courier Prime';color:var(--accent-color);text-align:center;font-weight:1000">
_____ _
/ ____| | |
| | ___ __| | ___ _ __ _ __ _ __ _ __ _ __
| | / _ \ / _` |/ _ \ '__| '__| '__| '__| '__|
| |___| (_) | (_| | __/ | | | | | | | | |
\_____\___/ \__,_|\___|_| |_| |_| |_| |_|
turbomaster95's site</pre>
</pre>
<nav>
<a href="/index.html">home</a>
<a href="mailto:dev@deva.is-cool.dev">mail</a>
Expand All @@ -41,3 +37,4 @@
<i class="far fa-copyright"></i> 2024-2024 </p>
</footer>
</body>
</html>
31 changes: 31 additions & 0 deletions docs/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
const preElement = document.querySelector('pre');
const isMobileDevice = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);

// Function to fetch ASCII art from a file
async function fetchAsciiArt(filename) {
try {
const response = await fetch(filename);
if (!response.ok) {
throw new Error(`Failed to fetch ${filename}`);
}
return await response.text();
} catch (error) {
console.error('Error loading ASCII art:', error);
return ''; // Return an empty string on error
}
}

// Load ASCII art and update <pre>
async function displayAsciiArt() {
const bigAsciiArt = await fetchAsciiArt('bigasciiart.txt');
const smallAsciiArt = await fetchAsciiArt('smallasciiart.txt');

if (isMobileDevice) {
preElement.textContent = smallAsciiArt;
} else {
preElement.textContent = bigAsciiArt;
}
}

// Call the function to display the art
displayAsciiArt();
6 changes: 3 additions & 3 deletions docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url><loc>https://coderrrrr.site/about.html</loc><lastmod>2024-06-08</lastmod><priority>1.0</priority></url>
<url><loc>https://coderrrrr.site/index.html</loc><lastmod>2024-06-08</lastmod><priority>1.0</priority></url>
<url><loc>https://coderrrrr.site/archive.html</loc><lastmod>2024-06-08</lastmod><priority>1.0</priority></url>
<url><loc>https://coderrrrr.site/index.html</loc><lastmod>2024-08-25</lastmod><priority>1.0</priority></url>
<url><loc>https://coderrrrr.site/archive.html</loc><lastmod>2024-08-25</lastmod><priority>1.0</priority></url>
<url><loc>https://coderrrrr.site/about.html</loc><lastmod>2024-08-25</lastmod><priority>1.0</priority></url>
</urlset>
5 changes: 5 additions & 0 deletions docs/smallasciiart.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
___ _
/ __|___ __| |___ _ _ _ _ _ _ _ _ _ _
| (__/ _ / _` / -_| '_| '_| '_| '_| '_|
\___\___\__,_\___|_| |_| |_| |_| |_|
turbomaster95's site
1 change: 1 addition & 0 deletions src/_footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
<i class="far fa-copyright"></i> 2024-2024 </p>
</footer>
</body>
</html>
14 changes: 5 additions & 9 deletions src/_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,18 @@
<meta name="author" content="Deva Midhun">
<meta name="robots" content="follow, index, max-snippet:-1, max-video-preview:-1, max-image-preview:large"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="/index.js"></script>
<link rel="icon" type="image/png" href="/favicon.png">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preconnect" href="https://fonts.googleapis.com" defer>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin defer>
<link href="https://fonts.googleapis.com/css2?family=Courier+Prime:wght@700&family=Inconsolata&family=Source+Code+Pro&display=swap" rel="stylesheet">
<title></title>
</head>
<body>

<pre style="font-family:'Courier Prime';color:var(--accent-color);text-align:center;font-weight:1000">
_____ _
/ ____| | |
| | ___ __| | ___ _ __ _ __ _ __ _ __ _ __
| | / _ \ / _` |/ _ \ '__| '__| '__| '__| '__|
| |___| (_) | (_| | __/ | | | | | | | | |
\_____\___/ \__,_|\___|_| |_| |_| |_| |_|
turbomaster95's site</pre>
</pre>
<nav>
<a href="/index.html">home</a>
<a href="mailto:dev@deva.is-cool.dev">mail</a>
Expand Down
27 changes: 27 additions & 0 deletions src/archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,37 @@ <h1 style="display: none;"> ARCHIVE </h1>
<h1 style="display: none;"> ARCHIVE </h1>
<h1 style="display: none;"> ARCHIVE </h1>
<h1 style="display: none;"> ARCHIVE </h1>
<h1 style="display: none;"> ARCHIVE </h1>
<h1 style="display: none;"> ARCHIVE </h1>
<h1 style="display: none;"> ARCHIVE </h1>
<h1 style="display: none;"> ARCHIVE </h1>
<h1 style="display: none;"> ARCHIVE </h1>
<h1 style="display: none;"> ARCHIVE </h1>
<h1 style="display: none;"> ARCHIVE </h1>
<h1 style="display: none;"> ARCHIVE </h1>
<h1 style="display: none;"> ARCHIVE </h1>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
<ul>
<ul>
<ul>
<ul>
<ul>
<ul>
<ul>
<ul>
<ul>
<ul>
<ul>
<ul>
Expand Down
8 changes: 8 additions & 0 deletions src/bigasciiart.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
_____ _
/ ____| | |
| | ___ __| | ___ _ __ _ __ _ __ _ __ _ __
| | / _ \ / _` |/ _ \ '__| '__| '__| '__| '__|
| |___| (_) | (_| | __/ | | | | | | | | |
\_____\___/ \__,_|\___|_| |_| |_| |_| |_|
turbomaster95's site

31 changes: 31 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
const preElement = document.querySelector('pre');
const isMobileDevice = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);

// Function to fetch ASCII art from a file
async function fetchAsciiArt(filename) {
try {
const response = await fetch(filename);
if (!response.ok) {
throw new Error(`Failed to fetch ${filename}`);
}
return await response.text();
} catch (error) {
console.error('Error loading ASCII art:', error);
return ''; // Return an empty string on error
}
}

// Load ASCII art and update <pre>
async function displayAsciiArt() {
const bigAsciiArt = await fetchAsciiArt('bigasciiart.txt');
const smallAsciiArt = await fetchAsciiArt('smallasciiart.txt');

if (isMobileDevice) {
preElement.textContent = smallAsciiArt;
} else {
preElement.textContent = bigAsciiArt;
}
}

// Call the function to display the art
displayAsciiArt();
5 changes: 5 additions & 0 deletions src/smallasciiart.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
___ _
/ __|___ __| |___ _ _ _ _ _ _ _ _ _ _
| (__/ _ / _` / -_| '_| '_| '_| '_| '_|
\___\___\__,_\___|_| |_| |_| |_| |_|
turbomaster95's site

0 comments on commit 4586f9b

Please sign in to comment.