Skip to content

Commit

Permalink
Merge pull request #145 from houzyk/egg
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
MrSunshyne committed Jun 26, 2024
2 parents 9866064 + f45a922 commit f1993d7
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions packages/frontendmu-nuxt/pages/egg.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<script setup lang="ts">
definePageMeta({
layout: false,
});
</script>

<template>
<div class="egg-basket">
<div class="egg">
<div class="white">
<div class="yolk">
</div>
</div>
</div>
</div>
</template>

<style scoped>
.egg-basket {
height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
}
.egg, .white, .yolk {
display: flex;
align-items: center;
justify-content: center;
}
.egg {
background: #FFFFFF;
border: 2px solid black;
width: 11rem;
height: 15rem;
border-radius: 50% / 60% 60% 40% 40%;
animation: self-rotate 2s infinite;
}
@keyframes self-rotate {
from {
transform: rotate(0deg)
}
to {
transform: rotate(360deg)
}
}
.yolk {
background: #ffcc00;
width: 6.5rem;
height: 7rem;
border-radius: 55% / 60%;
border: 2px solid black;
}
</style>

0 comments on commit f1993d7

Please sign in to comment.