Skip to content

New Design #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
20ce3ba
Prototype new design
leonard84 Apr 15, 2025
a2ced41
design v2
leonard84 Apr 15, 2025
8a8e916
Add missing tag line
leonard84 Apr 15, 2025
ee7a311
Fix link text
leonard84 Apr 15, 2025
e2a93ec
Add logo and .gitignore
leonard84 Apr 15, 2025
9e5cde1
Polish blurb
leonard84 Apr 15, 2025
16d2e68
Move links section
leonard84 Apr 15, 2025
30587e8
Remove hover animation for links
leonard84 Apr 15, 2025
5b3c61b
Merge links into cta section
leonard84 Apr 15, 2025
9dcdbb1
Fix link animations
leonard84 Apr 15, 2025
2e1dd5a
Repeat CTA after code block
leonard84 Apr 15, 2025
3e6a61d
Update example code and add output
leonard84 Apr 15, 2025
d8d9e9e
More cleanup
leonard84 Apr 15, 2025
b77cdf2
Add some seo metadata
leonard84 Apr 16, 2025
bc74fff
Moved to vite and tailwind for building
leonard84 Apr 20, 2025
2aaa2c5
Fix hover animation for cards
leonard84 Apr 20, 2025
fdba659
Increase delay for fade animation of cards
leonard84 Apr 20, 2025
2b74a4f
Add switch to disable AOS animations
leonard84 Apr 20, 2025
2fa5e58
Add fontawesome svg icons
leonard84 Apr 20, 2025
c1134b0
Add stackoverflow and latest version shield
leonard84 Apr 20, 2025
beab51d
Add workflow for verifying and previewing PR
leonard84 Apr 20, 2025
55afb7f
Add Playwright for visual testing and setup git lfs
leonard84 Apr 20, 2025
f178025
Add workflow for updating screenshots
leonard84 Apr 20, 2025
315c3ed
Support both `main` and `master` for now
leonard84 Apr 20, 2025
9bd0e1d
Add social links
leonard84 Apr 20, 2025
cf68a90
Set default working dir to `spock-website/`
leonard84 Apr 20, 2025
3b103c8
Help `setup-node` to find package-lock.json file
leonard84 Apr 20, 2025
3dca2e2
Fix playwright reporter config
leonard84 Apr 20, 2025
166185f
Use fontawesome for feature card icons as well
leonard84 Apr 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
spock-website/tests/__screenshots__/**/*.png filter=lfs diff=lfs merge=lfs -text
55 changes: 55 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: [ 'main', 'master' ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
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
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./spock-website
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
cache-dependency-path: spock-website/package-lock.json
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload dist folder
path: './spock-website/dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
45 changes: 45 additions & 0 deletions .github/workflows/update-reference-screenshots.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Deploy static content to Pages

on:
workflow_dispatch:

permissions:
contents: write

jobs:
update-screenshots:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./spock-website
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true # Download LFS files for screenshots

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
cache-dependency-path: spock-website/package-lock.json

- name: Install dependencies
run: npm ci

- name: Run Playwright Tests updating snapshots
run: npx playwright test --update-snapshots

- name: Commit updated snapshots
run: |
git config user.email "dev@forum.spockframework.org"
git config user.name "Spock Framework Robot"
git add tests/__screenshots__/
if [[ -n "$(git status --porcelain)" ]]; then
echo "::set-output name=has_changes::true"
git commit -m "Update reference screenshots"
git push origin HEAD:${{ github.ref_name }}
else
echo "::set-output name=has_changes::false"
fi
74 changes: 74 additions & 0 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Verify PR build

on:
pull_request:
branches: [ 'main', 'master' ]

concurrency:
group: '${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}'
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./spock-website
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Verify LFS files
run: |
git lfs install
git lfs fsck --pointers HEAD

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
cache-dependency-path: spock-website/package-lock.json

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Upload artifact
uses: 'actions/upload-artifact@v4'
with:
name: 'gh-pages-preview'
path: './spock-website/dist'

verify:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./spock-website
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true # Download LFS files for screenshots

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
cache-dependency-path: spock-website/package-lock.json

- name: Install dependencies
run: npm ci

- name: Run Playwright Tests
run: npx playwright test

- name: Upload Test Results (optional)
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: spock-website/playwright-report/
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.idea/
node_modules/
dist/
playwright-report/
test-results/

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

dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
157 changes: 0 additions & 157 deletions compositor.json

This file was deleted.

Loading
Loading