Skip to content

Commit

Permalink
Added lost-pixel, added lost-pixel baseline, fixed layout on small sc…
Browse files Browse the repository at this point in the history
…reens
  • Loading branch information
LobeTia committed Dec 23, 2024
1 parent f7cb513 commit e894bd0
Show file tree
Hide file tree
Showing 144 changed files with 1,353 additions and 128 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "npm"

- name: Install dependencies
run: npm install

- name: Build ladle
run: npm run build

- name: Serve ladle
run: npm run serve &

- name: Lost Pixel
uses: lost-pixel/[email protected]
39 changes: 39 additions & 0 deletions .github/workflows/update-lost-pixel-baseline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
on: workflow_dispatch

jobs:
lost-pixel-update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 18.x
cache: "npm"

- name: Install dependencies
run: npm install

- name: Build ladle
run: npm run build

- name: Serve ladle
run: npm run serve &

- name: Lost Pixel
id: lp
uses: lost-pixel/[email protected]
env:
LOST_PIXEL_MODE: update
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
if: ${{ failure() && steps.lp.conclusion == 'failure' }}
with:
token: ${{ secrets.GH_TOKEN }}
commit-message: update lost-pixel baselines
delete-branch: true
branch: "lost-pixel-update/${{ github.ref_name }}"
title: "Lost Pixel update - ${{ github.ref_name }}"
body: Automated baseline update PR created by Lost Pixel
2 changes: 2 additions & 0 deletions .lostpixel/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
current
difference
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .lostpixel/baseline/homepage__[w1024px].png
Binary file added .lostpixel/baseline/homepage__[w1280px].png
Binary file added .lostpixel/baseline/homepage__[w1440px].png
Binary file added .lostpixel/baseline/homepage__[w1920px].png
Binary file added .lostpixel/baseline/homepage__[w2560px].png
Binary file added .lostpixel/baseline/homepage__[w375px].png
Binary file added .lostpixel/baseline/homepage__[w414px].png
Binary file added .lostpixel/baseline/homepage__[w768px].png
Binary file added .lostpixel/baseline/watch__[w1024px].png
Binary file added .lostpixel/baseline/watch__[w1280px].png
Binary file added .lostpixel/baseline/watch__[w1440px].png
Binary file added .lostpixel/baseline/watch__[w1920px].png
Binary file added .lostpixel/baseline/watch__[w2560px].png
Binary file added .lostpixel/baseline/watch__[w375px].png
Binary file added .lostpixel/baseline/watch__[w414px].png
Binary file added .lostpixel/baseline/watch__[w768px].png
41 changes: 41 additions & 0 deletions lostpixel.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import type { CustomProjectConfig } from "lost-pixel"

export const config: CustomProjectConfig = {
pageShots: {
pages: [
{ path: "/", name: "homepage" },
{ path: "/watch", name: "watch" },
{ path: "/partecipate/events", name: "partecipate-events" },
{ path: "/partecipate/projects", name: "partecipate-projects" },
{ path: "/partecipate/local-communities", name: "partecipate-local-communities" },
{ path: "/contribute/as-individual", name: "contribute--as-individual" },
{ path: "/contribute/as-speaker", name: "contribute--as-speaker" },
{ path: "/contribute/as-partner", name: "contribute--as-partner" },
{ path: "/contribute/as-sponsor", name: "contribute--as-sponsor" },
{ path: "/association/about-us", name: "association--about-us" },
{ path: "/association/join", name: "association--join" },
{ path: "/association/press-kit", name: "association--press-kit" },
{
path: "/watch/costa-tsaousis-netdata-open-source-distributed-observability-pipeline-journey-and-challenges",
name: "watch--netdata-open-source",
},
{ path: "/speaker/costa-tsaousis", name: "speaker--costa-tsaousis" },

{ path: "/partecipate/events/open-source-day-2024", name: "partecipate--events--open-source-day-2024" },
{
path: "/partecipate/events/sh-session-dev-devrel-nel-2024",
name: "partecipate--events--sh-session-dev-devrel-nel-2024",
},
],
// IP should be localhost when running locally & 172.17.0.1 when running in GitHub action

baseUrl: "http://10.45.3.180:3000",
breakpoints: [375, 414, 768, 1024, 1280, 1440, 1920, 2560],
},
// OSS mode
generateOnly: false,
failOnDifference: true,

// lostPixelProjectId: "cm4xebtf70p3a49r7n8buzwah",
// apiKey: process.env.LOST_PIXEL_API_KEY,
}
Loading

0 comments on commit e894bd0

Please sign in to comment.