feat: initial ACRIB WordPress deployment

- WordPress 6.9.4 (es_ES) with Kadence theme
- Homepage: Hero, La Asociación, Pilares, Beneficios, Eventos, Miembros, Hazte Miembro, Contacto
- Brand identity: #13294b navy, #a12932 burgundy, #c69c48 gold
- Fonts: Raleway (headings) + Source Sans 3 (body) + Lato (UI)
- Plugins: Kadence Blocks, Polylang, Contact Form 7
- Custom CSS with full brand styling and responsive layout
- HTTPS enforced via wp-config.php proxy detection
This commit is contained in:
Malin
2026-05-19 19:25:59 +02:00
commit f3ff7b7186
6119 changed files with 1984255 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
export function serializeGradientColor( { type, value } ) {
if ( type === 'literal' ) {
return value;
}
if ( type === 'hex' ) {
return `#${ value }`;
}
return `${ type }(${ value.join( ',' ) })`;
}
export function serializeGradientPosition( position ) {
if ( ! position ) {
return '';
}
const { value, type } = position;
return `${ value }${ type }`;
}
export function serializeGradientColorStop( { type, value, length } ) {
return `${ serializeGradientColor( {
type,
value,
} ) } ${ serializeGradientPosition( length ) }`;
}
export function serializeGradientOrientation( type, orientation ) {
if ( 'radial-gradient' === type ) {
if ( ! orientation || ! orientation[0] || orientation[0].type !== 'shape' ) {
return;
}
if ( '%' === orientation[0].at.value.x.type ) {
return `${ orientation[0].value } at ${ orientation[0].at.value.x.value }% ${ orientation[0].at.value.y.value }%`;
}
return `${ orientation[0].value } at ${ orientation[0].at.value.x.value } ${ orientation[0].at.value.y.value }`;
}
if ( ! orientation || orientation.type !== 'angular' ) {
return;
}
return `${ orientation.value }deg`;
}
export function serializeGradient( { type, orientation, colorStops } ) {
const serializedOrientation = serializeGradientOrientation( type, orientation );
const serializedColorStops = colorStops
.sort( ( colorStop1, colorStop2 ) => {
return (
( colorStop1?.length?.value ?? 0 ) -
( colorStop2?.length?.value ?? 0 )
);
} )
.map( serializeGradientColorStop );
return `${ type }(${ [ serializedOrientation, ...serializedColorStops ]
.filter( Boolean )
.join( ',' ) })`;
}