Skip to content

Commit

Permalink
a blog?
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbloxhub committed Jul 22, 2023
1 parent fe62b9c commit d4c5b29
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 129 deletions.
63 changes: 0 additions & 63 deletions src/components/Card.astro

This file was deleted.

7 changes: 7 additions & 0 deletions src/layouts/MarkdownPostLayout.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
const { frontmatter } = Astro.props;
---
<h1>{frontmatter.title}</h1>
<p>Written by {frontmatter.author}</p>
<p>Published {frontmatter.pubDate}</p>
<slot />
68 changes: 2 additions & 66 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,81 +1,17 @@
---
import Layout from "../layouts/Layout.astro"
import Card from "../components/Card.astro"
---

<Layout title="Welcome to Astro.">
<main>
<h1>Welcome to <span class="text-gradient">Astro</span></h1>
<p class="instructions">
To get started, open the directory <code>src/pages</code> in your project.<br />
<strong>Code Challenge:</strong> Tweak the "Welcome to Astro" message above.
</p>
<ul role="list" class="link-card-grid">
<Card
href="https://docs.astro.build/"
title="Documentation"
body="Learn how Astro works and explore the official API docs."
/>
<Card
href="https://astro.build/integrations/"
title="Integrations"
body="Supercharge your project with new frameworks and libraries."
/>
<Card
href="https://astro.build/themes/"
title="Themes"
body="Explore a galaxy of community-built starter themes."
/>
<Card
href="https://astro.build/chat/"
title="Community"
body="Come say hi to our amazing Discord community. ❤️"
/>
</ul>
<main class="m-auto p-6 max-w-6xl text-center">
<h1>Welcome to bitbloxhub's website</h1>
</main>
</Layout>

<style>
main {
margin: auto;
padding: 1.5rem;
max-width: 60ch;
}
h1 {
font-size: 3rem;
font-weight: 800;
margin: 0;
}
.text-gradient {
background-image: var(--accent-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-size: 400%;
background-position: 0%;
}
.instructions {
line-height: 1.6;
margin: 1rem 0;
border: 1px solid rgba(var(--accent), 25%);
background-color: white;
padding: 1rem;
border-radius: 0.4rem;
}
.instructions code {
font-size: 0.875em;
font-weight: bold;
background: rgba(var(--accent), 12%);
color: rgb(var(--accent));
border-radius: 4px;
padding: 0.3em 0.45em;
}
.instructions strong {
color: rgb(var(--accent));
}
.link-card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(24ch, 1fr));
gap: 1rem;
padding: 0;
}
</style>
11 changes: 11 additions & 0 deletions src/pages/posts/first-post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
layout: ../../layouts/MarkdownPostLayout.astro
title: "I have a new blog!"
pubDate: 2023-07-22
description: "This is the first post of my new blog."
author: "bitbloxhub"
image:
url: "https://docs.astro.build/assets/full-logo-light.png"
alt: "The full Astro logo."
---
Welcome to my new blog i have built using astro!

0 comments on commit d4c5b29

Please sign in to comment.