Add premium logo and professional theme for high-end clients
- Create custom SVG logo with professional branding - Implement premium color scheme with blue and gold accents - Add custom CSS with professional styling for cards, tables, buttons - Update logo template to use new logo.svg file - Create custom favicon for complete branding - Redesign homepage with premium content sections - Update resources page with membership tiers and premium pricing - Enhance contact page with testimonials and detailed information - Target audience: high-paying clients ($100+/hour) - Professional yet approachable design language 💘 Generated with Crush Assisted-by: GLM-4.7 via Crush <crush@charm.land>
This commit is contained in:
56
config/www/user/themes/quark/quark.php
Normal file
56
config/www/user/themes/quark/quark.php
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
namespace Grav\Theme;
|
||||
|
||||
use Grav\Common\Grav;
|
||||
use Grav\Common\Theme;
|
||||
|
||||
class Quark extends Theme
|
||||
{
|
||||
public static function getSubscribedEvents()
|
||||
{
|
||||
return [
|
||||
'onThemeInitialized' => ['onThemeInitialized', 0],
|
||||
'onTwigLoader' => ['onTwigLoader', 0],
|
||||
'onTwigInitialized' => ['onTwigInitialized', 0],
|
||||
];
|
||||
}
|
||||
|
||||
public function onThemeInitialized()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Add images to twig template paths to allow inclusion of SVG files
|
||||
public function onTwigLoader()
|
||||
{
|
||||
$theme_paths = Grav::instance()['locator']->findResources('theme://images');
|
||||
foreach($theme_paths as $images_path) {
|
||||
$this->grav['twig']->addPath($images_path, 'images');
|
||||
}
|
||||
}
|
||||
|
||||
public function onTwigInitialized()
|
||||
{
|
||||
$twig = $this->grav['twig'];
|
||||
|
||||
$form_class_variables = [
|
||||
// 'form_outer_classes' => 'form-horizontal',
|
||||
'form_button_outer_classes' => 'button-wrapper',
|
||||
'form_button_classes' => 'btn',
|
||||
'form_errors_classes' => '',
|
||||
'form_field_outer_classes' => 'form-group',
|
||||
'form_field_outer_label_classes' => 'form-label-wrapper',
|
||||
'form_field_label_classes' => 'form-label',
|
||||
// 'form_field_outer_data_classes' => 'col-9',
|
||||
'form_field_input_classes' => 'form-input',
|
||||
'form_field_textarea_classes' => 'form-input',
|
||||
'form_field_select_classes' => 'form-select',
|
||||
'form_field_radio_classes' => 'form-radio',
|
||||
'form_field_checkbox_classes' => 'form-checkbox',
|
||||
];
|
||||
|
||||
$twig->twig_vars = array_merge($twig->twig_vars, $form_class_variables);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user