Skip to content

Commit

Permalink
Website recreated with Astro; testing GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
brainless committed Jul 2, 2024
1 parent 16cbad5 commit e41e3e8
Show file tree
Hide file tree
Showing 98 changed files with 7,965 additions and 15,834 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: "publish-dwata-desktop-app"

on:
push:
tags:
- "v"
branches:
- "marketing/prep_buildspace_w2"

# This is the example from the readme.
# On each push to the `release` branch it will create or update a GitHub release, build your app, and upload the artifacts to the release.
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/widgets/chat/ReplyItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ const ReplyItem: Component<IPropTypes> = (props) => {
!!refMarkedContent
) {
// This is an AI generated message, show as Markdown
refMarkedContent.innerHTML = marked.parse(props.message);
const parsed = marked.parse(props.message);
if (typeof parsed === "string") {
refMarkedContent.innerHTML = parsed;
}
}
});

Expand Down
1 change: 0 additions & 1 deletion website/.env

This file was deleted.

32 changes: 15 additions & 17 deletions website/.gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# build output
dist/
.output/
.astro

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*


# environment variables
.env
.env.production

# macOS-specific files
.DS_Store
1 change: 1 addition & 0 deletions website/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
5 changes: 5 additions & 0 deletions website/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"tabWidth": 2,
"useTabs": false,
"bracketSameLine": true
}
695 changes: 674 additions & 21 deletions website/LICENSE

Large diffs are not rendered by default.

172 changes: 135 additions & 37 deletions website/README.md
Original file line number Diff line number Diff line change
@@ -1,68 +1,166 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
# Astroship - Astro SAAS Starter Website Template

## Available Scripts
Astroship is a free starter astro website template for saas, startups, marketing websites, landing pages & blogs. Built with Astro & TailwindCSS.

In the project directory, you can run:
This Free Template is sponsored by [Web3Templates](https://web3templates.com)

### `yarn start`
## Live Demo

Runs the app in the development mode.<br />
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
**[https://astroship.web3templates.com/](https://astroship.web3templates.com/)**

The page will reload if you make edits.<br />
You will also see any lint errors in the console.
**[Download Astroship Template](https://web3templates.com/templates/astroship-starter-website-template-for-astro)**

### `yarn test`
## Upgrade to Astroship Pro Version

Launches the test runner in the interactive watch mode.<br />
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
**[https://astroship-pro.web3templates.com/](https://astroship-pro.web3templates.com/)**

### `yarn build`
**[Purchase Astroship Pro — $49](https://web3templates.com/templates/astroship-pro-astro-saas-website-template)**

Builds the app for production to the `build` folder.<br />
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br />
Your app is ready to be deployed!
<!-- prettier-ignore -->
| Feature | Free Version | Pro Version |
| --- | ------ | --- |
| Astro v3 |||
| Content Collections |||
| Tailwind CSS |||
| Mobile Responsive |||
| Working Contact Page |||
| Pro Layouts & Features |||
| Blog with Pagination |||
| View Transitions |||
| Advanced Homepage Design |||
| Features Page |||
| Integrations Page |||
| Elegant 404 Page |||
| 6 Months Support|||
| Free Updates |||
| License | GPL-2.0 | Commercial |
| &nbsp; | &nbsp;| &nbsp;|
| Pricing| Free|**$49**|
| &nbsp; | [Deploy for free](https://vercel.com/new/surjithctly/clone?demo-description=Starter%20template%20for%20startups%2C%20marketing%20websites%20%26%20blogs%20built%20with%20Astro%20and%20TailwindCSS.&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F5dB0dDqBr1BfvIoNOmffVB%2F784984a8d3fe5e3db123e7c655166046%2Fastroship_-_Tony_Sullivan.jpg&demo-title=Astroship&demo-url=https%3A%2F%2Fastroship.web3templates.com%2F&from=templates&project-name=Astroship&repository-name=astroship&repository-url=https%3A%2F%2Fgit.luolix.top%2Fsurjithctly%2Fastroship&skippable-integrations=1) | [Purchase Pro](https://web3templates.com/templates/astroship-pro-astro-saas-website-template) |

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
<a href="https://web3templates.com/templates/astroship-pro-astro-saas-website-template">
<img width="160" alt="Upgrade to Pro" src="https://user-images.githubusercontent.com/1884712/199181300-37c2128e-d033-4145-a906-16fa5263a53b.png">
</a>

### `yarn eject`
## Deploy this template

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
You can instantly clone this to your GitHub and deploy the site by clicking the below buttons to deploy to your chosen providers!

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
Click here to deploy on Vercel:

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgit.luolix.top%2Fsurjithctly%2Fastroship&project-name=astroship&repository-name=astroship&demo-title=Astroship%20-%20Astro%20Starter%20Template&demo-description=Astroship%20is%20a%20starter%20template%20for%20startups%2C%20marketing%20websites%20%26%20landing%20pages.%20Built%20with%20Astro%2C%20TailwindCSS&demo-url=https%3A%2F%2Fastroship.web3templates.com%2F&demo-image=https%3A%2F%2Fuser-images.githubusercontent.com%2F1884712%2F200831799-10ef2456-a02e-4068-b580-4b5326f0b33b.png)

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
Click here to deploy on Netlify:

## Learn More
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/surjithctly/astroship)

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
## Preview

To learn React, check out the [React documentation](https://reactjs.org/).
![image](https://user-images.githubusercontent.com/1884712/200831799-10ef2456-a02e-4068-b580-4b5326f0b33b.png)

### Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
## Pro Version Preview

### Analyzing the Bundle Size
![preview](https://github.com/surjithctly/astroship/assets/1884712/25665c02-d2a7-43dc-89b2-34a8ae37ade9)

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

### Making a Progressive Web App
### Pagespeed Score

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
[![pagespeed](https://user-images.githubusercontent.com/1884712/210250214-7aa98167-7993-4b90-8138-326b8fa0c223.png)](https://pagespeed.web.dev/report?url=https%3A%2F%2Fastroship.web3templates.com%2F)

### Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
## Installation

### Deployment
If you are reading this on github, you can click on the "Use this template" button above to create a new repository from astroship to your account. Then you can do a `git clone` to clone it to your local system.

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
Alternatively, you can clone the project directly from this repo to your local system.

### `yarn build` fails to minify
### 1. Clone the repo

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
```bash
git clone https://github.com/surjithctly/astroship.git myProjectName
# or
git clone https://github.com/surjithctly/astroship.git .
```

The `.` will clone it to the current directory so make sure you are inside your project folder first.

### 2. Install Dependencies

```bash
npm install
# or
yarn install
# or (recommended)
pnpm install
```

### 3. Start development Server

```bash
npm run dev
# or
yarn dev
# or (recommended)
pnpm dev
```

### Preview & Build

```bash
npm run preview
npm run build
# or
yarn preview
yarn build
# or (recommended)
pnpm preview
pnpm build
```

We recommend using [pnpm](https://pnpm.io/) to save disk space on your computer.

### Other Commands

```bash
pnpm astro ...
pnpm astro add
pnpm astro --help
```

## Project Structure

Inside of your Astro project, you'll see the following folders and files:

```
/
├── public/
│ └── ...
├── src/
│ ├── components/
│ │ └── ...
│ ├── layouts/
│ │ └── ...
│ └── pages/
│ └── ...
└── package.json
```

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

Any static assets, like images, can be placed in the `public/` directory.

## TailwindCSS

TailwindCSS is already configured in this repo, so you can start using it without any installation.

## Credits

[Hero Illustration](https://www.figma.com/community/file/1108400791662599811) by [Streamline](https://www.streamlinehq.com/)

## 👀 Want to learn more?

Feel free to check out [Astro Docs](https://docs.astro.build) or jump into our [Discord Chat](https://web3templates.com/discord).

[![Built with Astro](https://astro.badg.es/v1/built-with-astro.svg)](https://astro.build)
11 changes: 11 additions & 0 deletions website/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import icon from "astro-icon";

// https://astro.build/config
export default defineConfig({
site: "https://astroship.web3templates.com",
integrations: [tailwind(), mdx(), sitemap(), icon()],
});
6 changes: 0 additions & 6 deletions website/jsconfig.json

This file was deleted.

68 changes: 24 additions & 44 deletions website/package.json
Original file line number Diff line number Diff line change
@@ -1,50 +1,30 @@
{
"name": "user-app",
"version": "0.1.0",
"name": "astroship",
"type": "module",
"version": "2.2.0",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-free": "^5.13.0",
"@fullhuman/postcss-purgecss": "^2.3.0",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-markdown": "^4.3.1",
"react-router-dom": "^5.2.0",
"react-scripts": "3.4.1",
"tailwindcss": "^1.4.6"
},
"scripts": {
"build:tailwind": "postcss src/style/index.tailwind.css -o src/style/index.css",
"watch:tailwind": "postcss -w src/style/index.tailwind.css -o src/style/index.css",
"start": "PORT=39284 run-p watch:tailwind start:react",
"start:react": "react-scripts start",
"prebuild": "npm run build:tailwind",
"build": "react-scripts build",
"postbuild": "react-snap",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"autoprefixer": "^9.8.2",
"npm-run-all": "^4.1.5",
"postcss-cli": "^7.1.1",
"react-snap": "^1.23.0"
"dependencies": {
"@astrojs/mdx": "^3.1.2",
"@astrojs/sitemap": "^3.1.6",
"@astrojs/tailwind": "^5.1.0",
"@fontsource-variable/manrope": "^5.0.20",
"@fontsource-variable/space-grotesk": "^5.0.18",
"@iconify-json/bx": "^1.1.10",
"@iconify-json/simple-icons": "^1.1.108",
"@iconify-json/uil": "^1.1.8",
"@tailwindcss/typography": "^0.5.13",
"astro": "^4.11.3",
"astro-icon": "^1.1.0",
"astro-navbar": "^2.3.3",
"astro-seo": "^0.8.4",
"sharp": "^0.33.4",
"tailwindcss": "^3.4.4"
}
}
Loading

0 comments on commit e41e3e8

Please sign in to comment.