moved things to website dir

This commit is contained in:
2025-06-06 12:46:18 +10:00
parent 3df3240ddd
commit f2dbad9d4b
15 changed files with 14 additions and 210 deletions

BIN
website/avatar.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

BIN
website/banner.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
website/icons/16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
website/icons/180.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

BIN
website/icons/32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
website/icons/48.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

1
website/main.js Normal file
View File

@@ -0,0 +1 @@
function formatDate(t){return new Date(t).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function getRandomRotation(){return 3*Math.random()-1.5}function createPost(t){const e=document.createElement("div");e.className="post",e.style.transform=`rotate(${getRandomRotation()}deg)`;const o=document.createElement("a");o.href=t.url,o.target="_blank",o.style.textDecoration="none";const n=t.embed.length>0?t.embed.map((t=>`\n <a href="${t.url}" target="_blank">\n <img class="image-placeholder" src="${t.url}" alt="${t.alt||"Image"}" style="width: 100%;" />\n </a>\n `)).join(""):"",a=t.text.replace(/\n/g,"<br>");return e.innerHTML=`\n <div class="post-header">\n <div class="avatar">\n <img src="${t.avatar}" alt="${t.author}" style="width: 100%; height: 100%; object-fit: cover;" />\n </div>\n <div>\n <div style="font-weight: bold;">${t.author} (@${t.handle})</div>\n <div style="font-size: 0.875rem; color: #666;">\n ${formatDate(t.createdAt)}\n </div>\n </div>\n </div>\n <div class="post-content">${a}</div>\n ${n}\n <div class="post-actions">\n <button class="action-btn like">♥ ${t.likes}</button>\n <button class="action-btn repost">⟲ ${t.reposts}</button>\n </div>\n `,o.href=t.url,o.appendChild(e),o}function filterOriginalPosts(t){return t.filter((t=>{const e="app.bsky.feed.defs#reasonRepost"===t?.reason?.$type,o=t?.post?.record?.reply;return!e&&!o}))}async function fetchPosts(){try{const t=await fetch("https://public.api.bsky.app/xrpc/app.bsky.feed.getAuthorFeed?actor=lit.mates.dev&limit=20&filter=posts_no_replies");if(!t.ok)throw new Error("Failed to fetch posts");const e=await t.json(),o=filterOriginalPosts(e.feed).map((t=>({author:t.post.author.displayName,handle:t.post.author.handle,avatar:t.post.author.avatar,createdAt:t.post.record.createdAt,text:t.post.record.text,likes:t.post.likeCount||0,reposts:t.post.repostCount||0,url:`https://bsky.app/profile/${t.post.author.handle}/post/${t.post.uri.split("/").pop()}`,embed:t.post.embed?.images?.map((t=>({url:t.thumb,alt:t.alt||""})))||[]}))),n=document.getElementById("posts");n.innerHTML="",o.forEach((t=>{n.appendChild(createPost(t))}))}catch(t){console.error("Error fetching posts:",t)}}fetchPosts();

3
website/robots.txt Normal file
View File

@@ -0,0 +1,3 @@
User-agent: *
Disallow: /cdn-cgi/
Sitemap: https://lit.ruv.wtf/sitemap.xml

26
website/sitemap.xml Normal file
View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
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">
<url>
<loc>https://lit.ruv.wtf/</loc>
<lastmod>2025-02-09T22:00:52+00:00</lastmod>
<priority>1.00</priority>
</url>
<url>
<loc>https://lit.ruv.wtf/materials/</loc>
<lastmod>2025-02-09T22:00:52+00:00</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://lit.ruv.wtf/docs/sitemap.xml</loc>
<lastmod>2025-02-09T22:00:52+00:00</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://lit.ruv.wtf/privacy.html</loc>
<lastmod>2025-02-09T22:00:52+00:00</lastmod> <!-- Consider updating this to the actual modification date -->
<priority>0.50</priority>
</url>
</urlset>

273
website/style.css Normal file
View File

@@ -0,0 +1,273 @@
body {
margin: 0;
min-height: 100vh;
background: #242424;
font-family: monospace;
background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0V0zm2 2v16h16V2H2z' fill='%23000000' fill-opacity='0.05'/%3E%3C/svg%3E");
}
a {
text-decoration: none;
color: inherit;
}
.bg-pattern {
position: fixed;
inset: 0;
opacity: 0.05;
z-index: 0;
background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.container {
max-width: 600px;
margin: 0 auto;
padding: 2rem;
position: relative;
z-index: 1;
padding-top: 100px;
}
header {
text-align: center;
margin-bottom: 80px;
color: #f0f0f0;
font-size: 20px;
}
h1 {
transition: all 0.3s ease;
text-shadow: 2px 2px 0 #ffffff52, 3px 3px 0 #000;
margin-bottom: 0.5rem;
transform-origin: center;
cursor: pointer;
position: relative;
display: inline-block;
}
.social-links {
margin-top: 1rem;
font-size: 1rem;
}
.social-links a {
margin: 0 10px;
color: #f0f0f0;
text-decoration: none;
font-weight: bold;
}
.social-links a:hover {
color: #2563eb;
}
.post {
background: white;
padding: 1.5rem;
margin-bottom: 2rem;
border: 2px solid #000;
position: relative;
box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1), 6px 6px 0 rgba(0, 0, 0, 0.05);
transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55),
box-shadow 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.post-header {
display: flex;
gap: 1rem;
margin-bottom: 1rem;
}
.avatar {
width: 48px;
height: 48px;
background: #f0f0f0;
border: 2px solid black;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
transform: rotate(-2deg);
box-shadow: 2px 2px 0 #000;
}
.post-content {
text-shadow: 1px 1px 0 #fff;
}
.image-placeholder {
margin-top: 1rem;
border: 4px solid black;
background: #f0f0f0;
text-align: center;
transform: rotate(1deg);
box-shadow: 4px 4px 0 #000;
}
.post-actions {
margin-top: 1rem;
display: flex;
gap: 1rem;
}
.action-btn {
border: none;
background: none;
cursor: pointer;
display: flex;
align-items: center;
gap: 0.5rem;
font-family: inherit;
}
.action-btn.like {
color: #db2777;
transform: rotate(-1deg);
}
.action-btn.repost {
color: #2563eb;
transform: rotate(1deg);
}
.avatar-img {
width: 250px;
margin: 20px auto;
display: block;
}
.post:hover {
transform: scale(1.1) translateY(-5px) !important;
box-shadow: 6px 6px 30px rgba(0, 0, 0, 1);
}
.subtext {
margin-bottom: 30px;
}
.social-links a {
margin: 0 10px;
color: #f0f0f0;
font-size: 2rem;
text-decoration: none;
display: inline-block;
}
.social-links a:hover {
transform: scale(1.1);
transition: transform 0.3s ease;
text-shadow:
0 0 3px white,
}
.social-links a:hover .fab.fa-github {
color: #181717;
}
.social-links a:hover .fab.fa-youtube {
color: #FF0000;
}
.social-links a:hover .fab.fa-steam {
color: #1b2838;
}
.social-links a:hover .fab.fa-discord {
color: #7289da;
}
.social-links a:hover .fa-brands.fa-bluesky {
color: #3E5BFF;
}
@keyframes shake {
0%,
100% {
transform: translateX(0);
}
25% {
transform: translateX(-5px) translateY(5px);
}
50% {
transform: translateX(5px) translateY(-5px);
}
75% {
transform: translateX(-5px) translateY(-5px);
}
}
h1:hover {
animation:
wildSpin 3s ease-in-out,
rainbow 3s linear,
shake 0.5s ease-in-out infinite;
}
.social-links a {
position: relative;
}
.social-links a::after {
content: attr(title);
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
background-color: rgba(0, 0, 0, 0.7);
color: white;
padding: 0.3rem;
border-radius: 0.3rem;
font-size: 0.875rem;
opacity: 0;
transition: opacity 0.2s;
white-space: nowrap;
}
.social-links a:hover::after {
opacity: 1;
}
.project-links {
margin-top: 2rem;
font-size: 1rem;
}
.project-links a {
display: inline-block;
margin: 0.5rem 0;
padding: 0.5rem 1rem;
background: white;
color: #242424;
text-decoration: none;
font-weight: bold;
border-radius: 20px;
transition: background-color 0.3s ease, color 0.3s ease;
}
.project-links a:hover {
background: #2563eb;
color: white;
}
footer {
text-align: center;
margin-top: 3rem;
margin-bottom: 2rem;
font-size: 0.9rem;
}
footer a {
color: #f0f0f0;
text-decoration: underline;
}
footer a:hover {
color: #2563eb;
}