Skip to content

Commit eac7356

Browse files
committed
Design updates
Add docker image build workflow
1 parent 501dc34 commit eac7356

File tree

5 files changed

+103
-15
lines changed

5 files changed

+103
-15
lines changed

.docker/Dockerfile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
FROM php:8.1-alpine
2+
3+
# Optional, force UTC as server time
4+
RUN echo "UTC" > /etc/timezone
5+
6+
RUN apk add --no-cache git curl sqlite curl-dev
7+
RUN docker-php-ext-configure curl && docker-php-ext-install curl
8+
RUN docker-php-ext-install opcache && docker-php-ext-enable opcache
9+
RUN docker-php-ext-install pcntl
10+
RUN apk add --no-cache libzip-dev && docker-php-ext-configure zip && docker-php-ext-install zip
11+
12+
RUN apk --no-cache add pcre-dev ${PHPIZE_DEPS}
13+
RUN pecl install xhprof
14+
15+
RUN docker-php-ext-enable xhprof
16+
17+
ARG CACHEBUST=1
18+
19+
# Install Composer
20+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
21+
22+
WORKDIR /app
23+
24+
ARG CACHEBUST=2
25+
26+
ENV COMPOSER_ALLOW_SUPERUSER=1
27+
28+
RUN git clone https://github.com/buggregator/examples.git /app
29+
RUN composer install
30+
31+
RUN chmod 0777 storage -R
32+
RUN chmod 0777 bootstrap -R
33+
34+
EXPOSE 8000
35+
36+
CMD php artisan serve --host=0.0.0.0

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
patreon: butschster

.github/workflows/docker-image.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Docker Image CI
2+
3+
on:
4+
release:
5+
types:
6+
- created
7+
8+
jobs:
9+
build-release:
10+
if: "!github.event.release.prerelease"
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: 'Get Previous tag'
17+
id: previoustag
18+
uses: "WyriHaximus/github-action-get-previous-tag@v1"
19+
with:
20+
fallback: v0.1
21+
22+
- name: Login to Docker Hub
23+
uses: docker/login-action@v2
24+
with:
25+
registry: ghcr.io
26+
username: ${{ secrets.GHCR_LOGIN }}
27+
password: ${{ secrets.GHCR_PASSWORD }}
28+
29+
- name: Set up QEMU
30+
uses: docker/setup-qemu-action@v2
31+
32+
- name: Set up Docker Buildx
33+
id: buildx
34+
uses: docker/setup-buildx-action@v2
35+
36+
- name: Build and push
37+
id: docker_build
38+
uses: docker/build-push-action@v3
39+
with:
40+
context: ./
41+
platforms: linux/amd64
42+
file: ./.docker/Dockerfile
43+
push: true
44+
build-args: |
45+
APP_VERSION=${{ steps.previoustag.outputs.tag }}
46+
tags:
47+
ghcr.io/${{ github.repository }}:latest, ghcr.io/${{ github.repository }}:${{ steps.previoustag.outputs.tag }}

public/app.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
}
66

77
.device-desktop, .device-desktop > div {
8-
border-radius: .375rem;
98
width: 100%
109
}
1110

resources/views/welcome.blade.php

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ class="text-lg font-bold hover:text-gray-400">
3737
transform="scale(64)" />
3838
</svg>
3939
</a>
40+
41+
<a href="https://discord.gg/4NFWBqMA8z" target="_blank">
42+
<svg class="w-6 h-6 fill-current" viewBox="0 -28.5 256 256" xmlns="http://www.w3.org/2000/svg"><path d="M216.9 16.6A208.5 208.5 0 0 0 164 0c-2.2 4.1-4.9 9.6-6.7 14a194 194 0 0 0-58.6 0C97 9.6 94.2 4.1 92 0A207.8 207.8 0 0 0 39 16.6 221.5 221.5 0 0 0 1 165 211.2 211.2 0 0 0 66 198a161 161 0 0 0 13.8-22.8c-7.6-2.9-15-6.5-21.8-10.6l5.3-4.3a149.3 149.3 0 0 0 129.6 0c1.7 1.5 3.5 3 5.3 4.3a136 136 0 0 1-21.9 10.6c4 8 8.7 15.7 13.9 22.9a210.7 210.7 0 0 0 64.8-33.2c5.3-56.3-9-105.1-38-148.4ZM85.5 135.1c-12.7 0-23-11.8-23-26.2 0-14.4 10.1-26.2 23-26.2 12.8 0 23.2 11.8 23 26.2 0 14.4-10.2 26.2-23 26.2Zm85 0c-12.6 0-23-11.8-23-26.2 0-14.4 10.2-26.2 23-26.2 12.9 0 23.3 11.8 23 26.2 0 14.4-10.1 26.2-23 26.2Z"/></svg>
43+
</a>
4044
</div>
4145
</header>
4246
</div>
@@ -67,7 +71,7 @@ class="text-lg font-bold hover:text-gray-400">
6771
</div>
6872
</div>
6973

70-
<div class="mt-24 flex gap-4 mb-24">
74+
<div class="mt-24 flex gap-0 md:gap-4 mb-24">
7175
<div class="relative flex-1">
7276
<div class="p-0 sticky top-0 h-screen" id="demo">
7377
<preview>
@@ -76,15 +80,15 @@ class="text-lg font-bold hover:text-gray-400">
7680
</div>
7781
</div>
7882

79-
<div class="w-1/2 md:w-1/3 xl:w-1/4 flex flex-col gap-4 md:gap-10 lg:gap-16">
83+
<div class="w-40 md:w-1/3 xl:w-1/4 flex flex-col gap-4 md:gap-10 lg:gap-16">
8084
@foreach($buttonGroups as $group => $data)
81-
<div class="border p-10 rounded-xl bg-white hover:shadow-xl transition" id="{{ $group }}">
82-
<h3 class="text-xl leading-none font-bold text-blue-800 tracking-tight mb-4">
85+
<div class="border p-4 md:p-6 lg:p-10 md:rounded-xl bg-white hover:shadow-xl transition" id="{{ $group }}">
86+
<h3 class="md:text-xl leading-none font-bold text-blue-800 tracking-tight mb-4">
8387
{{ $data['title'] ?? \Illuminate\Support\Str::studly($group) }}
8488
</h3>
8589

8690
@if(isset($data['description']))
87-
<p class="text-gray-500 text-sm font-medium mb-6">
91+
<p class="hidden md:block text-gray-500 text-sm font-medium mb-6">
8892
{{ $data['description'] }}
8993
</p>
9094
@endif
@@ -101,12 +105,12 @@ class="border bg-blue-100 hover:bg-blue-200 font-bold text-xs text-blue-800 px-3
101105
<div>
102106
@foreach($data['events'] as $type => $buttons)
103107
@if($type !== 'common')
104-
<h4 class="text-xl leading-none font-extrabold text-blue-600 tracking-tight mt-6 mb-4">
108+
<h4 class="md:text-xl leading-none font-extrabold text-blue-600 tracking-tight mt-6 mb-4">
105109
{{ \Illuminate\Support\Str::studly($type) }}
106110
</h4>
107111
@endif
108112

109-
<div class="flex flex-wrap gap-2 md:gap-3 lg:gap-4 text-sm">
113+
<div class="overflow-hidden flex flex-wrap gap-2 md:gap-3 lg:gap-4 text-sm">
110114
@foreach($buttons as $button)
111115
<button-action
112116
action="{{ $group.($type === 'common' ? '' : '_' . $type).':'.\Illuminate\Support\Str::snake($button) }}">
@@ -141,7 +145,7 @@ class="border bg-blue-100 hover:bg-blue-200 font-bold text-xs text-blue-800 px-3
141145

142146

143147
<div class="bg-gray-900 py-20 mt-24">
144-
<div class="max-w-screen-lg xl:max-w-screen-xl mx-auto">
148+
<div class="max-w-screen-lg xl:max-w-screen-xl mx-auto px-10">
145149
<h3 class="text-3xl lg:text-5xl leading-none font-extrabold text-yellow-200 tracking-tight mb-8">
146150
How to run?
147151
</h3>
@@ -151,7 +155,7 @@ class="border bg-blue-100 hover:bg-blue-200 font-bold text-xs text-blue-800 px-3
151155
</p>
152156

153157
<div class="mb-10 flex">
154-
<code class="select-all cursor-pointer w-auto bg-gray-50 text-gray-800 font-semibold hover:text-gray-700 font-mono px-3 py-2 border border-gray-200 hover:border-blue-600 rounded-full transition-colors duration-200">
158+
<code class="overflow-hidden select-all cursor-pointer w-auto bg-gray-50 text-gray-800 font-semibold hover:text-gray-700 font-mono px-3 py-2 border border-gray-200 hover:border-blue-600 rounded-full transition-colors duration-200 text-nowrap break-keep">
155159
docker run -p 8000:8000 -p 1025:1025 -p 9912:9912 -p 9913:9913 ghcr.io/buggregator/server:latest
156160
</code>
157161
</div>
@@ -165,13 +169,12 @@ class="border bg-gray-100 hover:bg-gary-200 font-bold text-gary-800 px-5 py-2 ro
165169

166170
<hr>
167171

168-
<div class="max-w-screen-lg xl:max-w-screen-xl mx-auto py-10 my-12">
172+
<div class="max-w-screen-lg xl:max-w-screen-xl mx-auto py-10 my-12 px-10">
169173
<div>
170174
<h3 class="text-3xl lg:text-5xl leading-none font-extrabold text-blue-800 tracking-tight mb-8">
171175
Features
172176
</h3>
173177

174-
175178
<div class="border p-8 rounded-lg flex flex-col gap-4 hover:shadow-xl transition mb-6 bg-[url('/images/bg.jpg')]">
176179
<div>
177180
<a href="https://docs.buggregator.dev/config/sso.html" target="_blank"
@@ -267,7 +270,7 @@ class="border bg-green-100 hover:bg-green-200 font-bold text-green-800 px-5 py-2
267270

268271

269272
<div class="bg-white py-12">
270-
<div class="max-w-screen-lg xl:max-w-screen-xl mx-auto my-12">
273+
<div class="max-w-screen-lg xl:max-w-screen-xl mx-auto my-12 px-10">
271274
<h3 class="text-3xl lg:text-5xl leading-none font-extrabold text-blue-800 tracking-tight mb-8">
272275
Buggregator Trap
273276
</h3>
@@ -279,7 +282,7 @@ class="border bg-green-100 hover:bg-green-200 font-bold text-green-800 px-5 py-2
279282
</p>
280283

281284
<div class="mb-6 flex">
282-
<code class="select-all cursor-pointer w-auto bg-gray-50 text-gray-800 font-semibold hover:text-gray-700 font-mono px-3 py-2 border border-gray-200 hover:border-blue-600 rounded-full transition-colors duration-200">
285+
<code class="overflow-hidden select-all cursor-pointer w-auto bg-gray-50 text-gray-800 font-semibold hover:text-gray-700 font-mono px-3 py-2 border border-gray-200 hover:border-blue-600 rounded-full transition-colors duration-200 text-nowrap break-keep">
283286
composer require --dev buggregator/trap -W
284287
</code>
285288
</div>
@@ -362,7 +365,7 @@ class="w-14"
362365
},
363366
template: `
364367
<div class="flex flex-col items-center h-full">
365-
<div :class="deviceClass" class=" shadow-xl">
368+
<div :class="deviceClass" class="shadow-xl md:rounded-xl">
366369
<div>
367370
<slot></slot>
368371
</div>

0 commit comments

Comments
 (0)