Skip to content

Commit

Permalink
optimizing banner
Browse files Browse the repository at this point in the history
  • Loading branch information
gusibi committed Oct 27, 2024
1 parent 92694bc commit 5ecb476
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion components/RepoInfoHtml.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
{{ repo.issues }} issues </span>
</div>
<!-- Repo description -->
<p class="text-gray-600 text-m pb-4 dark:text-gray-300">{{ repo.description }}</p>
<div class="flex items-center justify-center space-x-4 text-m text-gray-600 py-2 dark:text-gray-400 mb-2">
<p class="justify-center text-gray-600 text-m pb-4 dark:text-gray-300">{{ repo.description }}</p>
</div>
</div>
</template>
<script setup lang="ts">
Expand Down
2 changes: 1 addition & 1 deletion layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
</div>
</div>
</div>
<div v-if="showBanner" class="pt-12 relative h-64 overflow-hidden w-full">
<div v-if="showBanner" class="pt-12 relative h-72 overflow-hidden w-full">
<img class="w-full h-full object-cover blur-sm" :src="bannerImageUrl" alt="Site Banner" />
<div class="absolute inset-0 flex items-center justify-center dark:bg-black dark:bg-opacity-50">
<div class="w-full max-w-screen-xl mx-auto px-4">
Expand Down
2 changes: 1 addition & 1 deletion server/api/repo/[repo_owner]/[repo_name]/blog-posts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default defineEventHandler(async (event) => {
const shouldFetchFromGitHub = !repoData ||
(now.getTime() - new Date(repoData.updated_at).getTime() > 3600000) // 1 hour in milliseconds

console.log("update time,", repoData)
// console.log("update time,", repoData)
// console.log("shouldFetchFromGitHub", shouldFetchFromGitHub, now.getTime(), new Date(repoData.updated_at).getTime())

if (shouldFetchFromGitHub) {
Expand Down

0 comments on commit 5ecb476

Please sign in to comment.