Skip to content

Commit 6865872

Browse files
authored
Redesign of site (#284)
After 7 years - it's time to do a update of site (design and internals). Some organization was dropped due lack of logotypes available on their sites (logotypes are not stored on the site itself).
1 parent 68db238 commit 6865872

Some content is hidden

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

69 files changed

+13242
-1520
lines changed

.babelrc

-7
This file was deleted.

.editorconfig

-19
This file was deleted.

.github/workflows/pages.yml

+18-29
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,35 @@
1-
# Simple workflow for deploying static content to GitHub Pages
2-
name: Deploy static content to Pages
1+
name: Deploy
32

43
on:
5-
# Runs on pushes targeting the default branch
4+
# Trigger the workflow every time you push to the `main` branch
5+
# Using a different branch name? Replace `main` with your branch’s name
66
push:
7-
branches: ["master"]
8-
9-
# Allows you to run this workflow manually from the Actions tab
7+
branches: [ master ]
8+
# Allows you to run this workflow manually from the Actions tab on GitHub.
109
workflow_dispatch:
11-
12-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
10+
11+
# Allow this job to clone the repo and create a page deployment
1312
permissions:
1413
contents: read
1514
pages: write
1615
id-token: write
1716

18-
# Allow one concurrent deployment
19-
concurrency:
20-
group: "pages"
21-
cancel-in-progress: true
22-
2317
jobs:
24-
# Single deploy job since we're just deploying
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout your repository using git
22+
uses: actions/checkout@v2
23+
- name: Install, build, and upload your site
24+
uses: withastro/action@v0
25+
2526
deploy:
27+
needs: build
28+
runs-on: ubuntu-latest
2629
environment:
2730
name: github-pages
2831
url: ${{ steps.deployment.outputs.page_url }}
29-
runs-on: ubuntu-latest
3032
steps:
31-
- name: Checkout
32-
uses: actions/checkout@v3
33-
- name: Install and Build
34-
run: |
35-
npm install
36-
npm run build
37-
- name: Setup Pages
38-
uses: actions/configure-pages@v2
39-
- name: Upload artifact
40-
uses: actions/upload-pages-artifact@v1
41-
with:
42-
# Upload entire repository
43-
path: 'public'
4433
- name: Deploy to GitHub Pages
4534
id: deployment
46-
uses: actions/deploy-pages@v1
35+
uses: actions/deploy-pages@v1

.gitignore

+19-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
1-
node_modules
1+
# build output
2+
dist/
3+
.output/
4+
5+
# dependencies
6+
node_modules/
7+
8+
# logs
9+
npm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
pnpm-debug.log*
13+
14+
15+
# environment variables
16+
.env
17+
.env.production
18+
19+
# macOS-specific files
220
.DS_Store
3-
npm-debug.log
4-
public
5-
.idea

.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Expose Astro dependencies for `pnpm` users
2+
shamefully-hoist=true

.travis.yml

-10
This file was deleted.

.vscode/extensions.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"recommendations": ["astro-build.astro-vscode"],
3+
"unwantedRecommendations": []
4+
}

.vscode/launch.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"command": "./node_modules/.bin/astro dev",
6+
"name": "Development server",
7+
"request": "launch",
8+
"type": "node-terminal"
9+
}
10+
]
11+
}

.vscode/settings.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"files.associations": {
3+
"*.mdx": "markdown"
4+
}
5+
}

LICENSE.md

-21
This file was deleted.

README.md

+33-11
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,42 @@
1-
# [getbem.com](http://getbem.com) [![Deploy static content to Pages](https://github.com/getbem/getbem.github.io/actions/workflows/pages.yml/badge.svg)](https://github.com/getbem/getbem.github.io/actions/workflows/pages.yml)
1+
# Welcome to [GetBEM](https://getbem.com)
22

3-
This repository contains the source for the [getbem.com](http://getbem.com) site.
3+
## 🚀 Project Structure
44

5-
### Usage
5+
Inside of your Astro project, you'll see the following folders and files:
66

77
```
8-
npm install
9-
npm start
10-
11-
open http://localhost:3000
8+
/
9+
├── public/
10+
│ └── favicon.svg
11+
├── src/
12+
│ ├── components/
13+
│ │ └── Card.astro
14+
│ ├── layouts/
15+
│ │ └── Layout.astro
16+
│ └── pages/
17+
│ └── index.astro
18+
└── package.json
1219
```
1320

14-
### Deploying
21+
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
22+
23+
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
24+
25+
Any static assets, like images, can be placed in the `public/` directory.
26+
27+
## 🧞 Commands
28+
29+
All commands are run from the root of the project, from a terminal:
1530

16-
Merge commits into `master` and GitHub actions will do the rest.
31+
| Command | Action |
32+
| :--------------------- | :------------------------------------------------- |
33+
| `npm install` | Installs dependencies |
34+
| `npm run dev` | Starts local dev server at `localhost:3000` |
35+
| `npm run build` | Build your production site to `./dist/` |
36+
| `npm run preview` | Preview your build locally, before deploying |
37+
| `npm run astro ...` | Run CLI commands like `astro add`, `astro preview` |
38+
| `npm run astro --help` | Get help using the Astro CLI |
1739

18-
### License
40+
## 👀 Want to learn more?
1941

20-
[MIT](LICENSE.md)
42+
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).

astro.config.mjs

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { defineConfig } from 'astro/config';
2+
import tailwind from "@astrojs/tailwind";
3+
import solidJs from "@astrojs/solid-js";
4+
import lightningcss from "vite-plugin-lightningcss";
5+
import image from "@astrojs/image";
6+
import mdx from "@astrojs/mdx";
7+
import partytown from "@astrojs/partytown";
8+
9+
import sitemap from "@astrojs/sitemap";
10+
11+
// https://astro.build/config
12+
export default defineConfig({
13+
site: "https://getbem.com",
14+
integrations: [tailwind(), solidJs(), image(), mdx(), partytown({
15+
// Adds dataLayer.push as a forwarding-event.
16+
config: {
17+
forward: ["dataLayer.push"]
18+
}
19+
}), sitemap()],
20+
vite: {
21+
plugins: [lightningcss({
22+
browserslist: "last 2 versions"
23+
})],
24+
ssr: {
25+
external: ["svgo"]
26+
}
27+
}
28+
});

0 commit comments

Comments
 (0)