mirror of
https://github.com/litruv/lit.ruv.wtf.git
synced 2026-07-24 02:36:02 +10:00
Updated social links and more stuff like animations
This commit is contained in:
15
.vscode/launch.json
vendored
Normal file
15
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"type": "chrome",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Launch Chrome against localhost",
|
||||||
|
"url": "http://localhost:8080",
|
||||||
|
"webRoot": "${workspaceFolder}"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
BIN
banner.png
Normal file
BIN
banner.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 511 KiB |
BIN
icons/16.png
Normal file
BIN
icons/16.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
BIN
icons/180.png
Normal file
BIN
icons/180.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 57 KiB |
BIN
icons/32.png
Normal file
BIN
icons/32.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
BIN
icons/48.png
Normal file
BIN
icons/48.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.9 KiB |
59
index.html
59
index.html
@@ -1,8 +1,37 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
|
|
||||||
|
<meta name="description" content="Litruv - Dev/Tech Artist at MatesMedia. Follow for coding, game development, and creative projects.">
|
||||||
|
<meta name="author" content="Litruv">
|
||||||
|
|
||||||
|
<meta property="og:title" content="Litruv - Dev/Tech Artist">
|
||||||
|
<meta property="og:description" content="Dev/Tech Artist at MatesMedia. Follow for coding, game development, and creative projects.">
|
||||||
|
<meta property="og:image" content="banner.png">
|
||||||
|
<meta property="og:url" content="https://lit.ruv.wtf">
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
|
||||||
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
|
<meta name="twitter:title" content="Litruv - Dev/Tech Artist">
|
||||||
|
<meta name="twitter:description" content="Dev/Tech Artist at MatesMedia. Follow for coding, game development, and creative projects.">
|
||||||
|
<meta name="twitter:image" content="banner.png">
|
||||||
|
<meta name="twitter:url" content="https://lit.ruv.wtf">
|
||||||
|
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/icons/16.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/icons/32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="48x48" href="/icons/48.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="/icons/180.png">
|
||||||
|
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
<script src="main.js" defer></script>
|
<script src="main.js" defer></script>
|
||||||
|
|
||||||
|
<!-- FontAwesome CDN -->
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.1/css/all.min.css">
|
||||||
|
|
||||||
|
<title>Litruv - Dev/Tech Artist</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="bg-pattern"></div>
|
<div class="bg-pattern"></div>
|
||||||
@@ -10,17 +39,29 @@
|
|||||||
<img src="avatar.png" alt="Avatar" class="avatar-img">
|
<img src="avatar.png" alt="Avatar" class="avatar-img">
|
||||||
<header>
|
<header>
|
||||||
<h1>Litruv</h1>
|
<h1>Litruv</h1>
|
||||||
<div>Dev/Tech Artist @<a href="https://mates.dev/">MatesMedia</a>
|
<div class="subtext">Dev/Tech Artist @<a href="https://mates.dev/">MatesMedia</a>
|
||||||
|
|
||||||
<div class="social-links">
|
|
||||||
<a href="https://github.com/Litruv" target="_blank">GitHub</a>
|
|
||||||
<a href="https://www.youtube.com/c/Litruv" target="_blank">YouTube</a>
|
|
||||||
<a href="https://steamcommunity.com/id/Litruv" target="_blank">Steam</a>
|
|
||||||
<a href="https://discordapp.com/users/220772082055774210" target="_blank">Discord</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="social-links">
|
||||||
|
<a href="https://github.com/Litruv" target="_blank" title="GitHub github.com/Litruv">
|
||||||
|
<i class="fab fa-github"></i>
|
||||||
|
</a>
|
||||||
|
<a href="https://www.youtube.com/c/Litruv" target="_blank" title="YouTube youtube.com/litruv">
|
||||||
|
<i class="fab fa-youtube"></i>
|
||||||
|
</a>
|
||||||
|
<a href="https://steamcommunity.com/id/Litruv" target="_blank" title="Steam Litruv">
|
||||||
|
<i class="fab fa-steam"></i>
|
||||||
|
</a>
|
||||||
|
<a href="https://discordapp.com/users/220772082055774210" target="_blank" title="Discord @Litruv">
|
||||||
|
<i class="fab fa-discord"></i>
|
||||||
|
</a>
|
||||||
|
<a href="https://bsky.app/profile/lit.mates.dev" target="_blank" title="Bluesky lit.mates.dev">
|
||||||
|
<i class="fa-brands fa-bluesky"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
<div id="posts"></div>
|
<div id="posts"></div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
17
main.js
17
main.js
@@ -6,9 +6,11 @@ function formatDate(dateString) {
|
|||||||
minute: '2-digit'
|
minute: '2-digit'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function getRandomRotation() {
|
function getRandomRotation() {
|
||||||
return Math.random() * 3 - 1.5
|
return Math.random() * 3 - 1.5
|
||||||
}
|
}
|
||||||
|
|
||||||
function createPost(post) {
|
function createPost(post) {
|
||||||
const article = document.createElement('div');
|
const article = document.createElement('div');
|
||||||
article.className = 'post';
|
article.className = 'post';
|
||||||
@@ -26,6 +28,9 @@ function createPost(post) {
|
|||||||
</a>
|
</a>
|
||||||
`).join('')
|
`).join('')
|
||||||
: '';
|
: '';
|
||||||
|
|
||||||
|
const formattedText = post.text.replace(/\n/g, '<br>');
|
||||||
|
|
||||||
article.innerHTML = `
|
article.innerHTML = `
|
||||||
<div class="post-header">
|
<div class="post-header">
|
||||||
<div class="avatar">
|
<div class="avatar">
|
||||||
@@ -38,16 +43,20 @@ function createPost(post) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="post-content">${post.text}</div>
|
<div class="post-content">${formattedText}</div>
|
||||||
${imageHTML}
|
${imageHTML}
|
||||||
<div class="post-actions">
|
<div class="post-actions">
|
||||||
<button class="action-btn like">♥ ${post.likes}</button>
|
<button class="action-btn like">♥ ${post.likes}</button>
|
||||||
<button class="action-btn repost">⟲ ${post.reposts}</button>
|
<button class="action-btn repost">⟲ ${post.reposts}</button>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
postLink.href = post.url;
|
||||||
postLink.appendChild(article);
|
postLink.appendChild(article);
|
||||||
|
|
||||||
return postLink;
|
return postLink;
|
||||||
}
|
}
|
||||||
|
|
||||||
function filterOriginalPosts(feed) {
|
function filterOriginalPosts(feed) {
|
||||||
return feed.filter((item) => {
|
return feed.filter((item) => {
|
||||||
const isRepost = item?.reason?.$type === 'app.bsky.feed.defs#reasonRepost';
|
const isRepost = item?.reason?.$type === 'app.bsky.feed.defs#reasonRepost';
|
||||||
@@ -55,6 +64,7 @@ function filterOriginalPosts(feed) {
|
|||||||
return !isRepost && !isReply;
|
return !isRepost && !isReply;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async function fetchPosts() {
|
async function fetchPosts() {
|
||||||
try {
|
try {
|
||||||
const response = await fetch("https://public.api.bsky.app/xrpc/app.bsky.feed.getAuthorFeed?actor=lit.mates.dev&limit=20&filter=posts_no_replies");
|
const response = await fetch("https://public.api.bsky.app/xrpc/app.bsky.feed.getAuthorFeed?actor=lit.mates.dev&limit=20&filter=posts_no_replies");
|
||||||
@@ -71,7 +81,7 @@ async function fetchPosts() {
|
|||||||
text: item.post.record.text,
|
text: item.post.record.text,
|
||||||
likes: item.post.likeCount || 0,
|
likes: item.post.likeCount || 0,
|
||||||
reposts: item.post.repostCount || 0,
|
reposts: item.post.repostCount || 0,
|
||||||
url: `https://bsky.app/profile/${item.post.author.handle}/post/${item.post.cid}`,
|
url: `https://bsky.app/profile/${item.post.author.handle}/post/${item.post.uri.split('/').pop()}`,
|
||||||
embed: item.post.embed?.images?.map(img => ({
|
embed: item.post.embed?.images?.map(img => ({
|
||||||
url: img.fullsize,
|
url: img.fullsize,
|
||||||
alt: img.alt || ''
|
alt: img.alt || ''
|
||||||
@@ -86,4 +96,5 @@ async function fetchPosts() {
|
|||||||
console.error('Error fetching posts:', error);
|
console.error('Error fetching posts:', error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fetchPosts();
|
|
||||||
|
fetchPosts();
|
||||||
|
|||||||
135
style.css
135
style.css
@@ -30,16 +30,20 @@ a {
|
|||||||
|
|
||||||
header {
|
header {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-bottom: 100px;
|
margin-bottom: 80px;
|
||||||
color: #f0f0f0;
|
color: #f0f0f0;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 2.5rem;
|
transition: all 0.3s ease;
|
||||||
transform: rotate(-1deg);
|
|
||||||
text-shadow: 2px 2px 0 #ffffff52, 3px 3px 0 #000;
|
text-shadow: 2px 2px 0 #ffffff52, 3px 3px 0 #000;
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
|
transform-origin: center;
|
||||||
|
cursor: pointer;
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.social-links {
|
.social-links {
|
||||||
@@ -65,6 +69,7 @@ h1 {
|
|||||||
border: 2px solid #000;
|
border: 2px solid #000;
|
||||||
position: relative;
|
position: relative;
|
||||||
box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1), 6px 6px 0 rgba(0, 0, 0, 0.05);
|
box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1), 6px 6px 0 rgba(0, 0, 0, 0.05);
|
||||||
|
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-header {
|
.post-header {
|
||||||
@@ -132,26 +137,128 @@ h1 {
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes wiggle {
|
|
||||||
|
.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;
|
||||||
|
/* Ensure proper alignment for the text-shadow */
|
||||||
|
}
|
||||||
|
|
||||||
|
.social-links a:hover {
|
||||||
|
transform: scale(1.1);
|
||||||
|
transition: transform 0.3s ease;
|
||||||
|
text-shadow:
|
||||||
|
0 0 3px white,
|
||||||
|
/* Solid outline */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Specific brand colors on hover */
|
||||||
|
.social-links a:hover .fab.fa-github {
|
||||||
|
color: #181717;
|
||||||
|
/* GitHub's brand color */
|
||||||
|
}
|
||||||
|
|
||||||
|
.social-links a:hover .fab.fa-youtube {
|
||||||
|
color: #FF0000;
|
||||||
|
/* YouTube's brand color */
|
||||||
|
}
|
||||||
|
|
||||||
|
.social-links a:hover .fab.fa-steam {
|
||||||
|
color: #1b2838;
|
||||||
|
/* Steam's brand color */
|
||||||
|
}
|
||||||
|
|
||||||
|
.social-links a:hover .fab.fa-discord {
|
||||||
|
color: #7289da;
|
||||||
|
/* Discord's brand color */
|
||||||
|
}
|
||||||
|
|
||||||
|
.social-links a:hover .fa-brands.fa-bluesky {
|
||||||
|
color: #3E5BFF;
|
||||||
|
/* Bluesky's brand color */
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes wildSpin {
|
||||||
0% {
|
0% {
|
||||||
transform: rotate(2deg);
|
transform: scale(1) rotate(0deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
25% {
|
||||||
|
transform: scale(1.5) rotate(180deg) skew(15deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
50% {
|
50% {
|
||||||
transform: rotate(-2deg);
|
transform: scale(0.8) rotate(-180deg) skew(-15deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
75% {
|
||||||
|
transform: scale(1.2) rotate(360deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
100% {
|
100% {
|
||||||
transform: rotate(2deg);
|
transform: scale(1) rotate(720deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.post {
|
@keyframes shake {
|
||||||
transform: rotate(0deg);
|
|
||||||
transition: transform 0.3s ease-in-out;
|
0%,
|
||||||
|
100% {
|
||||||
|
transform: translateX(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
25% {
|
||||||
|
transform: translateX(-5px) translateY(5px);
|
||||||
|
}
|
||||||
|
|
||||||
|
50% {
|
||||||
|
transform: translateX(5px) translateY(-5px);
|
||||||
|
}
|
||||||
|
|
||||||
|
75% {
|
||||||
|
transform: translateX(-5px) translateY(-5px);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.post:hover {
|
h1:hover {
|
||||||
animation: wiggle 2s ease-in-out infinite;
|
animation:
|
||||||
transform: rotate(2deg);
|
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;
|
||||||
|
pointer-events: none;
|
||||||
|
transition: opacity 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.social-links a:hover::after {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user