Skip to content

Commit

Permalink
purge
Browse files Browse the repository at this point in the history
  • Loading branch information
Reed Nelson committed Aug 6, 2023
1 parent b27e8b8 commit 8f3c925
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 247 deletions.
5 changes: 0 additions & 5 deletions src/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
"blog_folder": "blog"
},

"params": {
"contact_form_action": "#",
"copyright": "Designed And Developed by [Reed Nelson](https://reednel.com)"
},

"navigation_button": {
"enable": true,
"label": "Get Started",
Expand Down
43 changes: 6 additions & 37 deletions src/config/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,49 +9,18 @@
"url": "/about"
},
{
"name": "Elements",
"url": "/elements"
},
{
"name": "Pages",
"url": "",
"hasChildren": true,
"children": [
{
"name": "Contact",
"url": "/contact"
},
{
"name": "Blog",
"url": "/blog"
},
{
"name": "Authors",
"url": "/authors"
},
{
"name": "Categories",
"url": "/categories"
},
{
"name": "Search",
"url": "/search"
},
{
"name": "404 Page",
"url": "/404"
}
]
"name": "Blog",
"url": "/blog"
}
],
"footer": [
{
"name": "Elements",
"url": "/elements"
"name": "Link1",
"url": "/link1"
},
{
"name": "Privacy Policy",
"url": "/privacy-policy"
"name": "Link 2",
"url": "/link2"
}
]
}
10 changes: 0 additions & 10 deletions src/config/social.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
{
"main": [
{
"name": "facebook",
"icon": "FaFacebook",
"link": "https://www.facebook.com/"
},
{
"name": "twitter",
"icon": "FaTwitter",
"link": "https://twitter.com/"
},
{
"name": "github",
"icon": "FaGithub",
Expand Down
6 changes: 0 additions & 6 deletions src/content/contact/-index.md

This file was deleted.

35 changes: 1 addition & 34 deletions src/content/homepage/-index.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
---
# Banner
banner:
title: "The Ultimate Starter Template You Need To Start Your Astro Project"
title: "Reed Nelson"
content: "Astroplate is a free starter template built with Astro and TailwindCSS, providing everything you need to jumpstart your Astro project and save valuable time."
image: "/images/banner.png"
button:
enable: true
label: "Get Started For Free"
link: "https://github.com/zeon-studio/astroplate"

# Features
features:
Expand All @@ -17,37 +12,9 @@ features:
bulletpoints:
- "10+ Pre-build pages"
- "95+ Google Pagespeed Score"
- "Build with Astro and TailwindCSS for easy and customizable styling"
- "Fully responsive on all devices"
- "SEO-optimized for better search engine rankings"
- "**Open-source and free** for personal and commercial use"
button:
enable: false
label: "Get Started Now"
link: "#"

- title: "Discover the Key Features Of Astro"
image: "/images/service-2.png"
content: "Astro is an all-in-one web framework for building fast, content-focused websites. It offers a range of exciting features for developers and website creators. Some of the key features are:"
bulletpoints:
- "Zero JS, by default: No JavaScript runtime overhead to slow you down."
- "Customizable: Tailwind, MDX, and 100+ other integrations to choose from."
- "UI-agnostic: Supports React, Preact, Svelte, Vue, Solid, Lit and more."
button:
enable: true
label: "Get Started Now"
link: "https://github.com/zeon-studio/astroplate"

- title: "The Top Reasons to Choose Astro for Your Next Project"
image: "/images/service-3.png"
content: "With Astro, you can build modern and content-focused websites without sacrificing performance or ease of use."
bulletpoints:
- "Instantly load static sites for better user experience and SEO."
- "Intuitive syntax and support for popular frameworks make learning and using Astro a breeze."
- "Use any front-end library or framework, or build custom components, for any project size."
- "Built on cutting-edge technology to keep your projects up-to-date with the latest web standards."
button:
enable: false
label: ""
link: ""
---
30 changes: 0 additions & 30 deletions src/content/pages/privacy-policy.md

This file was deleted.

2 changes: 0 additions & 2 deletions src/layouts/Base.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
import TwSizeIndicator from "@/components/TwSizeIndicator.astro";
import config from "@/config/config.json";
import theme from "@/config/theme.json";
import { plainify } from "@/lib/utils/textConverter";
Expand Down Expand Up @@ -148,7 +147,6 @@ const { title, meta_title, description, image, noindex, canonical } =
>
</head>
<body>
<TwSizeIndicator />
<Header />
<main id="main-content">
<slot />
Expand Down
15 changes: 0 additions & 15 deletions src/layouts/components/TwSizeIndicator.astro

This file was deleted.

7 changes: 0 additions & 7 deletions src/layouts/partials/Footer.astro
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
---
import Logo from "@/components/Logo.astro";
import Social from "@/components/Social.astro";
import config from "@/config/config.json";
import menu from "@/config/menu.json";
import social from "@/config/social.json";
import { markdownify } from "@/lib/utils/textConverter";
const { footer }: { footer: { name: string; url: string }[] } = menu;
---
Expand All @@ -31,9 +29,4 @@ const { footer }: { footer: { name: string; url: string }[] } = menu;
</div>
</div>
</div>
<div class="border-t border-border py-7 dark:border-darkmode-border">
<div class="container text-center text-light dark:text-darkmode-light">
<p set:html={markdownify(config.params.copyright)} />
</div>
</div>
</footer>
17 changes: 1 addition & 16 deletions src/layouts/partials/Header.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
import Logo from "@/components/Logo.astro";
import ThemeSwitcher from "@/components/ThemeSwitcher.astro";
import config from "@/config/config.json";
import menu from "@/config/menu.json";
Expand All @@ -24,15 +23,11 @@ const { pathname } = Astro.url;

<header class={`header z-30 ${settings.sticky_header && "sticky top-0"}`}>
<nav class="navbar container">
<!-- logo -->
<div class="order-0">
<Logo />
</div>
<!-- navbar toggler -->
<input id="nav-toggle" type="checkbox" class="hidden" />
<label
for="nav-toggle"
class="order-3 cursor-pointer flex items-center lg:hidden text-dark dark:text-white lg:order-1"
class="order-0 cursor-pointer flex items-center lg:hidden text-dark dark:text-white lg:order-1"
>
<svg id="show-button" class="h-6 fill-current block" viewBox="0 0 20 20">
<title>Menu Open</title>
Expand Down Expand Up @@ -129,16 +124,6 @@ const { pathname } = Astro.url;
)
}
<ThemeSwitcher className="mr-5" />
{
navigation_button.enable && (
<a
class="btn btn-outline-primary btn-sm hidden lg:inline-block"
href={navigation_button.link}
>
{navigation_button.label}
</a>
)
}
</div>
</nav>
</header>
65 changes: 0 additions & 65 deletions src/pages/contact.astro

This file was deleted.

20 changes: 0 additions & 20 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -28,27 +28,7 @@ const { banner, features }: Homepage = homepage.data;
<div class="mb-16 text-center lg:col-7">
<h1 set:html={markdownify(banner.title)} class="mb-4" />
<p set:html={markdownify(banner.content)} class="mb-8" />
{
banner.button.enable && (
<a class="btn btn-primary" href={banner.button.link}>
{banner.button.label}
</a>
)
}
</div>
{
banner.image && (
<div class="col-12">
<Image
src={banner.image}
height={380}
width={1200}
alt="banner image"
format="webp"
/>
</div>
)
}
</div>
</div>
</section>
Expand Down

0 comments on commit 8f3c925

Please sign in to comment.