Skip to content

Commit

Permalink
1st post-dep comit. improv imgs-vids. @hl@AA
Browse files Browse the repository at this point in the history
  • Loading branch information
Ambratolm authored and Ambratolm committed Jan 18, 2025
1 parent 22dda5e commit 0e6eeec
Show file tree
Hide file tree
Showing 22 changed files with 58 additions and 5 deletions.
41 changes: 40 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,46 @@
<title>Ambratolm</title>
</head>
<body>
<div id="app"></div>
<div id="app">
<div id="app-loading">
<h1>Ambratolm</h1>
<p>⏳ Loading...</p>
</div>
</div>
<style>
#app-loading {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-family: Arial, sans-serif;
font-size: 1.5rem;
font-style: italic;
z-index: 9999;
background-color: black;
color: white;
}
#app-loading * {
margin: 0;
animation: loading 1.5s infinite;
}
@keyframes loading {
0% {
opacity: 1;
}
50% {
opacity: 0.5;
}
100% {
opacity: 1;
}
}
</style>
<script type="module" src="/src/main.js"></script>
</body>
</html>
3 changes: 2 additions & 1 deletion src/assets/data/posts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
icon: fas fa-newspaper
content: ⏳ Working on this Website...
#----------------------------------------------------------------------------------------------------
- name: ambratolm-io
- name: aleafw2d
title: ALEAFW 2D 🦅
date: October, 2024
icon: fas fa-newspaper
content: ⏳ Working on a 2D action side-scrolling platformer game framework for Unity engine...
video: aleafw2d
#----------------------------------------------------------------------------------------------------
- name: flower-in-pain-v1.1
title: Flower in Pain Version 1.1
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/assets/images/works/video/live-action-films.jpg
Binary file not shown.
Binary file removed src/assets/videos/categories/_category.mp4
Binary file not shown.
Binary file removed src/assets/videos/categories/audio.mp4
Binary file not shown.
Binary file removed src/assets/videos/categories/document.mp4
Binary file not shown.
Binary file removed src/assets/videos/categories/game.mp4
Binary file not shown.
Binary file removed src/assets/videos/categories/image.mp4
Binary file not shown.
Binary file removed src/assets/videos/categories/program.mp4
Binary file not shown.
Binary file removed src/assets/videos/categories/video.mp4
Binary file not shown.
Binary file removed src/assets/videos/empty.mp4
Binary file not shown.
Binary file removed src/assets/videos/error.mp4
Binary file not shown.
Binary file removed src/assets/videos/placeholder-400x300-muted.mp4
Binary file not shown.
Binary file removed src/assets/videos/placeholder-400x300.mp4
Binary file not shown.
File renamed without changes.
Binary file added src/assets/videos/posts/aleafw2d.mp4
Binary file not shown.
5 changes: 5 additions & 0 deletions src/components/DataPostCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ defineProps({
<p class="lead mb-0">
{{ post?.content }}
</p>
<div v-if="post?.video" class="mt-2 me-3">
<video :src="post?.video" width="100%" height="100%" controls>
<a :href="post?.video">Download {{ post?.name }} video</a>
</video>
</div>
<div v-if="post?.embed" class="mt-2 me-3">
<div class="card position-relative" style="padding: 75% 0 0 0">
<iframe
Expand Down
12 changes: 10 additions & 2 deletions src/modules/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ const VIDEOS = getDocuments(importCollection("videos"), {
//----------------------------------------------------------------------------------------------------
DATA.works = (() => {
const works = flattenObjectToArray(DATA.works, 2);
const worksImages = flattenObject(IMAGES.works, 2);
const workImages = flattenObject(IMAGES.works, 2);
const { categories, languages } = DATA;
for (const work of works) {
work.categories = resolveKeys(work.categories, categories);
work.languages = resolveKeys(work.languages, languages);
work.image = worksImages[work.image] || worksImages["_work"];
work.image = workImages[work.image] || workImages["_work"];
}
return works;
})();
Expand All @@ -39,6 +39,14 @@ DATA.profiles = (() => {
}
return profiles;
})();
DATA.posts = (() => {
const posts = DATA.posts;
const postVideos = flattenObject(VIDEOS.posts, 2);
for (const post of posts) {
if (post.video) post.video = postVideos[post.video] || postVideos["_post"];
}
return posts;
})();
export { DATA, IMAGES, VIDEOS };

//----------------------------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const postsStore = usePostsStore();
const randomWorks = ref();
randomizeWorks();
function randomizeWorks() {
randomWorks.value = worksStore.getRandomItems(12);
randomWorks.value = worksStore.getRandomItems(4);
}
const { pause, resume } = useIntervalFn(
Expand Down

0 comments on commit 0e6eeec

Please sign in to comment.