Skip to content

Commit

Permalink
fix: adjust homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
Nauxscript committed Jan 23, 2024
1 parent 0ca1992 commit 1a6bf46
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions apps/client/components/Navbar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ onMounted(() => {
<template>
<nav class="h-20 flex items-center justify-between">
<NuxtLink to="/">
<div class="logo flex">
<img width="48" height="48" class="rounded-md overflow-hidden mr-2" src="/logo.png" alt="earth-worm-logo">
<h1 class="w-14 text-md font-black leading-normal text-wrap text-fuchsia-400">Earth Worm</h1>
<div class="logo flex items-center">
<img width="48" height="48" class="rounded-md overflow-hidden mr-6" src="/logo.png" alt="earth-worm-logo">
<h1 class="text-2xl leading-none font-black leading-normal text-wrap text-fuchsia-400">Earthworm</h1>
</div>
</NuxtLink>
<div>
Expand Down
12 changes: 7 additions & 5 deletions apps/client/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@
<div class="container w-full">
<section class="flex md:flex-row md:justify-between justify-center flex-col py-8">
<div class="w-1/2">
<div class="flex mb-12">
<img width="160" height="160" class="rounded-xl overflow-hidden mr-2" src="/logo.png" alt="earth-worm-logo">
<h1 class="w-48 text-6xl font-black leading-snug text-wrap text-fuchsia-400">Earth Worm</h1>
</div>
<div class="mb-12 leading-loose text-3xl opacity-80 items-center">
<div class="">Why aren’t you good at English?</div>
<div class="align-middle">It’s because you haven’t used Earthworm yet! 🤪 <i class="animate-wink inline w-1 h-8 dark:bg-white bg-slate-900 mx-2 text-2xl p-[2px]"></i></div>
<div class="align-middle">It’s because you haven’t used <span class="text-fuchsia-400 font-bold">Earthworm</span> yet! 🤪 <i class="animate-wink inline w-1 h-8 dark:bg-white bg-slate-900 mx-2 text-2xl p-[2px]"></i></div>
</div>
<a target="_blank" href="https://github.com/cuixueshe/earthworm">
<button class="indicator btn btn-outline w-48 hover:text-fuchsia-400 hover:border-fuchsia-400 hover:bg-fuchsia-100 text-fuchsia-300 border-fuchsia-300 mr-4">
Expand Down Expand Up @@ -51,6 +47,8 @@
</template>

<style>
.bg-dot {
aspect-ratio: 1;
position: relative;
Expand All @@ -62,6 +60,10 @@
overflow: hidden;
}
.dark .bg-dot {
opacity: 1;
}
.bg-dot::after {
content: '';
position: absolute;
Expand Down

0 comments on commit 1a6bf46

Please sign in to comment.