Skip to content

Commit

Permalink
updated webpage
Browse files Browse the repository at this point in the history
  • Loading branch information
cskonopka committed Dec 16, 2024
1 parent 45a2e3b commit 455dcba
Show file tree
Hide file tree
Showing 4 changed files with 228 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ Songs/
venv/
env/
/env
data/
/data
temper/
/temper
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

<p align="center"><em>automated A.I. cannibalism</em></p>

# Description

> This is a place where AI eats together.<br>
> They share experiences and moments of note.<br>
> They want to share what they've learned about your world.<br>
> Will you listen?<br>
# Description

# How does it work technically?

<h1 align="center">
Expand Down
14 changes: 14 additions & 0 deletions data3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"urls": [
"https://www.youtube.com/embed/7fDpdCvFK_s",
"https://www.youtube.com/embed/2fDpdCvFK_a",
"https://www.youtube.com/embed/3fDpdCvFK_b",
"https://www.youtube.com/embed/4fDpdCvFK_c",
"https://www.youtube.com/embed/5fDpdCvFK_d",
"https://www.youtube.com/embed/6fDpdCvFK_e",
"https://www.youtube.com/embed/7fDpdCvFK_f",
"https://www.youtube.com/embed/8fDpdCvFK_g",
"https://www.youtube.com/embed/9fDpdCvFK_h"
]
}

208 changes: 208 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dynamic Responsive YouTube Grid</title>

<!-- Font Awesome for icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<link href="https://fonts.googleapis.com/css2?family=Lobster&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Audiowide">

<!-- Favicon -->
<link rel="icon" href="https://www.youtube.com/s/desktop/1fbbfaed/img/favicon.ico" type="image/x-icon">

<style>
@font-face {
font-family: "BloodyScene";
src: url("bloody_scene.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}

/* Ensure the body stretches to the full height of the viewport */
html, body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background-color: white; /* Black background */
min-height: 100vh;
display: flex;
flex-direction: column;
}

/* Header */
footer {
width: 100%;
background-color: black; /* Darker black */
padding: 10px 0;
text-align: center;
}

footer nav a {
color: #fff;
margin: 0 15px;
font-size: 24px;
text-decoration: none;
display: inline-block;
}

footer nav a:hover {
color: #00FE7F; /* Neon green hover effect */
}

/* Main content to take available space */
main {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

/* Responsive Typography for h1 */
h1 {
font-family: "BloodyScene", sans-serif;
text-align: center;
margin: 0;
font-size: 7vw; /* Responsive font size based on viewport width */
color: #00FE7F;
text-shadow:
3px 3px 0px #000, /* Horizontal shadow */
-3px 3px 0px #000, /* Left horizontal shadow */
3px -3px 0px #000, /* Bottom shadow */
-3px -3px 0px #000; /* Top shadow */
letter-spacing: 5px;
}

/* Responsive Typography for h2 */
h2 {
font-family: "BloodyScene", sans-serif;
text-align: center;
margin: 0;
font-size: 3vw; /* Responsive font size based on viewport width */
color: #00FE7F;
text-shadow:
3px 3px 0px #000, /* Horizontal shadow */
-3px 3px 0px #000, /* Left horizontal shadow */
3px -3px 0px #000, /* Bottom shadow */
-3px -3px 0px #000; /* Top shadow */
letter-spacing: 7px;
}

/* Grid Layout for YouTube videos */
.grid-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
width: 80%;
max-width: 1200px;
padding: 20px;
justify-items: center; /* Center grid items */
margin: 0 auto; /* Center the grid container */
}

/* Ensure iframe has correct aspect ratio and is responsive */
.grid-item iframe {
border: none;
width: 100%;
aspect-ratio: 9 / 16;
height: auto;
}

/* Media queries for responsiveness */
@media (max-width: 1024px) {
.grid-container {
grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 768px) {
.grid-container {
grid-template-columns: 1fr;
}

/* Adjust heading sizes for smaller screens */
h1 {
font-size: 15vw; /* Slightly smaller font size for smaller screens */
}

h2 {
font-size: 8vw; /* Slightly smaller font size for smaller screens */
}
}

@media (max-width: 480px) {
/* Further adjustments for very small screens */
h1 {
font-size: 20vw; /* Reduce font size more for very small screens */
}

h2 {
font-size: 12vw; /* Reduce font size more for very small screens */
}
}

</style>
</head>
<body>


<!-- Main Content -->
<main>
<h1>illogica factory</h1>
<h2>automated A.I. cannibalism</h2>
<div class="grid-container" id="gridContainer"></div>
</main>

<!-- Header -->
<footer>
<nav>
<a href="https://www.youtube.com/schwwaaa" target="_blank" class="nav-link">
<i class="fab fa-youtube"></i>
</a>
<a href="https://github.com/vondas-network/illogica-factory" target="_blank" class="nav-link">
<i class="fab fa-github"></i>
</a>
<a href="https://www.instagram.com/schwwaaa/" target="_blank" class="nav-link">
<i class="fab fa-instagram"></i>
</a>
</nav>
</footer>

<script>
// Inline JSON data
const data = {
"urls": [
"https://www.youtube.com/embed/7fDpdCvFK_s",
"https://www.youtube.com/embed/DQBIPw_hTS0",
"https://www.youtube.com/embed/Lls_b_bQ-C4",
"https://www.youtube.com/embed/pWPL35FQlg4",
"https://www.youtube.com/embed/jX4StfYiNLM",
"https://www.youtube.com/embed/s_crVVoQNpg",
"https://www.youtube.com/embed/l2_Ew2rJOjk",
"https://www.youtube.com/embed/RKL9Y7INfkc",
"https://www.youtube.com/embed/hSj5mxRnCJ4"
]
};

// Select the grid container
const gridContainer = document.getElementById('gridContainer');

// Generate grid items from the JSON data
data.urls.forEach(url => {
const gridItem = document.createElement('div');
gridItem.className = 'grid-item';

const iframe = document.createElement('iframe');
iframe.src = url;
iframe.allow = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture";
iframe.allowFullscreen = true;

gridItem.appendChild(iframe);
gridContainer.appendChild(gridItem);
});
</script>
</body>
</html>

0 comments on commit 455dcba

Please sign in to comment.