mirror of
https://github.com/the-spellman/homepage
synced 2024-12-23 09:42:29 -06:00
Add files via upload
This commit is contained in:
parent
25ab225617
commit
3ba83e4cd6
5 changed files with 228 additions and 1 deletions
19
LICENSE
Normal file
19
LICENSE
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
The Samuel Public License Revision 5 (SPL-R5)
|
||||||
|
|
||||||
|
Copyright (c) 2024 Samuel Lord
|
||||||
|
|
||||||
|
This document grants permission, without charge, to any individual acquiring a copy of the software and its associated documentation files (hereinafter referred to as the "Software"). Such individuals are authorized to engage in activities related to the Software with certain restrictions (listed below), including, but not limited to, the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software. These permissions extend to persons to whom the Software is furnished, subject to compliance with the specified conditions outlined below.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
In making contributions to the Software, contributors irrevocably assign, transfer, and convey all rights, titles, and interests in and to their contributions to the project owner(s). This assignment is absolute and encompasses all intellectual property rights, including, but not limited to, copyrights, patents, trademarks, and trade secrets. Contributors acknowledge and consent that they have no further claim, right, or interest in their contributions and agree to relinquish any moral rights associated with the contributed content. This assignment is effective upon the act of contributing to the Software, and contributors affirm that they have the authority to make such an assignment. However, contributors retain the right to modify their contributions.
|
||||||
|
|
||||||
|
Furthermore, this document permits the reuse and redistribution of both executable binaries and source code, contingent upon the inclusion of the previously mentioned copyright notice and permission notice in all copies or substantial portions of the Software. It is imperative that you explicitly acknowledge and agree that the owner(s) retain ownership rights over the aforementioned source code.
|
||||||
|
|
||||||
|
Moreover, companies using the Software are encouraged to contribute upstream. Fortune 500 companies are required to make an annual contribution of at least 20,000 USD or an equivalent amount to support the project's sustainability unless no donation option is provided.
|
||||||
|
|
||||||
|
Additionally, note that the use of AI-assisted tools, including but not limited to GitHub Copilot and ChatGPT, is expressly permitted in conjunction with this software. Users are encouraged to leverage these AI tools to enhance their experience in developing, modifying, and interacting with the Software. The permission granted herein extends to the integration and utilization of AI-generated content for coding and communication purposes. The owners(s) of the Software acknowledge and embrace the collaborative nature of AI-assisted development.
|
||||||
|
|
||||||
|
In addition, the owner of the code is granted the authority to update their copy of The Samuel Public License (SPL) to the latest revision. This update may be undertaken at the discretion of the owner to ensure alignment with any subsequent revisions made to The Samuel Public License.
|
||||||
|
|
||||||
|
The aforementioned copyright notice and this permission notice must be included in all copies or substantial portions of the Software.
|
|
@ -1 +1,3 @@
|
||||||
# homepage
|
# homepage
|
||||||
|
|
||||||
|
My Personal Homepage
|
79
index.html
Normal file
79
index.html
Normal file
|
@ -0,0 +1,79 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Sam's Homepage</title>
|
||||||
|
<link rel="stylesheet" href="styling.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<!--a header saying hello -->
|
||||||
|
<div align="center">
|
||||||
|
<h1>"Hello, World!" --some computer</h1>
|
||||||
|
<p><b><i id="biblepassage"></i></b></p>
|
||||||
|
<div id="search-bar">
|
||||||
|
<input type="text" id="search-input" placeholder="Search Sparksammy">
|
||||||
|
<button id="search-button">Search</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2>Nifty Links</h2>
|
||||||
|
|
||||||
|
<h3>AI/Social</h3>
|
||||||
|
<p>
|
||||||
|
<a href="https://gemini.google.com/app">Gemini</a>
|
||||||
|
<a href="https://chat.openai.com">ChatGPT</a>
|
||||||
|
<a href="https://discord.com/app">Discord</a>
|
||||||
|
<a href="https://linktr.ee/anonymouse42">Sparksammy's Linktree</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3>Learning & Education</h3>
|
||||||
|
<p>
|
||||||
|
<a href="https://www.udemy.com/">Udemy</a>
|
||||||
|
<a href="https://www.youtube.com/c/freeCodeCamp">freeCodeCamp.org</a>
|
||||||
|
<a href="https://www.youtube.com/c/TheCodingTrain">The Coding Train</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3>Documentation</h3>
|
||||||
|
<p>
|
||||||
|
<a href="https://developer.mozilla.org/en-US/docs/Web">Mozilla Developer Docs</a>
|
||||||
|
<a href="https://developer.roblox.com/en-US/">ROBLOX Developer Wiki</a>
|
||||||
|
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript">JavaScript MDN Docs</a>
|
||||||
|
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML">HTML MDN Docs</a>
|
||||||
|
<a href="https://developer.mozilla.org/en-US/docs/Web/CSS">CSS MDN Docs</a>
|
||||||
|
<a href="https://docs.microsoft.com/en-us/windows/">Windows Documentation</a>
|
||||||
|
<a href="https://linux.die.net/man/">Die.net - Linux Man Pages</a>
|
||||||
|
<a href="https://www.w3schools.com/">W3Schools</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3>News & Security</h3>
|
||||||
|
<p>
|
||||||
|
<a href="https://www.theverge.com/">The Verge</a>
|
||||||
|
<a href="https://arstechnica.com/">Ars Technica</a>
|
||||||
|
<a href="https://www.engadget.com/">Engadget</a>
|
||||||
|
<a href="https://www.technologyreview.com/">MIT Technology Review</a>
|
||||||
|
<a href="https://www.wired.com/">Wired</a>
|
||||||
|
<a href="https://krebsonsecurity.com/">Krebs on Security</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3>More Coding YouTube Channels</h3>
|
||||||
|
<p>
|
||||||
|
<a href="https://www.youtube.com/c/TheCodingTrain">The Coding Train</a>
|
||||||
|
<a href="https://www.youtube.com/c/TraversyMedia">Traversy Media</a>
|
||||||
|
<a href="https://www.youtube.com/c/FrontendMasters">Frontend Masters</a>
|
||||||
|
<a href="https://www.youtube.com/c/Codecademy">Codecademy</a>
|
||||||
|
<a href="https://www.youtube.com/c/TechLead">The TechLead</a>
|
||||||
|
<a href="https://www.youtube.com/c/fireship">Fireship</a>
|
||||||
|
<a href="https://www.youtube.com/c/NoBoilerplate">No Boilerplate</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3>Great Stuff</h3>
|
||||||
|
<p>
|
||||||
|
<a href="https://github.com/Sneed-Group">Sneed Group Git</a>
|
||||||
|
<a href="http://nodemixaholic.com">NodeMixaholic.com</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
</div>
|
||||||
|
<script src="script.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
32
script.js
Normal file
32
script.js
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
let codingMode = false; // Set to true for coding mode (no api calls to bible passage)
|
||||||
|
|
||||||
|
//https://labs.bible.org/api/?passage=random&formatting=plain&type=text
|
||||||
|
async function fetchBiblePassage() {
|
||||||
|
try {
|
||||||
|
let textData;
|
||||||
|
if (codingMode == true) {
|
||||||
|
textData = 'Samuel 16:9 “And he said, "I now know de wae" in zimbabwe.';
|
||||||
|
} else {
|
||||||
|
const response = await fetch('https://labs.bible.org/api/?passage=random&formatting=plain&type=text');
|
||||||
|
textData = await response.text();
|
||||||
|
}
|
||||||
|
document.getElementById('biblepassage').textContent = `${textData}`;
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Error fetching Bible passage:', error);
|
||||||
|
// Handle the error gracefully, e.g., display an error message to the user
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fetchBiblePassage();
|
||||||
|
|
||||||
|
const searchButton = document.getElementById('search-button');
|
||||||
|
const searchInput = document.getElementById('search-input');
|
||||||
|
|
||||||
|
searchButton.addEventListener('click', () => {
|
||||||
|
const searchTerm = searchInput.value;
|
||||||
|
if (searchTerm) {
|
||||||
|
window.location.href = `https://search.sparksammy.com/search.php?q=${searchTerm}&p=0&t=0`;
|
||||||
|
} else {
|
||||||
|
alert('Please enter a search term.');
|
||||||
|
}
|
||||||
|
});
|
95
styling.css
Normal file
95
styling.css
Normal file
|
@ -0,0 +1,95 @@
|
||||||
|
/* Basic styles */
|
||||||
|
body {
|
||||||
|
font-family: Arial, sans-serif;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
background-color: white;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* With dark mode */
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
body {
|
||||||
|
background-color: black;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Apply dark mode styles to other elements as needed */
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: #007bff;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
border-radius: 5px;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
padding-left: 1.2rem;
|
||||||
|
padding-right: 1.2rem;
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#search-bar {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
margin: 20px auto;
|
||||||
|
width: 60%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#search-input {
|
||||||
|
padding: 5px;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#search-button {
|
||||||
|
padding: 5px 10px;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
cursor: pointer;
|
||||||
|
background-color: #007bff;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Media queries for responsiveness */
|
||||||
|
|
||||||
|
@media only screen and (max-width: 768px) {
|
||||||
|
/* Styles for screens smaller than 768px (mobile devices) */
|
||||||
|
h1 {
|
||||||
|
font-size: 1.5rem; /* Adjust font size for smaller screens */
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
font-size: 1rem; /* Adjust font size for smaller screens */
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
font-size: 0.8rem; /* Adjust font size for smaller screens */
|
||||||
|
}
|
||||||
|
|
||||||
|
#search-bar {
|
||||||
|
width: 80%; /* Adjust width for smaller screens */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 768px) {
|
||||||
|
/* Styles for screens wider than 768px (desktop) */
|
||||||
|
#search-bar {
|
||||||
|
width: 40%; /* Adjust width for larger screens */
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue