new design

This commit is contained in:
Mark Gregory
2026-11-19 17:55:57 +00:00
parent 3aaba4c827
commit 61be51659a
36 changed files with 2932 additions and 529 deletions
+1 -22
View File
@@ -1,25 +1,4 @@
<?php
namespace Database\Seeders;
use App\Models\User;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
use WithoutModelEvents;
/**
* Seed the application's database.
*/
public function run(): void
{
// User::factory(10)->create();
User::factory()->create([
'name' => 'Test User',
'email' => '[email protected]',
]);
}
}
class DatabaseSeeder extends Seeder { public function run(): void { $this->call(SiteContentSeeder::class); } }
+22
View File
@@ -0,0 +1,22 @@
<?php
namespace Database\Seeders;
use App\Models\SiteSection;
use App\Models\SiteSetting;
use Illuminate\Database\Seeder;
class SiteContentSeeder extends Seeder {
public function run(): void {
$sections = [
['hero','Independent by design. Exceptional by default.','Digital experiences built to move your business forward.','We craft considered software, polished websites, and practical digital products for ambitious businesses. From the first sketch to the final deployment, every detail matters.','Start a project','#contact'],
['services','WHAT WE DO','Technology with a human touch.','Strategy, design and engineering working together. Modern tools, clear thinking and software that genuinely earns its place.','Explore our services','#services'],
['approach','HOW WE WORK','Small team energy. Big picture thinking.','Direct collaboration, honest communication and a relentless focus on outcomes. We keep projects agile, transparent and built for the long term.','Our process','#process'],
['work','SELECTED EXPERTISE','From complex challenges to elegant solutions.','We turn real-world problems into streamlined systems, thoughtful products and reliable digital infrastructure.','Talk about your idea','#contact'],
['cta','LET’S BUILD SOMETHING','Your next chapter starts with a conversation.','Tell us what you are building. We will help map out the smartest way forward.','Get in touch','#contact'],
];
foreach ($sections as $i => [$key,$eyebrow,$title,$body,$button,$url]) {
SiteSection::firstOrCreate(['key'=>$key], ['eyebrow'=>$eyebrow,'title'=>$title,'body'=>$body,'button_label'=>$button,'button_url'=>$url,'sort_order'=>$i]);
}
foreach (['site_name'=>'ABSDEV','email'=>'[email protected]','footer_tagline'=>'Independent software. Thoughtfully engineered.','location'=>'United Kingdom'] as $key=>$value) {
SiteSetting::firstOrCreate(['key'=>$key], ['value'=>$value]);
}
}
}