Skip to content

Commit f52233b

Browse files
committed
refactor: refactor index.vue layout and add Earthworm link
1 parent 8983f52 commit f52233b

File tree

1 file changed

+27
-14
lines changed

1 file changed

+27
-14
lines changed

apps/client/pages/index.vue

+27-14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup lang="ts">
22
3+
34
</script>
45

56
<template>
@@ -8,47 +9,59 @@
89
<div class="w-1/2">
910
<div class="mb-12 leading-loose text-3xl opacity-80 items-center">
1011
<div class="">Why aren’t you good at English?</div>
11-
<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>
12+
<div class="align-middle">It’s because you haven’t used <span
13+
class="text-fuchsia-400 font-bold">EARTHWORM</span> yet! 🤪 <i
14+
class="animate-wink inline w-1 h-8 dark:bg-white bg-slate-900 mx-2 text-2xl p-[2px]"></i></div>
1215
</div>
13-
<a target="_blank" href="https://github.com/cuixueshe/earthworm">
14-
<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">
16+
<NuxtLink href="/main/1">
17+
<button
18+
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">
1519
<span class="indicator-item">🌟</span>
16-
Star us on GitHub
20+
Go and get it <kbd class="kbd"> ↵ </kbd>
21+
</button>
22+
</NuxtLink>
23+
24+
<a target="_blank" href="https://github.com/cuixueshe/earthworm">
25+
<button class="btn w-48">
26+
Star us on GitHub
1727
</button>
1828
</a>
19-
<button class="btn w-48"> Go and get it <kbd class="kbd"> ↵ </kbd></button>
2029
</div>
2130
<div class="w-1/2 flex items-center justify-center group select-none cursor-pointer rounded-xl relative">
2231
<div class="absolute flex h-full w-full card">
2332
<div class="bg-dot rounded-[64px]"></div>
24-
<div class="absolute left-0 right-0 top-12 text-[220px] text-center group-hover:-skew-y-12 group-hover:rotate-12 transition-all">📖</div>
25-
<div class="absolute left-40 right-0 top-32 text-[80px] -ml-28 text-center color-gray group-hover:-skew-y-12 group-hover:rotate-[30deg] group-hover:-ml-32 group-hover:-mt-6 transition-all">🪱</div>
33+
<div
34+
class="absolute left-0 right-0 top-12 text-[220px] text-center group-hover:-skew-y-12 group-hover:rotate-12 transition-all">
35+
📖</div>
36+
<div
37+
class="absolute left-40 right-0 top-32 text-[80px] -ml-28 text-center color-gray group-hover:-skew-y-12 group-hover:rotate-[30deg] group-hover:-ml-32 group-hover:-mt-6 transition-all">
38+
🪱</div>
2639
</div>
2740
</div>
2841
</section>
2942
<section class="flex flex-col py-8">
30-
<h2 class="text-4xl text-center">What is Earthworm?</h2>
43+
<h2 class="text-4xl text-center">What is Earthworm?</h2>
3144
<p class="text-center">an open-source, collaborative, user-friendly English learning tool.</p>
3245
<div class="flex">
33-
<div class="rounded-3xl my-8 mx-2 border dark:border-slate-600 bg-gradient-to-b from-neutral-50/90 to-neutral-100/90 transition duration-300 dark:from-neutral-600/90 dark:to-neutral-450/90 w-1/2 hover:shadow-2xl">
46+
<div
47+
class="rounded-3xl my-8 mx-2 border dark:border-slate-600 bg-gradient-to-b from-neutral-50/90 to-neutral-100/90 transition duration-300 dark:from-neutral-600/90 dark:to-neutral-450/90 w-1/2 hover:shadow-2xl">
3448
<div class="h-[330px] flex p-4"> wip... </div>
3549
</div>
36-
<div class="rounded-3xl my-8 mx-2 border dark:border-slate-600 bg-gradient-to-b from-neutral-50/90 to-neutral-100/90 transition duration-300 dark:from-neutral-600/90 dark:to-neutral-450/90 w-1/2 hover:shadow-xl">
50+
<div
51+
class="rounded-3xl my-8 mx-2 border dark:border-slate-600 bg-gradient-to-b from-neutral-50/90 to-neutral-100/90 transition duration-300 dark:from-neutral-600/90 dark:to-neutral-450/90 w-1/2 hover:shadow-xl">
3752
<div class="h-[330px] flex p-4"> wip... </div>
3853
</div>
39-
</div>
54+
</div>
4055
<div class="w-1/2"></div>
4156
<div class="w-1/2"></div>
4257
</section>
4358
<section class="flex flex-col py-8">
44-
<h2 class="text-4xl text-center">Why Earthworm?</h2>
59+
<h2 class="text-4xl text-center">Why Earthworm?</h2>
4560
</section>
4661
</div>
4762
</template>
4863

4964
<style>
50-
51-
5265
.bg-dot {
5366
aspect-ratio: 1;
5467
position: relative;

0 commit comments

Comments
 (0)