Skip to content
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

#295 - photoreel & updates #335

Merged
merged 6 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
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
11 changes: 6 additions & 5 deletions app/Filament/Resources/ReferenceResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@ public static function form(Form $form): Form
->label("Imię i nazwisko autora")
->required()
->maxLength(255),
Forms\Components\Radio::make("sex")
->label("Płeć")
->options([
"male" => "Mężczyzna",
"female" => "Kobieta",
kamilpiech97 marked this conversation as resolved.
Show resolved Hide resolved
]),
Forms\Components\TextInput::make("company")
->label("Firma")
->required()
->maxLength(255),
Forms\Components\TextInput::make("associate_link")
->label("Link do LinkedIn")
->url()
->maxLength(255),
Forms\Components\Checkbox::make("published")
->label("Opublikowane"),
]),
Expand All @@ -57,7 +59,6 @@ public static function form(Form $form): Form
->directory(Reference::PHOTOS_DIRECTORY)
->imageEditor()
->rules(["mimes:jpeg,png,webp"])
->required()
->multiple(false)
->maxSize(1000),
]),
Expand Down
4 changes: 2 additions & 2 deletions app/Models/Reference.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @property string $photo
* @property string $company
* @property bool $published
* @property string $associate_link
* @property string $sex
*/
class Reference extends Model
{
Expand All @@ -32,7 +32,7 @@ class Reference extends Model
"company",
"description",
"published",
"associate_link",
"sex",
];
protected $casts = [
"description" => "array",
Expand Down
2 changes: 1 addition & 1 deletion database/factories/ReferenceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function definition(): array
"photo" => sprintf("%s/%s", "factory", "reference.jpg"),
"published" => $this->faker->boolean,
"company" => $this->faker->company,
"associate_link" => $this->faker->url,
"sex" => $this->faker->randomElement(["male", "female"]),
];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

declare(strict_types=1);

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class() extends Migration {
public function up(): void
{
Schema::table("references", function (Blueprint $table): void {
$table->dropColumn("associate_link");
});
}

public function down(): void
{
Schema::table("references", function (Blueprint $table): void {
$table->string("associate_link")->nullable();
});
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

declare(strict_types=1);

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class() extends Migration {
public function up(): void
{
Schema::table("references", function (Blueprint $table): void {
$table->string("sex");
});
}

public function down(): void
{
Schema::table("references", function (Blueprint $table): void {
$table->dropColumn("sex");
});
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

declare(strict_types=1);

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class() extends Migration {
public function up(): void
{
Schema::table("references", function (Blueprint $table): void {
$table->string("photo")->nullable()->change();
});
}

public function down(): void
{
Schema::table("references", function (Blueprint $table): void {
$table->string("photo")->nullable(false)->change();
});
}
};
6 changes: 4 additions & 2 deletions lang/en/alt.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
declare(strict_types=1);

return [
"prev" => "previous",
"next" => "next",
"shadow" => "blue shadow",
"wave" => "blue line art waves",
"reference" => "reference from",
Expand All @@ -17,13 +19,13 @@
"home_project" => "Medical website page displaying search bar, product catalog, and a shopping cart.",
"projects" => "People collaborating in an office, with one person pointing at a computer screen displaying graphics. Other team members are interacting in the background.",
"lmt" => "Audience viewing a presentation at a Legnica Tech Meetup.",
"interns" => "Blumilk interns standing next to supervisor and blumilk banner.",
"interns" => "Blumilk interns standing next to supervisor and Blumilk banner.",
"soda" => "A woman sitting in front of a computer screen with the word SoDa on it.",
"archery" => "A group of people standing outdoors, some holding archery bows up, under a cloudy sky.",
"czech" => "Group of people sitting on steps in front of an ornate building with greenery and statues.",
"fireplace" => "Group of people sitting around a campfire at night, with a gazebo in the background.",
"energylandia" => "Group of people standing in front of the Abyssus ride entrance at Energylandia, Zator.",
"laravel" => "Blumilk team stadnding in front of presentation on Laravel Poland Meetup",
"laravel" => "Blumilk team standing in front of presentation on Laravel Poland Meetup",
"beer" => "Group of people seated at tables in a dimly lit bar with a TV on the wall.",
"lasertag" => " A group of people standing next to each other holding laser guns.",
"sea" => "Group of people on rocky shore by the sea, under clear blue sky.",
Expand Down
2 changes: 2 additions & 0 deletions lang/pl/alt.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
declare(strict_types=1);

return [
"prev" => "poprzedni",
"next" => "następny",
"shadow" => "niebieski cień",
"wave" => "niebieskie fale w stylu line art",
"reference" => "referencja autorstwa",
Expand Down
Binary file modified public/images/photos/projects.webp
Binary file not shown.
34 changes: 17 additions & 17 deletions public/images/projects/gtb/pl/sitemap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
275 changes: 84 additions & 191 deletions public/images/projects/vita/en/sitemap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading