Skip to content

Commit

Permalink
php :)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrepol742 committed Apr 30, 2024
1 parent fcdcd86 commit 26dc940
Show file tree
Hide file tree
Showing 186 changed files with 5,016 additions and 13,360 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/codeql.yml

This file was deleted.

23 changes: 18 additions & 5 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,30 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v5
- name: Download Dependecies
run: |
composer install
- name: Start Localhost & Download Site
run: |
php -S localhost:8000
wget -mpEk "http://localhost:8000"
wget https://raw.githubusercontent.com/mrepol742/mrepol742.github.io/master/ads.txt
wget https://raw.githubusercontent.com/mrepol742/mrepol742.github.io/master/sw.js
wget https://raw.githubusercontent.com/mrepol742/mrepol742.github.io/master/yandex_b229053f47e9b4b5.html
wget https://raw.githubusercontent.com/mrepol742/mrepol742.github.io/master/qkdq6zub0hw6o6acpoiylfrrf5e7g1.html
wget https://raw.githubusercontent.com/mrepol742/mrepol742.github.io/master/pinterest-326fc.html
wget https://raw.githubusercontent.com/mrepol742/mrepol742.github.io/master/google022983bf0cf659ae.html
wget https://raw.githubusercontent.com/mrepol742/mrepol742.github.io/master/f20756182df645f9b8cf6254654dd5da.html
wget https://raw.githubusercontent.com/mrepol742/mrepol742.github.io/master/favicon_192.png
wget https://raw.githubusercontent.com/mrepol742/mrepol742.github.io/master/favicon_512.png
- name: Generate RSS
run: |
wget https://github.com/mrepol742/RSS-Generator/releases/download/v1.1.3/RSS-Generator-1.0-jar-with-dependencies.jar
Expand All @@ -44,9 +57,9 @@ jobs:
java -cp Sitemap-Generator-1.0-jar-with-dependencies.jar com.mrepol742.sitemapgenerator.App --domain https://mrepol742.github.io/ --publisher "Melvin Jones Gallano Repol"
rm -rf Sitemap-Generator-1.0-jar-with-dependencies.jar
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
path: '.'
path: 'localhost:8000'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/vendor
/localhost:8000
359 changes: 0 additions & 359 deletions 404.html

This file was deleted.

48 changes: 48 additions & 0 deletions 404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!DOCTYPE html>
<html lang="en">

<head>
<?php
include("includes/head.php");

$meta = new meta();
$meta->setTitle(
"Page not found - Melvin Jones Gallano Repol",
"I'm a Self-taught Freelance Software Engineer with experience in full-stack web development, seo, data analyics, embedded system design with arduino programming, hardware & software troubleshooting and PWA.",
"https://mrepol742.github.io/"
);
$meta->setImage("https://mrepol742.github.io/images/cover.jpg", "Cover Photo");
$meta->setKeywords("melvin jones, mrepol742, repol, mjrepol, melvin jones gallano repol, melvinjonesrepol");
?>
</head>

<body class="d-flex flex-column min-vh-100">

<?php
include('includes/nav.php');
include('includes/components/toast/privacypolicy.php');
?>

<main>
<div class="py-5">
<img src="https://i.gifer.com/WRNx.gif" class="rounded m-2">
<h1 class="mt-3">The page or file you are looking for was not here and I don't know why.</h1>
</div>
<br>
<div class="card mb-5">
<div class="card-body">
<h5 class="card-title">Found a problem with this page?</h5>
<ul class="card-text">
<li><a href="https://github.com/mrepol742/mrepol742.github.io/edit/master/search/index.html" target="_blank">Edit on Github</a></li>
<li><a href="https://github.com/mrepol742/mrepol742.github.io/blob/master/search/index.html?plain=1" target="_blank">Source on Github</a></li>
<li><a href="https://github.com/mrepol742/mrepol742.github.io/issues/new?">Report a problem with this
content on GitHub</a></li>

</ul>
</div>
</div>
</main>
<?php include('includes/footer.php') ?>
</body>

</html>
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions css/chat.css → assets/css/chat.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("/fonts/MavenPro.woff2") format('woff2');
src: url("/assets/fonts/MavenPro.woff2") format('woff2');
}

@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("/fonts/SourceCodePro-Regular.ttf");
src: url("/assets/fonts/SourceCodePro-Regular.ttf");
}

h1, h2, h3, h4, h5, h6, th {
Expand Down Expand Up @@ -366,7 +366,7 @@ main {
}

.navbar-toggler-icon {
background-image: url("/images/menu.svg");
background-image: url("/assets/images/menu.svg");
background-size: 80%;
background-position: center center;
width: 25px;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion css/ily.css → assets/css/ily.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("/fonts/SourceCodePro-Regular.ttf");
src: url("/assets/fonts/SourceCodePro-Regular.ttf");
}


Expand Down
14 changes: 3 additions & 11 deletions css/main.css → assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("/fonts/MavenPro.woff2") format('woff2');
src: url("/assets/fonts/MavenPro.woff2") format('woff2');
}

@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("/fonts/SourceCodePro-Regular.ttf");
src: url("/assets/fonts/SourceCodePro-Regular.ttf");
}

h1,
Expand Down Expand Up @@ -261,14 +261,6 @@ nav {
border: none;
}

.text-center {
padding-top: 10%;
}

.text-center2 {
text-align: center;
}

p.top {
font-size: 1.2em;
}
Expand Down Expand Up @@ -445,7 +437,7 @@ footer {
}

.navbar-toggler-icon {
background-image: url("/images/menu.svg");
background-image: url("/assets/images/menu.svg");
background-size: 80%;
background-position: center center;
width: 25px;
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions css/search.css → assets/css/search.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("/fonts/MavenPro.woff2") format('woff2');
src: url("/assets/fonts/MavenPro.woff2") format('woff2');
}

@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("/fonts/SourceCodePro-Regular.ttf");
src: url("/assets/fonts/SourceCodePro-Regular.ttf");
}

h1, h2, h3, h4, h5, h6, th {
Expand Down Expand Up @@ -214,7 +214,7 @@ main {
padding-top: 10%;
}

.text-center2 {
.text-center {
text-align: center;
}

Expand Down Expand Up @@ -410,7 +410,7 @@ nav {
}

.navbar-toggler-icon {
background-image: url("/images/chevron-down.svg");
background-image: url("/assets/images/chevron-down.svg");
background-size: 80%;
background-position: center center;
width: 25px;
Expand Down
4 changes: 2 additions & 2 deletions css/sitemap.xsl → assets/css/sitemap.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("/fonts/MavenPro.woff2") format('woff2');
src: url("/assets/fonts/MavenPro.woff2") format('woff2');
}

@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("/fonts/SourceCodePro-Regular.ttf");
src: url("/assets/fonts/SourceCodePro-Regular.ttf");
}

h1, h2, h3, h4, h5, h6, th {
Expand Down
2 changes: 1 addition & 1 deletion css/ss.css → assets/css/ss.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("/fonts/MavenPro.woff2") format('woff2');
src: url("/assets/fonts/MavenPro.woff2") format('woff2');
}

* {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
8 changes: 4 additions & 4 deletions js/chat.js → assets/js/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ recognition.onresult = function (event) {
};
recognition.onspeechend = function () {
recognition.stop();
var audio = new Audio("/audios/transition-base.mp3");
var audio = new Audio("/assets/audios/transition-base.mp3");
audio.play();
status = true;
};
Expand All @@ -120,7 +120,7 @@ function removetype() {

async function sendMsg() {
removetype();
var audio = new Audio("/audios/send.wav");
var audio = new Audio("/assets/audios/send.wav");
audio.play();
let txtInp = document.getElementById("txt").value;

Expand Down Expand Up @@ -277,14 +277,14 @@ voice.addEventListener("click", () => {
notif("Speak now...");
status = false;
recognition.start();
var audio = new Audio("/audios/transition-base.mp3");
var audio = new Audio("/assets/audios/transition-base.mp3");
audio.play();
}
});

newchat.addEventListener("click", () => {
clear();
var audio = new Audio("/audios/reload.mp3");
var audio = new Audio("/assets/audios/reload.mp3");
audio.play();
});

Expand Down
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions js/main.js → assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,4 +270,14 @@ videos.forEach(video => {
video.addEventListener('mouseleave', () => {
video.pause();
});
});

const originalTitle = document.title;

window.addEventListener('blur', () => {
document.title = 'Come back please :( - ' + originalTitle;
});

window.addEventListener('focus', () => {
document.title = originalTitle;
});
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 26dc940

Please sign in to comment.