mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 19:41:02 +08:00
Add featured section
This commit is contained in:
+13
-3
@@ -53,14 +53,17 @@ import Header from "@components/Header.astro";
|
|||||||
</div>
|
</div>
|
||||||
<hr class="border-skin-line" />
|
<hr class="border-skin-line" />
|
||||||
</section>
|
</section>
|
||||||
|
<section id="featured-section">
|
||||||
|
<h2>Featured</h2>
|
||||||
|
</section>
|
||||||
</main>
|
</main>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
/* ===== Hero Section ===== */
|
||||||
#hero-section {
|
#hero-section {
|
||||||
@apply max-w-3xl mx-auto px-4 pt-12;
|
@apply pt-12;
|
||||||
}
|
}
|
||||||
|
|
||||||
#hero-section h1 {
|
#hero-section h1 {
|
||||||
@apply font-bold my-4 sm:my-8 text-3xl sm:text-5xl;
|
@apply font-bold my-4 sm:my-8 text-3xl sm:text-5xl;
|
||||||
}
|
}
|
||||||
@@ -70,7 +73,6 @@ import Header from "@components/Header.astro";
|
|||||||
p {
|
p {
|
||||||
@apply my-2;
|
@apply my-2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.social-wrapper {
|
.social-wrapper {
|
||||||
@apply flex flex-col sm:flex-row sm:items-center mt-4 mb-6;
|
@apply flex flex-col sm:flex-row sm:items-center mt-4 mb-6;
|
||||||
}
|
}
|
||||||
@@ -83,4 +85,12 @@ import Header from "@components/Header.astro";
|
|||||||
.social-icons button svg {
|
.social-icons button svg {
|
||||||
@apply w-6 h-6 fill-skin-base hover:fill-skin-accent scale-125 sm:scale-110;
|
@apply w-6 h-6 fill-skin-base hover:fill-skin-accent scale-125 sm:scale-110;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ===== Featured Section ===== */
|
||||||
|
#featured-section {
|
||||||
|
@apply py-10;
|
||||||
|
}
|
||||||
|
#featured-section h2 {
|
||||||
|
@apply font-semibold text-2xl tracking-wide;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user