Skip to content

Commit

Permalink
Redesign of site (#284)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
floatdrop authored Sep 16, 2022
1 parent 68db238 commit 6865872
Show file tree
Hide file tree
Showing 69 changed files with 13,242 additions and 1,520 deletions.
7 changes: 0 additions & 7 deletions .babelrc

This file was deleted.

19 changes: 0 additions & 19 deletions .editorconfig

This file was deleted.

47 changes: 18 additions & 29 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,35 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages
name: Deploy

on:
# Runs on pushes targeting the default branch
# 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: ["master"]

# Allows you to run this workflow manually from the Actions tab
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
# Single deploy job since we're just deploying
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v2
- name: Install, build, and upload your site
uses: withastro/action@v0

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install and Build
run: |
npm install
npm run build
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: 'public'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v1
23 changes: 19 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
node_modules
# build output
dist/
.output/

# dependencies
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
npm-debug.log
public
.idea
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Expose Astro dependencies for `pnpm` users
shamefully-hoist=true
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}
11 changes: 11 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"files.associations": {
"*.mdx": "markdown"
}
}
21 changes: 0 additions & 21 deletions LICENSE.md

This file was deleted.

44 changes: 33 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,42 @@
# [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)
# Welcome to [GetBEM](https://getbem.com)

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

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

```
npm install
npm start
open http://localhost:3000
/
├── public/
│ └── favicon.svg
├── src/
│ ├── components/
│ │ └── Card.astro
│ ├── layouts/
│ │ └── Layout.astro
│ └── pages/
│ └── index.astro
└── package.json
```

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

There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.

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

## 🧞 Commands

All commands are run from the root of the project, from a terminal:

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

### License
## 👀 Want to learn more?

[MIT](LICENSE.md)
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
28 changes: 28 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { defineConfig } from 'astro/config';
import tailwind from "@astrojs/tailwind";
import solidJs from "@astrojs/solid-js";
import lightningcss from "vite-plugin-lightningcss";
import image from "@astrojs/image";
import mdx from "@astrojs/mdx";
import partytown from "@astrojs/partytown";

import sitemap from "@astrojs/sitemap";

// https://astro.build/config
export default defineConfig({
site: "https://getbem.com",
integrations: [tailwind(), solidJs(), image(), mdx(), partytown({
// Adds dataLayer.push as a forwarding-event.
config: {
forward: ["dataLayer.push"]
}
}), sitemap()],
vite: {
plugins: [lightningcss({
browserslist: "last 2 versions"
})],
ssr: {
external: ["svgo"]
}
}
});
Loading

1 comment on commit 6865872

@vercel
Copy link

@vercel vercel bot commented on 6865872 Sep 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

getbem-github-io – ./

getbem-github-io.vercel.app
getbem-github-io-getbem.vercel.app
getbem-github-io-git-master-getbem.vercel.app

Please sign in to comment.