Skip to content

ZetaX-development/HP3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Amplify!

Amplify is an electric SaaS template and blog with unique components and animations. Built with Astro v5 and Tailwind CSS v4 by Cosmic Themes.

Quickstart

  1. To get started, first install all necessary packages with npm install, then run an initial build to make sure the setup works npm run build.
  2. Next, you'll want to configure your site i18n setup (one language, or multiple). Simply run the command npm run config-i18n and follow the script instructions to get setup! For further information, see the i18n documentation.
  3. Now you can setup the site to your liking!

Should you need any assistance, send me a message at support@cosmicthemes.com

Code Intro

I have created a few code tours to help introduce you to the codebase. You will need the extension Code Tour to view them in VSCode.

Code Structure

The source files have the following setup. Note that not all files are included - it is already long, no one wants it to be longer.

.
├── .tours/
│   └── code-intro.tour
├── public/
│   ├── favicons/
│   │   └── favicon.ico
│   └── robots.txt
├── src/
│   ├── assets/
│   │   └── images/
│   │       └── hero.jpg
│   ├── components/
│   │   ├── Hero/
│   │   │   ├── HeroCentered.astro
│   │   │   └── HeroGradient.astro
│   │   └── Footer/
│   │       └── Footer.astro
│   ├── config/
│   │   ├── siteSettings.json.ts
│   │   └── translationData.json.ts
│   ├── data/
│   │   ├── authors/
│   │   ├── blog/
│   │   ├── projects/
│   │   ├── resume/
│   │   └── otherPages/
│   ├── icons/
│   │   └── tabler/
│   ├── js/
│   │   └── textUtils.ts
│   ├── layouts/
│   │   ├── BaseHead.astro
│   │   └── BaseLayout.astro
│   ├── pages/
│   │   ├── index.astro
│   │   ├── blog/
│   │   │   ├── index.astro
│   │   │   └── [...slug].astro
│   │   ├── examples/
│   │   │   └── (contains example pages so you can see how to use components)
│   │   ├── [page].astro
│   │   ├── 404.astro
│   │   ├── contact.astro
│   │   ├── index.astro
│   │   ├── overview.astro (links to example pages)
│   │   └── rss.xml.ts
│   ├── styles/
│   │   ├── buttons.css (button styles)
│   │   ├── global.css (global styles)
│   │   └── markdown-content.css (styling for markdown pages)
│   └── content.config.ts
├── .gitignore
├── .prettierrc.mjs
├── astro.config.mjs
├── netlify.toml
├── package.json
├── README.md
└── tsconfig.json

For robots like Google to see the correct sitemap, you will want to edit the public/robots.txt file to use your website domain.

More Resources

General Astro Info

Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.

There's nothing special about src/components/, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.

Any static assets, like images, can be placed in the public/ directory. I also frequently use src/assets for images when using Astro asssets for image optimization.

Commands

All commands are run from the root of the project, from a terminal:

Command Action
npm install Installs dependencies
npm run dev Starts local dev server at localhost:3000
npm run build Build your production site to ./dist/
npm run preview Preview your build locally, before deploying
npm run astro ... Run CLI commands like astro add, astro check
npm run astro -- --help Get help using the Astro CLI

Want to learn more?

Feel free to check out the Astro documentation.

Releases

No releases published

Packages

 
 
 

Contributors