Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bniladridas/ccna
for network engineers
https://github.com/bniladridas/ccna
Last synced: about 2 months ago
JSON representation
for network engineers
- Host: GitHub
- URL: https://github.com/bniladridas/ccna
- Owner: bniladridas
- License: mit
- Created: 2024-09-11T22:41:24.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-10-12T23:38:23.000Z (3 months ago)
- Last Synced: 2024-10-20T05:40:51.689Z (3 months ago)
- Language: Astro
- Homepage: https://niladri-das-ccna.vercel.app
- Size: 5.63 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# CCNA Lab
[LinkedIn](https://www.linkedin.com/in/bniladridas/)
## Usage
You can bootstrap a new Astro project using Brutal with the following command:
```bash
# npm 6.x
npx create astro@latest --template eliancodes/brutal# npm 7+
npm create astro@latest -- --template eliancodes/brutal# pnpm
pnpm dlx create-astro --template eliancodes/brutal# yarn
yarn create astro --template eliancodes/brutal
```### Commands
All commands are run from the root of the project, from a terminal:
(Here I use PNPM, no problem if you use NPM or Yarn)
| Command | Action |
| :------------------ | :------------------------------------------------- |
| `pnpm install` | Installs dependencies |
| `pnpm dev` | Starts local dev server at `localhost:3000` |
| `pnpm build` | Build your production site to `./dist/` |
| `pnpm preview` | Preview your build locally, before deploying |
| `pnpm astro ...` | Run CLI commands like `astro add`, `astro preview` |
| `pnpm astro --help` | Get help using the Astro CLI |## Integrations
### UnoCSS
In this theme, I'm using [UnoCSS](https://uno.antfu.me/) to generate the CSS. It's a utility-first CSS framework that uses a single class to style elements. It's very easy to use and has a lot of features. It's setup to be completely compatible with TailwindCSS, with the advantage of being able to use PureCSS icons. You can always switch out UnoCSS for TailwindCSS if you want to, without breaking the general styles.
### Sitemap
To generate the sitemap, you don't need to do anything. It's automatically generated when you build your site. You'll just need to switch out the `site` on `astro.config.mjs` to your own.
```js title="astro.config.mjs"
import { defineConfig } from 'astro/config';export default defineConfig({
site: 'https://example.com',
});
```### RSS
The RSS feed is automatically generated from the Markdown files in the `src/content/blog` folder. You can ofcourse completely change this to your own needs.
The RSS will output to `https://example.com/feed.xml` by default. You can change this, by renaming `src/pages/feed.xml.js`.
### Image
## Components
### `components/blog/`
This directory contains all components for the blog.
### `components/errors/`
This directory contains all error components.
#### `components/errors/404.astro`
This component is used when a page is not found.
### `components/generic/`
This directory contains all generic components, reused over multiple pages.
### `components/home/`
This directory contains all components for the home page.
### `components/layout/`
This directory contains all layout components. For instance, the header and footer and `` section.
### Colors
The theme has a few colors that you can use in the included components.
- red
- blue
- green
- yellow
- pink
- purple
- orange
- teal
- cyan
- lime
- emerald
- fuchsia
- violet
- rose
- sky
- amberMore colors can be added in `astro.config.mjs` in the `colors` array.
If you need more from this theme, don't hesitate to open an issue or reach out to me!