Skip to content

Commit

Permalink
[Feature] add responsive design for mobile (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-cosson authored Nov 30, 2023
1 parent ebf9eef commit b23158d
Show file tree
Hide file tree
Showing 8 changed files with 368 additions and 329 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/merge_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
matrix:
node-version: [latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: latest
Expand All @@ -27,11 +27,6 @@ jobs:
run: pnpm run lint
- name: Build
run: pnpm run build

preview-bump-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Preview Bump version
id: tag_version
uses: mathieudutour/github-tag-action@v6.1
Expand Down
25 changes: 24 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@ on:
push:
branches:
- main

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
release:
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.1
Expand All @@ -20,3 +25,21 @@ jobs:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
"@commitlint/config-conventional": "^18.4.3",
"@pandacss/astro": "^0.18.3",
"@pandacss/dev": "^0.18.3",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/parser": "^6.12.0",
"astro": "^3.6.0",
"@typescript-eslint/eslint-plugin": "^6.13.1",
"@typescript-eslint/parser": "^6.13.1",
"astro": "^3.6.3",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint-define-config": "^1.24.1",
Expand Down
10 changes: 8 additions & 2 deletions panda.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const globalCss = defineGlobalStyles({
fontFamily: 'Inter'
},
main: {
width: '60%',
width: {base: '70%', xlDown: '80%'},
margin: '50px auto',
padding: '50px',
backgroundColor: 'secondary',
Expand All @@ -27,7 +27,7 @@ const globalCss = defineGlobalStyles({
marginBottom: '50px',
textAlign: 'center',
fontWeight: 600,
fontSize: '2.5em',
fontSize: {base: '2.5em', mdDown: '1.5em'},
lineHeight: 1.2,
color: 'text'
}
Expand All @@ -43,6 +43,12 @@ export default defineConfig({
dark: '[data-color-mode=dark] &'
},
theme: {
extend: {
breakpoints: {
sm: '412px',
md: '993px'
}
},
tokens: defineTokens({
colors: {
link: {value: '#00a8e6', description: 'Color of URI links'}
Expand Down
Loading

0 comments on commit b23158d

Please sign in to comment.