From 6c433f657755a8119f04a56f8c8b8b47878857c9 Mon Sep 17 00:00:00 2001 From: Mark Gregory Date: Thu, 19 Nov 2026 18:12:33 +0000 Subject: [PATCH] new design with nice layout --- composer.json | 3 +- composer.lock | 65 ++++++++++++++++++- public/favicon.svg | 10 +++ resources/css/app.css | 17 +++++ resources/views/layouts/admin.blade.php | 2 +- resources/views/layouts/site.blade.php | 2 +- resources/views/partials/navigation.blade.php | 29 +++++++-- resources/views/welcome.blade.php | 12 ++++ tests/Feature/AbsdevBrandAndHomeTest.php | 19 ++++++ 9 files changed, 148 insertions(+), 11 deletions(-) create mode 100644 public/favicon.svg create mode 100644 tests/Feature/AbsdevBrandAndHomeTest.php diff --git a/composer.json b/composer.json index 6d662f7..c63acc5 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,8 @@ "php": "^8.3", "laravel/framework": "^13.17", "laravel/tinker": "^3.0", - "livewire/livewire": "^4.0" + "livewire/livewire": "^4.0", + "predis/predis": "^3.7" }, "require-dev": { "fakerphp/faker": "^1.23", diff --git a/composer.lock b/composer.lock index 91d1801..6359379 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "f42bbf1a2e08a8d971fc574b37881cc5", + "content-hash": "2d8e2f8fb2f4f4a851d4a2477b134d92", "packages": [ { "name": "brick/math", @@ -2706,6 +2706,69 @@ ], "time": "2026-08-24T00:54:40+00:00" }, + { + "name": "predis/predis", + "version": "v3.7.1", + "source": { + "type": "git", + "url": "https://github.com/predis/predis.git", + "reference": "2496e6d91ba4e137b47a6b802dc7e088ebf31df4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/predis/predis/zipball/2496e6d91ba4e137b47a6b802dc7e088ebf31df4", + "reference": "2496e6d91ba4e137b47a6b802dc7e088ebf31df4", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0", + "psr/http-message": "^1.0|^2.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.3", + "phpstan/phpstan": "^1.9", + "phpunit/phpcov": "^6.0 || ^8.0", + "phpunit/phpunit": "^8.0 || ~9.4.4" + }, + "suggest": { + "ext-relay": "Faster connection with in-memory caching (>=0.6.2)" + }, + "type": "library", + "autoload": { + "psr-4": { + "Predis\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Till Krüss", + "homepage": "https://till.im", + "role": "Maintainer" + } + ], + "description": "A flexible and feature-complete Redis/Valkey client for PHP.", + "homepage": "http://github.com/predis/predis", + "keywords": [ + "nosql", + "predis", + "redis" + ], + "support": { + "issues": "https://github.com/predis/predis/issues", + "source": "https://github.com/predis/predis/tree/v3.7.1" + }, + "funding": [ + { + "url": "https://github.com/sponsors/tillkruss", + "type": "github" + } + ], + "time": "2026-11-03T17:55:20+00:00" + }, { "name": "psr/clock", "version": "1.0.0", diff --git a/public/favicon.svg b/public/favicon.svg new file mode 100644 index 0000000..7ed5753 --- /dev/null +++ b/public/favicon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/resources/css/app.css b/resources/css/app.css index 755e622..805e90b 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -47,3 +47,20 @@ body { background:#07131f; } .feature-band { background:radial-gradient(ellipse at 20% 48%,rgba(26,139,153,.24),transparent 60%),linear-gradient(130deg,#0a2634,#081521); } .feature-glass { background:linear-gradient(145deg,rgba(255,255,255,.095),rgba(255,255,255,.018));box-shadow:0 30px 80px rgba(0,0,0,.18); } @media(max-width:640px){.page-floating-card{right:0;top:0}.page-title{font-size:clamp(2.9rem,12vw,4.3rem)}.page-art-center{transform:none}} + +/* ABSDEV visual refresh: navigation and brand system. */ +.site-header { box-shadow: 0 10px 40px rgba(0,0,0,.16); } +.brand-emblem { display:inline-flex; align-items:center; justify-content:center; width:43px; height:43px; border-radius:13px; background:linear-gradient(135deg,#1a5060,#0d2637); border:1px solid rgba(199,243,107,.28); color:#fff; font-size:24px; font-weight:800; letter-spacing:-.08em; box-shadow:inset 0 1px rgba(255,255,255,.12),0 10px 22px rgba(0,0,0,.2); } +.site-nav-link { color:#cbd5e1; font-size:13px; font-weight:650; transition:color .2s ease; } +.site-nav-link:hover,.site-nav-link:focus-visible {color:#c7f36b;} +.site-header-cta { display:inline-flex; align-items:center; justify-content:center; gap:20px; min-height:43px; padding:0 23px; background:#c7f36b; border-radius:999px; color:#07131f; font-size:13px; font-weight:800; transition:background .2s,transform .2s; } +@media (max-width:639px) { .site-header-cta {display:none;} } +.site-header-cta:hover { background:#e2ffab; transform:translateY(-1px); } +.site-menu-button { padding:9px 12px; border:1px solid rgba(255,255,255,.18); border-radius:10px; color:#fff; } +main > section:first-child.hero-glow {padding-top:90px;} +.hero-glow:before { content:""; pointer-events:none; position:absolute; width:400px; height:400px; right:-120px; top:10%; border-radius:50%; background:rgba(199,243,107,.055); filter:blur(60px); } +.section-services .service-card {border-radius:24px;} +.section-services .service-card:hover {transform:translateY(-6px);} +#about {position:relative; overflow:hidden;} +#about:before {content:""; pointer-events:none; position:absolute; width:420px; height:420px; left:-230px; top:0; border-radius:50%; background:rgba(25,184,196,.09); filter:blur(80px);} +@media (max-width:640px) { main > section:first-child.hero-glow {padding-top:72px;} .brand-emblem {width:39px;height:39px;} } diff --git a/resources/views/layouts/admin.blade.php b/resources/views/layouts/admin.blade.php index a8f0e81..cdca676 100644 --- a/resources/views/layouts/admin.blade.php +++ b/resources/views/layouts/admin.blade.php @@ -1 +1 @@ -{{ $title ?? 'Dashboard' }} — ABSDEV Admin@vite(['resources/css/app.css','resources/js/app.js']) @livewireStyles
Website administration

{{ $title ?? 'Dashboard' }}

{{ $slot }}
@livewireScripts \ No newline at end of file +{{ $title ?? 'Dashboard' }} — ABSDEV Admin@vite(['resources/css/app.css','resources/js/app.js']) @livewireStyles
Website administration

{{ $title ?? 'Dashboard' }}

{{ $slot }}
@livewireScripts \ No newline at end of file diff --git a/resources/views/layouts/site.blade.php b/resources/views/layouts/site.blade.php index 9519975..d421025 100644 --- a/resources/views/layouts/site.blade.php +++ b/resources/views/layouts/site.blade.php @@ -1,4 +1,4 @@ -{{ $pageTitle ?? 'ABSDEV — Independent digital studio' }} +{{ $pageTitle ?? 'ABSDEV — Independent digital studio' }} @vite(['resources/css/app.css','resources/js/app.js']) @livewireStyles {{ $slot ?? '' }} @yield('content') @livewireScripts \ No newline at end of file diff --git a/resources/views/partials/navigation.blade.php b/resources/views/partials/navigation.blade.php index 1fe7e32..d529d66 100644 --- a/resources/views/partials/navigation.blade.php +++ b/resources/views/partials/navigation.blade.php @@ -1,9 +1,24 @@ -
-
- A.{{ $settings['site_name'] ?? 'ABSDEV' }} - - - + diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index be25339..e5182f6 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -2,6 +2,18 @@ @section('content') @php $hero=$sections->get('hero'); $services=$sections->get('services'); $approach=$sections->get('approach'); $work=$sections->get('work'); $cta=$sections->get('cta'); +$designDefaults = [ + 'hero' => ['eyebrow'=>'INDEPENDENT DIGITAL STUDIO','title'=>'Digital experiences built to move your business forward.','body'=>'Beautifully crafted websites, powerful Laravel platforms, and thoughtful macOS and iOS software. Designed with purpose. Engineered to last.','button_label'=>'Start a project','button_url'=>'#contact'], + 'services' => ['eyebrow'=>'WHAT WE DO','title'=>'Technology with a human touch.','body'=>'From ambitious ideas to dependable products: strategy, design and engineering working together.','button_label'=>'Explore services','button_url'=>'/services'], + 'approach' => ['eyebrow'=>'OUR PROCESS','title'=>'Clarity from idea to launch.','body'=>'A focused, collaborative process that brings together design, development, rigorous testing and reliable delivery.','button_label'=>'Our approach','button_url'=>'/approach'], + 'work' => ['eyebrow'=>'OUR EXPERTISE','title'=>'Built for complexity. Designed for people.','body'=>'Practical engineering and thoughtful digital products with tangible business impact.','button_label'=>'Expertise','button_url'=>'/expertise'], + 'cta' => ['eyebrow'=>'LET’S MAKE IT HAPPEN','title'=>'Have an idea worth building?','body'=>'Tell us what you need. We will turn it into a clear technical plan.','button_label'=>'Let’s talk','button_url'=>'#contact'], +]; +foreach ($designDefaults as $key=>$data) { + if (! $sections->has($key) && ! \App\Models\SiteSection::where('key', $key)->exists()) { + ${$key} = (object) $data; + } +} @endphp @include('partials.navigation')
diff --git a/tests/Feature/AbsdevBrandAndHomeTest.php b/tests/Feature/AbsdevBrandAndHomeTest.php new file mode 100644 index 0000000..4057658 --- /dev/null +++ b/tests/Feature/AbsdevBrandAndHomeTest.php @@ -0,0 +1,19 @@ +get('/')->assertOk()->assertSee('Ideas')->assertSee('Technology with a human touch.'); + } + public function test_homepage_links_to_the_new_pages_and_favicon(): void { + $this->get('/')->assertOk()->assertSee('/favicon.svg')->assertSee('href="'.route('services').'"', false) + ->assertSee('href="'.route('expertise').'"', false)->assertSee('href="'.route('approach').'"', false); + } + public function test_hidden_cms_section_stays_hidden(): void { + $this->seed(\Database\Seeders\SiteContentSeeder::class); + \App\Models\SiteSection::where('key','hero')->update(['is_visible'=>false]); + $this->get('/')->assertOk()->assertDontSee('Ideas