Skip to content

Commit

Permalink
chore: setup and initial content edit
Browse files Browse the repository at this point in the history
  • Loading branch information
cvgellhorn committed Jul 4, 2024
1 parent 9077339 commit 7279a9e
Show file tree
Hide file tree
Showing 9 changed files with 203 additions and 186 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy to GitHub Pages

on:
# Trigger the workflow every time you push to the `main` branch
# Using a different branch name? Replace `main` with your branch’s name
push:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Install, build, and upload your site
uses: withastro/action@v2
# with:
# path: . # The root location of your Astro project inside the repository. (optional)
# node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
# package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 0 additions & 2 deletions .npmrc

This file was deleted.

27 changes: 27 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "dev",
"label": "npm run dev",
"detail": "astro dev",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"type": "npm",
"script": "test",
"label": "npm run test",
"detail": "remix test",
"problemMatcher": [],
"group": {
"kind": "test",
"isDefault": true
}
}
]
}
9 changes: 0 additions & 9 deletions netlify.toml

This file was deleted.

13 changes: 7 additions & 6 deletions src/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
site:
name: AstroWind
site: 'https://astrowind.vercel.app'
name: Sturmfrei
# site: 'https://sturmfrei.com.au'
site: 'https://sturmfreico.github.io'
base: '/'
trailingSlash: false

Expand All @@ -9,14 +10,14 @@ site:
# Default SEO metadata
metadata:
title:
default: AstroWind
template: '%s — AstroWind'
description: "\U0001F680 Suitable for Startups, Small Business, Sass Websites, Professional Portfolios, Marketing Websites, Landing Pages & Blogs."
default: Sturmfrei Pty Ltd
template: '%s — Sturmfrei'
description: "\U0001F680 Delightful apps and tools for the web."
robots:
index: true
follow: true
openGraph:
site_name: AstroWind
site_name: Sturmfrei
images:
- url: '~/assets/images/default.png'
width: 1200
Expand Down
6 changes: 3 additions & 3 deletions src/layouts/PageLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Layout from '~/layouts/Layout.astro';
import Header from '~/components/widgets/Header.astro';
import Footer from '~/components/widgets/Footer.astro';
import Announcement from '~/components/widgets/Announcement.astro';
// import Announcement from '~/components/widgets/Announcement.astro';
import { headerData, footerData } from '~/navigation';
Expand All @@ -16,9 +16,9 @@ const { metadata } = Astro.props;
---

<Layout metadata={metadata}>
<slot name="announcement">
<!-- <slot name="announcement">
<Announcement />
</slot>
</slot> -->
<slot name="header">
<Header {...headerData} isSticky showRssFeed showToggleTheme />
</slot>
Expand Down
236 changes: 118 additions & 118 deletions src/navigation.js
Original file line number Diff line number Diff line change
@@ -1,121 +1,121 @@
import { getPermalink, getBlogPermalink, getAsset } from './utils/permalinks';
import { getPermalink, getAsset } from './utils/permalinks';

export const headerData = {
links: [
{
text: 'Homes',
links: [
{
text: 'SaaS',
href: getPermalink('/homes/saas'),
},
{
text: 'Startup',
href: getPermalink('/homes/startup'),
},
{
text: 'Mobile App',
href: getPermalink('/homes/mobile-app'),
},
{
text: 'Personal',
href: getPermalink('/homes/personal'),
},
],
},
{
text: 'Pages',
links: [
{
text: 'Features (Anchor Link)',
href: getPermalink('/#features'),
},
{
text: 'Services',
href: getPermalink('/services'),
},
{
text: 'Pricing',
href: getPermalink('/pricing'),
},
{
text: 'About us',
href: getPermalink('/about'),
},
{
text: 'Contact',
href: getPermalink('/contact'),
},
{
text: 'Terms',
href: getPermalink('/terms'),
},
{
text: 'Privacy policy',
href: getPermalink('/privacy'),
},
],
},
{
text: 'Landing',
links: [
{
text: 'Lead Generation',
href: getPermalink('/landing/lead-generation'),
},
{
text: 'Long-form Sales',
href: getPermalink('/landing/sales'),
},
{
text: 'Click-Through',
href: getPermalink('/landing/click-through'),
},
{
text: 'Product Details (or Services)',
href: getPermalink('/landing/product'),
},
{
text: 'Coming Soon or Pre-Launch',
href: getPermalink('/landing/pre-launch'),
},
{
text: 'Subscription',
href: getPermalink('/landing/subscription'),
},
],
},
{
text: 'Blog',
links: [
{
text: 'Blog List',
href: getBlogPermalink(),
},
{
text: 'Article',
href: getPermalink('get-started-website-with-astro-tailwind-css', 'post'),
},
{
text: 'Article (with MDX)',
href: getPermalink('markdown-elements-demo-post', 'post'),
},
{
text: 'Category Page',
href: getPermalink('tutorials', 'category'),
},
{
text: 'Tag Page',
href: getPermalink('astro', 'tag'),
},
],
},
{
text: 'Widgets',
href: '#',
},
// {
// text: 'Homes',
// links: [
// {
// text: 'SaaS',
// href: getPermalink('/homes/saas'),
// },
// {
// text: 'Startup',
// href: getPermalink('/homes/startup'),
// },
// {
// text: 'Mobile App',
// href: getPermalink('/homes/mobile-app'),
// },
// {
// text: 'Personal',
// href: getPermalink('/homes/personal'),
// },
// ],
// },
// {
// text: 'Pages',
// links: [
// {
// text: 'Features (Anchor Link)',
// href: getPermalink('/#features'),
// },
// {
// text: 'Services',
// href: getPermalink('/services'),
// },
// {
// text: 'Pricing',
// href: getPermalink('/pricing'),
// },
// {
// text: 'About us',
// href: getPermalink('/about'),
// },
// {
// text: 'Contact',
// href: getPermalink('/contact'),
// },
// {
// text: 'Terms',
// href: getPermalink('/terms'),
// },
// {
// text: 'Privacy policy',
// href: getPermalink('/privacy'),
// },
// ],
// },
// {
// text: 'Landing',
// links: [
// {
// text: 'Lead Generation',
// href: getPermalink('/landing/lead-generation'),
// },
// {
// text: 'Long-form Sales',
// href: getPermalink('/landing/sales'),
// },
// {
// text: 'Click-Through',
// href: getPermalink('/landing/click-through'),
// },
// {
// text: 'Product Details (or Services)',
// href: getPermalink('/landing/product'),
// },
// {
// text: 'Coming Soon or Pre-Launch',
// href: getPermalink('/landing/pre-launch'),
// },
// {
// text: 'Subscription',
// href: getPermalink('/landing/subscription'),
// },
// ],
// },
// {
// text: 'Blog',
// links: [
// {
// text: 'Blog List',
// href: getBlogPermalink(),
// },
// {
// text: 'Article',
// href: getPermalink('get-started-website-with-astro-tailwind-css', 'post'),
// },
// {
// text: 'Article (with MDX)',
// href: getPermalink('markdown-elements-demo-post', 'post'),
// },
// {
// text: 'Category Page',
// href: getPermalink('tutorials', 'category'),
// },
// {
// text: 'Tag Page',
// href: getPermalink('astro', 'tag'),
// },
// ],
// },
// {
// text: 'Widgets',
// href: '#',
// },
],
actions: [{ text: 'Download', href: 'https://github.com/onwidget/astrowind', target: '_blank' }],
// actions: [{ text: 'Download', href: 'https://github.com/onwidget/astrowind', target: '_blank' }],
};

export const footerData = {
Expand Down Expand Up @@ -176,8 +176,8 @@ export const footerData = {
{ ariaLabel: 'RSS', icon: 'tabler:rss', href: getAsset('/rss.xml') },
{ ariaLabel: 'Github', icon: 'tabler:brand-github', href: 'https://github.com/onwidget/astrowind' },
],
footNote: `
<img class="w-5 h-5 md:w-6 md:h-6 md:-mt-0.5 bg-cover mr-1.5 rtl:mr-0 rtl:ml-1.5 float-left rtl:float-right rounded-sm" src="https://onwidget.com/favicon/favicon-32x32.png" alt="onWidget logo" loading="lazy"></img>
Made by <a class="text-blue-600 underline dark:text-muted" href="https://onwidget.com/"> onWidget</a> · All rights reserved.
`,
// footNote: `
// <img class="w-5 h-5 md:w-6 md:h-6 md:-mt-0.5 bg-cover mr-1.5 rtl:mr-0 rtl:ml-1.5 float-left rtl:float-right rounded-sm" src="https://onwidget.com/favicon/favicon-32x32.png" alt="onWidget logo" loading="lazy"></img>
// Made by <a class="text-blue-600 underline dark:text-muted" href="https://onwidget.com/"> onWidget</a> · All rights reserved.
// `,
};
Loading

0 comments on commit 7279a9e

Please sign in to comment.