Skip to content

Commit 2471621

Browse files
committed
move site from relevantstudy.com
1 parent 1401095 commit 2471621

157 files changed

Lines changed: 22949 additions & 2 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM node:lts AS base
2+
WORKDIR /app
3+
4+
FROM base AS deps
5+
COPY package*.json ./
6+
RUN npm install
7+
8+
FROM base AS build
9+
COPY --from=deps /app/node_modules ./node_modules
10+
COPY . .
11+
RUN npm run build
12+
13+
FROM nginx:stable-alpine AS deploy
14+
COPY --from=build /app/dist /usr/share/nginx/html
15+
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
16+
17+
EXPOSE 8080

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 onWidget
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 295 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,295 @@
1-
# mofa-org.github.io
2-
MoFA: Everything Agent
1+
# 🚀 AstroWind
2+
3+
<img src="https://raw.githubusercontent.com/onwidget/.github/main/resources/astrowind/lighthouse-score.png" align="right"
4+
alt="AstroWind Lighthouse Score" width="100" height="358">
5+
6+
🌟 _Most *starred* & *forked* Astro theme in 2022, 2023 & 2024_. 🌟
7+
8+
**AstroWind** is a free and open-source template to make your website using **[Astro 5.0](https://astro.build/) + [Tailwind CSS](https://tailwindcss.com/)**. Ready to start a new project and designed taking into account web best practices.
9+
10+
-**Production-ready** scores in **PageSpeed Insights** reports.
11+
- ✅ Integration with **Tailwind CSS** supporting **Dark mode** and **_RTL_**.
12+
-**Fast and SEO friendly blog** with automatic **RSS feed**, **MDX** support, **Categories & Tags**, **Social Share**, ...
13+
-**Image Optimization** (using new **Astro Assets** and **Unpic** for Universal image CDN).
14+
- ✅ Generation of **project sitemap** based on your routes.
15+
-**Open Graph tags** for social media sharing.
16+
-**Analytics** built-in Google Analytics, and Splitbee integration.
17+
18+
<br>
19+
20+
![AstroWind Theme Screenshot](https://raw.githubusercontent.com/onwidget/.github/main/resources/astrowind/screenshot-astrowind-1.0.png)
21+
22+
[![onWidget](https://custom-icon-badges.demolab.com/badge/made%20by%20-onWidget-556bf2?style=flat-square&logo=onwidget&logoColor=white&labelColor=101827)](https://onwidget.com)
23+
[![License](https://img.shields.io/github/license/onwidget/astrowind?style=flat-square&color=dddddd&labelColor=000000)](https://github.com/onwidget/astrowind/blob/main/LICENSE.md)
24+
[![Maintained](https://img.shields.io/badge/maintained%3F-yes-brightgreen.svg?style=flat-square)](https://github.com/onwidget)
25+
[![Contributions Welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat-square)](https://github.com/onwidget/astrowind#contributing)
26+
[![Known Vulnerabilities](https://snyk.io/test/github/onwidget/astrowind/badge.svg?style=flat-square)](https://snyk.io/test/github/onwidget/astrowind)
27+
[![Stars](https://img.shields.io/github/stars/onwidget/astrowind.svg?style=social&label=stars&maxAge=86400&color=ff69b4)](https://github.com/onwidget/astrowind)
28+
[![Forks](https://img.shields.io/github/forks/onwidget/astrowind.svg?style=social&label=forks&maxAge=86400&color=ff69b4)](https://github.com/onwidget/astrowind)
29+
30+
<br>
31+
32+
<details open>
33+
<summary>Table of Contents</summary>
34+
35+
- [Demo](#demo)
36+
- [Upcoming: AstroWind 2.0 – We Need Your Vision!](#-upcoming-astrowind-20--we-need-your-vision)
37+
- [Getting started](#getting-started)
38+
- [Project structure](#project-structure)
39+
- [Commands](#commands)
40+
- [Configuration](#configuration)
41+
- [Deploy](#deploy)
42+
- [Frequently Asked Questions](#frequently-asked-questions)
43+
- [Related Projects](#related-projects)
44+
- [Contributing](#contributing)
45+
- [Acknowledgements](#acknowledgements)
46+
- [License](#license)
47+
48+
</details>
49+
50+
<br>
51+
52+
## Demo
53+
54+
📌 [https://astrowind.vercel.app/](https://astrowind.vercel.app/)
55+
56+
<br>
57+
58+
## 🔔 Upcoming: AstroWind 2.0 – We Need Your Vision!
59+
60+
We're embarking on an exciting journey with **AstroWind 2.0**, and we want you to be a part of it! We're currently taking the first steps in developing this new version and your insights are invaluable. Join the discussion and share your feedback, ideas, and suggestions to help shape the future of **AstroWind**. Let's make **AstroWind 2.0** even better, together!
61+
62+
[Share Your Feedback in Our Discussion!](https://github.com/onwidget/astrowind/discussions/392)
63+
64+
<br>
65+
66+
## Getting started
67+
68+
**AstroWind** tries to give you quick access to creating a website using [Astro 5.0](https://astro.build/) + [Tailwind CSS](https://tailwindcss.com/). It's a free theme which focuses on simplicity, good practices and high performance.
69+
70+
Very little vanilla javascript is used only to provide basic functionality so that each developer decides which framework (React, Vue, Svelte, Solid JS...) to use and how to approach their goals.
71+
72+
In this version the template supports all the options in the `output` configuration, `static`, `hybrid` and `server`, but the blog only works with `prerender = true`. We are working on the next version and aim to make it fully compatible with SSR.
73+
74+
### Project structure
75+
76+
Inside **AstroWind** template, you'll see the following folders and files:
77+
78+
```
79+
/
80+
├── public/
81+
│ ├── _headers
82+
│ └── robots.txt
83+
├── src/
84+
│ ├── assets/
85+
│ │ ├── favicons/
86+
│ │ ├── images/
87+
│ │ └── styles/
88+
│ │ └── tailwind.css
89+
│ ├── components/
90+
│ │ ├── blog/
91+
│ │ ├── common/
92+
│ │ ├── ui/
93+
│ │ ├── widgets/
94+
│ │ │ ├── Header.astro
95+
│ │ │ └── ...
96+
│ │ ├── CustomStyles.astro
97+
│ │ ├── Favicons.astro
98+
│ │ └── Logo.astro
99+
│ ├── content/
100+
│ │ ├── post/
101+
│ │ │ ├── post-slug-1.md
102+
│ │ │ ├── post-slug-2.mdx
103+
│ │ │ └── ...
104+
│ │ └-- config.ts
105+
│ ├── layouts/
106+
│ │ ├── Layout.astro
107+
│ │ ├── MarkdownLayout.astro
108+
│ │ └── PageLayout.astro
109+
│ ├── pages/
110+
│ │ ├── [...blog]/
111+
│ │ │ ├── [category]/
112+
│ │ │ ├── [tag]/
113+
│ │ │ ├── [...page].astro
114+
│ │ │ └── index.astro
115+
│ │ ├── index.astro
116+
│ │ ├── 404.astro
117+
│ │ ├-- rss.xml.ts
118+
│ │ └── ...
119+
│ ├── utils/
120+
│ ├── config.yaml
121+
│ └── navigation.js
122+
├── package.json
123+
├── astro.config.ts
124+
└── ...
125+
```
126+
127+
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
128+
129+
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
130+
131+
Any static assets, like images, can be placed in the `public/` directory if they do not require any transformation or in the `assets/` directory if they are imported directly.
132+
133+
[![Edit AstroWind on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://githubbox.com/onwidget/astrowind/tree/main) [![Open in Gitpod](https://svgshare.com/i/xdi.svg)](https://gitpod.io/?on=gitpod#https://github.com/onwidget/astrowind) [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/onwidget/astrowind)
134+
135+
> 🧑‍🚀 **Seasoned astronaut?** Delete this file `README.md`. Update `src/config.yaml` and contents. Have fun!
136+
137+
<br>
138+
139+
### Commands
140+
141+
All commands are run from the root of the project, from a terminal:
142+
143+
| Command | Action |
144+
| :------------------ | :------------------------------------------------- |
145+
| `npm install` | Installs dependencies |
146+
| `npm run dev` | Starts local dev server at `localhost:4321` |
147+
| `npm run build` | Build your production site to `./dist/` |
148+
| `npm run preview` | Preview your build locally, before deploying |
149+
| `npm run check` | Check your project for errors |
150+
| `npm run fix` | Run Eslint and format codes with Prettier |
151+
| `npm run astro ...` | Run CLI commands like `astro add`, `astro preview` |
152+
153+
<br>
154+
155+
### Configuration
156+
157+
Basic configuration file: `./src/config.yaml`
158+
159+
```yaml
160+
site:
161+
name: 'Example'
162+
site: 'https://example.com'
163+
base: '/' # Change this if you need to deploy to Github Pages, for example
164+
trailingSlash: false # Generate permalinks with or without "/" at the end
165+
166+
googleSiteVerificationId: false # Or some value,
167+
168+
# Default SEO metadata
169+
metadata:
170+
title:
171+
default: 'Example'
172+
template: '%s — Example'
173+
description: 'This is the default meta description of Example website'
174+
robots:
175+
index: true
176+
follow: true
177+
openGraph:
178+
site_name: 'Example'
179+
images:
180+
- url: '~/assets/images/default.png'
181+
width: 1200
182+
height: 628
183+
type: website
184+
twitter:
185+
handle: '@twitter_user'
186+
site: '@twitter_user'
187+
cardType: summary_large_image
188+
189+
i18n:
190+
language: en
191+
textDirection: ltr
192+
193+
apps:
194+
blog:
195+
isEnabled: true # If the blog will be enabled
196+
postsPerPage: 6 # Number of posts per page
197+
198+
post:
199+
isEnabled: true
200+
permalink: '/blog/%slug%' # Variables: %slug%, %year%, %month%, %day%, %hour%, %minute%, %second%, %category%
201+
robots:
202+
index: true
203+
204+
list:
205+
isEnabled: true
206+
pathname: 'blog' # Blog main path, you can change this to "articles" (/articles)
207+
robots:
208+
index: true
209+
210+
category:
211+
isEnabled: true
212+
pathname: 'category' # Category main path /category/some-category, you can change this to "group" (/group/some-category)
213+
robots:
214+
index: true
215+
216+
tag:
217+
isEnabled: true
218+
pathname: 'tag' # Tag main path /tag/some-tag, you can change this to "topics" (/topics/some-category)
219+
robots:
220+
index: false
221+
222+
isRelatedPostsEnabled: true # If a widget with related posts is to be displayed below each post
223+
relatedPostsCount: 4 # Number of related posts to display
224+
225+
analytics:
226+
vendors:
227+
googleAnalytics:
228+
id: null # or "G-XXXXXXXXXX"
229+
230+
ui:
231+
theme: 'system' # Values: "system" | "light" | "dark" | "light:only" | "dark:only"
232+
```
233+
234+
<br>
235+
236+
#### Customize Design
237+
238+
To customize Font families, Colors or more Elements refer to the following files:
239+
240+
- `src/components/CustomStyles.astro`
241+
- `src/assets/styles/tailwind.css`
242+
243+
### Deploy
244+
245+
#### Deploy to production (manual)
246+
247+
You can create an optimized production build with:
248+
249+
```shell
250+
npm run build
251+
```
252+
253+
Now, your website is ready to be deployed. All generated files are located at
254+
`dist` folder, which you can deploy the folder to any hosting service you
255+
prefer.
256+
257+
#### Deploy to Netlify
258+
259+
Clone this repository on your own GitHub account and deploy it to Netlify:
260+
261+
[![Netlify Deploy button](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/onwidget/astrowind)
262+
263+
#### Deploy to Vercel
264+
265+
Clone this repository on your own GitHub account and deploy to Vercel:
266+
267+
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fonwidget%2Fastrowind)
268+
269+
<br>
270+
271+
## Frequently Asked Questions
272+
273+
- Why?
274+
-
275+
-
276+
277+
<br>
278+
279+
## Related projects
280+
281+
- [TailNext](https://tailnext.vercel.app/) - Free template using Next.js 14 and Tailwind CSS with the new App Router.
282+
- [Qwind](https://qwind.pages.dev/) - Free template to make your website using Qwik + Tailwind CSS.
283+
284+
## Contributing
285+
286+
If you have any ideas, suggestions or find any bugs, feel free to open a discussion, an issue or create a pull request.
287+
That would be very useful for all of us and we would be happy to listen and take action.
288+
289+
## Acknowledgements
290+
291+
Initially created by [onWidget](https://onwidget.com) and maintained by a community of [contributors](https://github.com/onwidget/astrowind/graphs/contributors).
292+
293+
## License
294+
295+
**AstroWind** is licensed under the MIT license — see the [LICENSE](./LICENSE.md) file for details.

0 commit comments

Comments
 (0)