new design with nice layout
This commit is contained in:
+2
-1
@@ -12,7 +12,8 @@
|
|||||||
"php": "^8.3",
|
"php": "^8.3",
|
||||||
"laravel/framework": "^13.17",
|
"laravel/framework": "^13.17",
|
||||||
"laravel/tinker": "^3.0",
|
"laravel/tinker": "^3.0",
|
||||||
"livewire/livewire": "^4.0"
|
"livewire/livewire": "^4.0",
|
||||||
|
"predis/predis": "^3.7"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"fakerphp/faker": "^1.23",
|
"fakerphp/faker": "^1.23",
|
||||||
|
|||||||
Generated
+64
-1
@@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "f42bbf1a2e08a8d971fc574b37881cc5",
|
"content-hash": "2d8e2f8fb2f4f4a851d4a2477b134d92",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "brick/math",
|
"name": "brick/math",
|
||||||
@@ -2706,6 +2706,69 @@
|
|||||||
],
|
],
|
||||||
"time": "2026-08-24T00:54:40+00:00"
|
"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",
|
"name": "psr/clock",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="ABSDEV">
|
||||||
|
<defs>
|
||||||
|
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1"><stop stop-color="#12384A"/><stop offset="1" stop-color="#07131F"/></linearGradient>
|
||||||
|
<linearGradient id="accent" x1="0" y1="0" x2="1" y2="1"><stop stop-color="#DAFF8F"/><stop offset="1" stop-color="#9DDF66"/></linearGradient>
|
||||||
|
</defs>
|
||||||
|
<rect x="1" y="1" width="62" height="62" rx="16" fill="url(#bg)" stroke="#3F6974" stroke-width="1.5"/>
|
||||||
|
<path d="M13 44 28 16h7l13 28h-8l-3-7H24l-4 7zm14-13h8l-4-9z" fill="#F7FAFC"/>
|
||||||
|
<path d="M46 44h7v-7h-7z" fill="url(#accent)"/>
|
||||||
|
<path d="M12 51h40" stroke="#C7F36B" stroke-opacity=".5" stroke-width="1.5" stroke-linecap="round"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 727 B |
@@ -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-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); }
|
.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}}
|
@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;} }
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="robots" content="noindex,nofollow"><title>{{ $title ?? 'Dashboard' }} — ABSDEV Admin</title>@vite(['resources/css/app.css','resources/js/app.js']) @livewireStyles</head><body class="min-h-screen bg-[#f3f6f8] font-sans text-[#142e3c]"><div class="min-h-screen lg:flex"><aside class="w-full shrink-0 bg-[#09212e] p-7 text-white lg:min-h-screen lg:w-64"><a href="{{ route('admin.dashboard') }}" class="text-2xl font-bold tracking-widest">ABSDEV<span class="text-acid">.</span></a><div class="mt-3 text-xs font-semibold uppercase tracking-[.2em] text-slate-400">Control centre</div><nav class="mt-12 flex flex-wrap gap-2 lg:flex-col" aria-label="Admin menu"><a href="{{ route('admin.dashboard') }}" class="admin-nav {{ request()->routeIs('admin.dashboard') ? 'bg-white/15 text-acid' : '' }}">◫ Overview</a><a href="{{ route('admin.sections') }}" class="admin-nav {{ request()->routeIs('admin.sections') ? 'bg-white/15 text-acid' : '' }}">▤ Page sections</a><a href="{{ route('admin.enquiries') }}" class="admin-nav {{ request()->routeIs('admin.enquiries') ? 'bg-white/15 text-acid' : '' }}">✉ Enquiries</a><a href="{{ route('admin.settings') }}" class="admin-nav {{ request()->routeIs('admin.settings') ? 'bg-white/15 text-acid' : '' }}">⚙ Site settings</a><a href="{{ route('home') }}" target="_blank" rel="noopener" class="admin-nav">↗ View website</a></nav><div class="mt-12 border-t border-white/10 pt-6 text-sm text-slate-400"><div class="truncate">{{ auth()->user()->email }}</div><form method="POST" action="{{ route('logout') }}" class="mt-4">@csrf<button type="submit" class="text-acid hover:underline">Sign out ↗</button></form></div></aside><div class="min-w-0 flex-1"><header class="border-b border-slate-200 bg-white px-6 py-6 md:px-10"><div class="mx-auto flex max-w-6xl items-center justify-between gap-4"><div><span class="text-xs font-semibold uppercase tracking-widest text-teal-600">Website administration</span><h1 class="mt-1 text-2xl font-bold tracking-tight">{{ $title ?? 'Dashboard' }}</h1></div><div class="hidden rounded-full bg-emerald-50 px-4 py-2 text-xs font-semibold text-emerald-700 sm:block">● Admin access</div></div></header><main class="mx-auto max-w-6xl space-y-7 p-6 md:p-10">{{ $slot }}</main></div></div>@livewireScripts</body></html>
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="robots" content="noindex,nofollow"><title>{{ $title ?? 'Dashboard' }} — ABSDEV Admin</title>@vite(['resources/css/app.css','resources/js/app.js']) @livewireStyles<link rel="icon" type="image/svg+xml" href="/favicon.svg"></head><body class="min-h-screen bg-[#f3f6f8] font-sans text-[#142e3c]"><div class="min-h-screen lg:flex"><aside class="w-full shrink-0 bg-[#09212e] p-7 text-white lg:min-h-screen lg:w-64"><a href="{{ route('admin.dashboard') }}" class="text-2xl font-bold tracking-widest">ABSDEV<span class="text-acid">.</span></a><div class="mt-3 text-xs font-semibold uppercase tracking-[.2em] text-slate-400">Control centre</div><nav class="mt-12 flex flex-wrap gap-2 lg:flex-col" aria-label="Admin menu"><a href="{{ route('admin.dashboard') }}" class="admin-nav {{ request()->routeIs('admin.dashboard') ? 'bg-white/15 text-acid' : '' }}">◫ Overview</a><a href="{{ route('admin.sections') }}" class="admin-nav {{ request()->routeIs('admin.sections') ? 'bg-white/15 text-acid' : '' }}">▤ Page sections</a><a href="{{ route('admin.enquiries') }}" class="admin-nav {{ request()->routeIs('admin.enquiries') ? 'bg-white/15 text-acid' : '' }}">✉ Enquiries</a><a href="{{ route('admin.settings') }}" class="admin-nav {{ request()->routeIs('admin.settings') ? 'bg-white/15 text-acid' : '' }}">⚙ Site settings</a><a href="{{ route('home') }}" target="_blank" rel="noopener" class="admin-nav">↗ View website</a></nav><div class="mt-12 border-t border-white/10 pt-6 text-sm text-slate-400"><div class="truncate">{{ auth()->user()->email }}</div><form method="POST" action="{{ route('logout') }}" class="mt-4">@csrf<button type="submit" class="text-acid hover:underline">Sign out ↗</button></form></div></aside><div class="min-w-0 flex-1"><header class="border-b border-slate-200 bg-white px-6 py-6 md:px-10"><div class="mx-auto flex max-w-6xl items-center justify-between gap-4"><div><span class="text-xs font-semibold uppercase tracking-widest text-teal-600">Website administration</span><h1 class="mt-1 text-2xl font-bold tracking-tight">{{ $title ?? 'Dashboard' }}</h1></div><div class="hidden rounded-full bg-emerald-50 px-4 py-2 text-xs font-semibold text-emerald-700 sm:block">● Admin access</div></div></header><main class="mx-auto max-w-6xl space-y-7 p-6 md:p-10">{{ $slot }}</main></div></div>@livewireScripts</body></html>
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="theme-color" content="#07121d"><meta name="description" content="ABSDEV — independent software development, digital experiences and technology consultancy."><title>{{ $pageTitle ?? 'ABSDEV — Independent digital studio' }}</title>
|
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" type="image/svg+xml" href="/favicon.svg"><link rel="shortcut icon" href="/favicon.svg"><meta name="theme-color" content="#07121d"><meta name="description" content="ABSDEV — independent software development, digital experiences and technology consultancy."><title>{{ $pageTitle ?? 'ABSDEV — Independent digital studio' }}</title>
|
||||||
@vite(['resources/css/app.css','resources/js/app.js']) @livewireStyles</head>
|
@vite(['resources/css/app.css','resources/js/app.js']) @livewireStyles</head>
|
||||||
<body class="bg-ink text-white antialiased">{{ $slot ?? '' }} @yield('content') @livewireScripts</body></html>
|
<body class="bg-ink text-white antialiased">{{ $slot ?? '' }} @yield('content') @livewireScripts</body></html>
|
||||||
@@ -1,9 +1,24 @@
|
|||||||
<header class="absolute z-30 left-0 right-0 top-0">
|
<header class="site-header sticky top-0 z-50 border-b border-white/10 bg-[#07131f]/95 backdrop-blur-xl">
|
||||||
<div class="container-wide flex h-24 items-center justify-between">
|
<div class="container-wide flex min-h-[80px] items-center justify-between gap-6">
|
||||||
<a href="/" class="inline-flex items-center gap-3" aria-label="ABSDEV homepage"><span class="brand-mark">A<span class="text-acid">.</span></span><span class="font-bold tracking-[.2em] text-lg">{{ $settings['site_name'] ?? 'ABSDEV' }}</span></a>
|
<a href="{{ route('home') }}" class="flex shrink-0 items-center gap-3" aria-label="ABSDEV homepage">
|
||||||
<nav class="hidden md:flex items-center gap-9 text-[13px] font-semibold text-slate-300" aria-label="Main navigation"><a class="nav-link" href="{{ route('services') }}">Services</a><a class="nav-link" href="{{ route('expertise') }}">Expertise</a><a class="nav-link" href="{{ route('approach') }}">Approach</a><a class="nav-link" href="{{ route('home') }}#about">About</a></nav>
|
<span class="brand-emblem" aria-hidden="true"><span>A</span><span class="text-acid">.</span></span>
|
||||||
<a href="{{ route('home') }}#contact" class="button-outline hidden sm:inline-flex">Let's talk <span aria-hidden="true">↗</span></a>
|
<span class="text-[17px] font-bold tracking-[.23em] text-white">{{ $settings['site_name'] ?? 'ABSDEV' }}</span>
|
||||||
<button type="button" class="md:hidden px-2 py-2 text-white" aria-label="Open menu" onclick="document.getElementById('mobile-nav').classList.toggle('hidden')">☰</button>
|
</a>
|
||||||
|
<nav class="hidden items-center gap-8 lg:flex" aria-label="Main navigation">
|
||||||
|
<a class="site-nav-link" href="{{ route('home') }}">Home</a>
|
||||||
|
<a class="site-nav-link" href="{{ route('services') }}">Services</a>
|
||||||
|
<a class="site-nav-link" href="{{ route('expertise') }}">Expertise</a>
|
||||||
|
<a class="site-nav-link" href="{{ route('approach') }}">Approach</a>
|
||||||
|
<a class="site-nav-link" href="{{ route('home') }}#about">About</a>
|
||||||
|
</nav>
|
||||||
|
<div class="flex shrink-0 items-center gap-3">
|
||||||
|
<a href="{{ route('home') }}#contact" class="site-header-cta hidden sm:inline-flex">Let's talk <span aria-hidden="true">↗</span></a>
|
||||||
|
<button type="button" class="site-menu-button lg:hidden" aria-label="Toggle navigation" aria-controls="mobile-nav" aria-expanded="false" onclick="const n=document.getElementById('mobile-nav'); const opened=n.classList.toggle('hidden')===false; this.setAttribute('aria-expanded',String(opened));">☰</button>
|
||||||
</div>
|
</div>
|
||||||
<nav id="mobile-nav" class="hidden bg-ink/95 px-8 pb-7 md:hidden" aria-label="Mobile navigation"><div class="flex flex-col gap-5 text-sm"><a href="{{ route('services') }}">Services</a><a href="{{ route('expertise') }}">Expertise</a><a href="{{ route('approach') }}">Approach</a><a href="{{ route('home') }}#about">About</a><a href="{{ route('home') }}#contact">Contact</a></div></nav>
|
</div>
|
||||||
|
<nav id="mobile-nav" class="hidden border-t border-white/10 bg-[#0b202d] px-6 py-6 lg:hidden" aria-label="Mobile navigation">
|
||||||
|
<div class="mx-auto flex max-w-[1320px] flex-col gap-5 text-sm font-semibold text-slate-200">
|
||||||
|
<a href="{{ route('home') }}">Home</a><a href="{{ route('services') }}">Services</a><a href="{{ route('expertise') }}">Expertise</a><a href="{{ route('approach') }}">Approach</a><a href="{{ route('home') }}#about">About</a><a href="{{ route('home') }}#contact">Contact</a>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
@@ -2,6 +2,18 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
@php
|
@php
|
||||||
$hero=$sections->get('hero'); $services=$sections->get('services'); $approach=$sections->get('approach'); $work=$sections->get('work'); $cta=$sections->get('cta');
|
$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
|
@endphp
|
||||||
@include('partials.navigation')
|
@include('partials.navigation')
|
||||||
<main>
|
<main>
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
namespace Tests\Feature;
|
||||||
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||||
|
use Tests\TestCase;
|
||||||
|
class AbsdevBrandAndHomeTest extends TestCase {
|
||||||
|
use RefreshDatabase;
|
||||||
|
public function test_homepage_has_a_complete_hero_without_seed_data(): void {
|
||||||
|
$this->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<span',false);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user