feat: base wordpress local y tema cvfolio
This commit is contained in:
@@ -0,0 +1,341 @@
|
||||
:root {
|
||||
--bg: #f4efe7;
|
||||
--bg-strong: #eadfd1;
|
||||
--surface: rgba(255, 255, 255, 0.78);
|
||||
--surface-strong: #fffdf8;
|
||||
--text: #1f1d1a;
|
||||
--muted: #6f685f;
|
||||
--line: rgba(31, 29, 26, 0.1);
|
||||
--accent: #d4582b;
|
||||
--accent-dark: #9f3814;
|
||||
--accent-soft: #f6c9ae;
|
||||
--shadow: 0 24px 60px rgba(89, 57, 32, 0.12);
|
||||
--radius-lg: 28px;
|
||||
--radius-md: 18px;
|
||||
--radius-sm: 999px;
|
||||
--container: 1180px;
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: "Outfit", sans-serif;
|
||||
color: var(--text);
|
||||
background:
|
||||
radial-gradient(circle at top left, rgba(212, 88, 43, 0.14), transparent 34%),
|
||||
radial-gradient(circle at right 20%, rgba(135, 148, 255, 0.12), transparent 24%),
|
||||
linear-gradient(180deg, #f6f1e8 0%, #f9f6f1 48%, #efe5d8 100%);
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.site-bg {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background-image: linear-gradient(rgba(31, 29, 26, 0.03) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(31, 29, 26, 0.03) 1px, transparent 1px);
|
||||
background-size: 24px 24px;
|
||||
mask-image: radial-gradient(circle at center, black 45%, transparent 90%);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.site-header,
|
||||
.site-main,
|
||||
.site-footer {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.site-header__inner,
|
||||
.hero,
|
||||
.content-wrap,
|
||||
.site-footer__inner {
|
||||
width: min(calc(100% - 2rem), var(--container));
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.site-header {
|
||||
padding: 1.2rem 0 0;
|
||||
}
|
||||
|
||||
.site-header__inner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
padding: 1rem 1.25rem;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-sm);
|
||||
background: rgba(255, 253, 248, 0.78);
|
||||
backdrop-filter: blur(18px);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.site-brand,
|
||||
h1,
|
||||
h2,
|
||||
h3 {
|
||||
font-family: "Fraunces", serif;
|
||||
}
|
||||
|
||||
.site-brand {
|
||||
font-size: 1.1rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.site-nav-toggle {
|
||||
display: none;
|
||||
border: 0;
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
padding: 0.85rem 1rem;
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
.site-nav__menu {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.site-nav__menu a {
|
||||
color: var(--muted);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.hero {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
|
||||
gap: 1.5rem;
|
||||
padding: 2rem 0 1.5rem;
|
||||
}
|
||||
|
||||
.hero__copy,
|
||||
.profile-card,
|
||||
.content-card,
|
||||
.side-card {
|
||||
border: 1px solid rgba(31, 29, 26, 0.08);
|
||||
background: var(--surface);
|
||||
backdrop-filter: blur(14px);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.hero__copy {
|
||||
padding: 2rem;
|
||||
border-radius: 40px;
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
margin: 0 0 1rem;
|
||||
font-size: 0.82rem;
|
||||
letter-spacing: 0.16em;
|
||||
text-transform: uppercase;
|
||||
color: var(--accent-dark);
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
margin: 0;
|
||||
font-size: clamp(2.6rem, 5vw, 5.5rem);
|
||||
line-height: 0.95;
|
||||
}
|
||||
|
||||
.hero__role {
|
||||
margin: 1rem 0 0;
|
||||
font-size: clamp(1.2rem, 2vw, 1.6rem);
|
||||
color: var(--accent-dark);
|
||||
}
|
||||
|
||||
.hero__intro,
|
||||
.entry-content,
|
||||
.side-card p {
|
||||
color: var(--muted);
|
||||
line-height: 1.7;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.hero__actions,
|
||||
.chip-grid,
|
||||
.skill-cloud {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.8rem;
|
||||
}
|
||||
|
||||
.hero__actions {
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.btn,
|
||||
.cv-chip,
|
||||
.skill-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 44px;
|
||||
padding: 0.75rem 1.05rem;
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.btn--primary {
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.cv-chip,
|
||||
.skill-pill {
|
||||
background: rgba(255, 255, 255, 0.8);
|
||||
border: 1px solid rgba(31, 29, 26, 0.08);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.profile-card {
|
||||
border-radius: 30px;
|
||||
padding: 1.5rem;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.profile-card__label {
|
||||
margin: 0 0 0.5rem;
|
||||
color: var(--muted);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.profile-card h2,
|
||||
.side-card h2,
|
||||
.entry-title {
|
||||
margin: 0 0 1rem;
|
||||
font-size: clamp(1.5rem, 2vw, 2rem);
|
||||
}
|
||||
|
||||
.content-wrap {
|
||||
display: grid;
|
||||
padding: 0 0 2rem;
|
||||
}
|
||||
|
||||
.content-wrap--front {
|
||||
grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.content-card {
|
||||
border-radius: 32px;
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.entry-content > *:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.entry-content h2,
|
||||
.entry-content h3 {
|
||||
margin-top: 1.8rem;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.entry-content .wp-block-group,
|
||||
.entry-content .wp-block-columns,
|
||||
.entry-content .wp-block-cover,
|
||||
.entry-content .wp-block-media-text {
|
||||
margin-top: 1.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.entry-content .wp-block-group.cv-section {
|
||||
padding: 1.5rem;
|
||||
border-radius: 24px;
|
||||
background: rgba(255, 255, 255, 0.52);
|
||||
border: 1px solid rgba(31, 29, 26, 0.08);
|
||||
}
|
||||
|
||||
.side-stack {
|
||||
display: grid;
|
||||
gap: 1.5rem;
|
||||
align-content: start;
|
||||
}
|
||||
|
||||
.side-card {
|
||||
padding: 1.5rem;
|
||||
border-radius: 26px;
|
||||
}
|
||||
|
||||
.site-footer {
|
||||
padding: 0 0 2.5rem;
|
||||
}
|
||||
|
||||
.site-footer__inner {
|
||||
padding: 1rem 0;
|
||||
color: var(--muted);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@media (max-width: 920px) {
|
||||
.hero,
|
||||
.content-wrap--front {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.site-nav-toggle {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.site-nav {
|
||||
position: absolute;
|
||||
top: calc(100% + 0.75rem);
|
||||
right: 1rem;
|
||||
left: 1rem;
|
||||
display: none;
|
||||
padding: 1rem;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 20px;
|
||||
background: rgba(255, 253, 248, 0.96);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.site-nav.is-open {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.site-nav__menu {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.site-header__inner,
|
||||
.hero__copy,
|
||||
.profile-card,
|
||||
.content-card,
|
||||
.side-card {
|
||||
border-radius: 24px;
|
||||
}
|
||||
|
||||
.site-header__inner,
|
||||
.hero__copy,
|
||||
.profile-card,
|
||||
.content-card,
|
||||
.side-card {
|
||||
padding: 1.2rem;
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
const toggle = document.querySelector(".site-nav-toggle");
|
||||
const nav = document.querySelector(".site-nav");
|
||||
|
||||
if (toggle && nav) {
|
||||
toggle.addEventListener("click", () => {
|
||||
const expanded = toggle.getAttribute("aria-expanded") === "true";
|
||||
toggle.setAttribute("aria-expanded", String(!expanded));
|
||||
nav.classList.toggle("is-open", !expanded);
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,9 @@
|
||||
</main>
|
||||
<footer class="site-footer">
|
||||
<div class="site-footer__inner">
|
||||
<p><?php echo esc_html(get_bloginfo('name')); ?> · <?php echo esc_html(date_i18n('Y')); ?></p>
|
||||
</div>
|
||||
</footer>
|
||||
<?php wp_footer(); ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
get_header();
|
||||
|
||||
$hero_name = get_theme_mod('cvolio_hero_name', get_bloginfo('name'));
|
||||
$hero_role = get_theme_mod('cvolio_hero_role', __('Profesional creativo y estratega digital', 'cvolio'));
|
||||
$hero_intro = get_theme_mod('cvolio_hero_intro', __('Presenta tu experiencia, logros, proyectos y propuesta de valor con un formato claro, elegante y listo para cualquier dispositivo.', 'cvolio'));
|
||||
$hero_location = get_theme_mod('cvolio_contact_location', 'Guayaquil, Ecuador');
|
||||
$hero_email = get_theme_mod('cvolio_contact_email', 'hola@ejemplo.com');
|
||||
$hero_phone = get_theme_mod('cvolio_contact_phone', '+593 999 999 999');
|
||||
$hero_cta_label = get_theme_mod('cvolio_hero_cta_label', __('Ver experiencia', 'cvolio'));
|
||||
$hero_cta_url = get_theme_mod('cvolio_hero_cta_url', '#perfil');
|
||||
$skills = array_filter(array_map('trim', explode(',', (string) get_theme_mod('cvolio_skills_list', 'UX Strategy, Liderazgo, Frontend, WordPress, SEO, Analitica'))));
|
||||
$linkedin = get_theme_mod('cvolio_social_linkedin', '');
|
||||
$github = get_theme_mod('cvolio_social_github', '');
|
||||
$portfolio = get_theme_mod('cvolio_social_portfolio', '');
|
||||
?>
|
||||
|
||||
<section class="hero">
|
||||
<div class="hero__copy">
|
||||
<p class="eyebrow"><?php esc_html_e('Hoja de vida digital', 'cvolio'); ?></p>
|
||||
<h1><?php echo esc_html($hero_name); ?></h1>
|
||||
<p class="hero__role"><?php echo esc_html($hero_role); ?></p>
|
||||
<p class="hero__intro"><?php echo esc_html($hero_intro); ?></p>
|
||||
<div class="hero__actions">
|
||||
<a class="btn btn--primary" href="<?php echo esc_url($hero_cta_url); ?>">
|
||||
<?php echo esc_html($hero_cta_label); ?>
|
||||
</a>
|
||||
<?php echo wp_kses_post(cvolio_render_contact_link('email', $hero_email)); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<aside class="hero__panel">
|
||||
<div class="profile-card">
|
||||
<p class="profile-card__label"><?php esc_html_e('Disponible para', 'cvolio'); ?></p>
|
||||
<h2><?php esc_html_e('Proyectos, consultoria y liderazgo de equipos', 'cvolio'); ?></h2>
|
||||
<div class="chip-grid">
|
||||
<?php echo wp_kses_post(cvolio_render_contact_link('phone', $hero_phone)); ?>
|
||||
<span class="cv-chip"><?php echo esc_html($hero_location); ?></span>
|
||||
<?php if ($linkedin) : ?><a class="cv-chip" href="<?php echo esc_url($linkedin); ?>" target="_blank" rel="noreferrer">LinkedIn</a><?php endif; ?>
|
||||
<?php if ($github) : ?><a class="cv-chip" href="<?php echo esc_url($github); ?>" target="_blank" rel="noreferrer">GitHub</a><?php endif; ?>
|
||||
<?php if ($portfolio) : ?><a class="cv-chip" href="<?php echo esc_url($portfolio); ?>" target="_blank" rel="noreferrer">Portfolio</a><?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
</section>
|
||||
|
||||
<section id="perfil" class="content-wrap content-wrap--front">
|
||||
<div class="content-card">
|
||||
<?php while (have_posts()) : the_post(); ?>
|
||||
<article <?php post_class('front-article'); ?>>
|
||||
<div class="entry-content">
|
||||
<?php the_content(); ?>
|
||||
</div>
|
||||
</article>
|
||||
<?php endwhile; ?>
|
||||
</div>
|
||||
|
||||
<aside class="side-stack">
|
||||
<section class="side-card">
|
||||
<p class="eyebrow"><?php esc_html_e('Fortalezas', 'cvolio'); ?></p>
|
||||
<h2><?php esc_html_e('Habilidades clave', 'cvolio'); ?></h2>
|
||||
<div class="skill-cloud">
|
||||
<?php foreach ($skills as $skill) : ?>
|
||||
<span class="skill-pill"><?php echo esc_html($skill); ?></span>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="side-card">
|
||||
<p class="eyebrow"><?php esc_html_e('Consejo de uso', 'cvolio'); ?></p>
|
||||
<h2><?php esc_html_e('Edita esta portada con bloques', 'cvolio'); ?></h2>
|
||||
<p><?php esc_html_e('Puedes crear secciones de experiencia, estudios, casos de exito, certificados o servicios usando Gutenberg y los patrones del tema.', 'cvolio'); ?></p>
|
||||
</section>
|
||||
</aside>
|
||||
</section>
|
||||
|
||||
<?php get_footer(); ?>
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
require_once get_template_directory() . '/inc/customizer.php';
|
||||
require_once get_template_directory() . '/inc/patterns.php';
|
||||
|
||||
function cvolio_setup(): void
|
||||
{
|
||||
add_theme_support('title-tag');
|
||||
add_theme_support('post-thumbnails');
|
||||
add_theme_support('editor-styles');
|
||||
add_theme_support('responsive-embeds');
|
||||
add_theme_support('wp-block-styles');
|
||||
add_theme_support('align-wide');
|
||||
|
||||
register_nav_menus([
|
||||
'primary' => __('Menu principal', 'cvolio'),
|
||||
]);
|
||||
}
|
||||
add_action('after_setup_theme', 'cvolio_setup');
|
||||
|
||||
function cvolio_enqueue_assets(): void
|
||||
{
|
||||
wp_enqueue_style(
|
||||
'cvolio-fonts',
|
||||
'https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap',
|
||||
[],
|
||||
null
|
||||
);
|
||||
|
||||
wp_enqueue_style(
|
||||
'cvolio-theme',
|
||||
get_template_directory_uri() . '/assets/css/theme.css',
|
||||
['cvolio-fonts'],
|
||||
wp_get_theme()->get('Version')
|
||||
);
|
||||
|
||||
wp_enqueue_script(
|
||||
'cvolio-theme',
|
||||
get_template_directory_uri() . '/assets/js/theme.js',
|
||||
[],
|
||||
wp_get_theme()->get('Version'),
|
||||
true
|
||||
);
|
||||
}
|
||||
add_action('wp_enqueue_scripts', 'cvolio_enqueue_assets');
|
||||
|
||||
function cvolio_body_classes(array $classes): array
|
||||
{
|
||||
$classes[] = 'cvolio-shell';
|
||||
|
||||
if (is_front_page()) {
|
||||
$classes[] = 'cvolio-front-page';
|
||||
}
|
||||
|
||||
return $classes;
|
||||
}
|
||||
add_filter('body_class', 'cvolio_body_classes');
|
||||
|
||||
function cvolio_render_contact_link(string $type, string $value): string
|
||||
{
|
||||
if ($value === '') {
|
||||
return '';
|
||||
}
|
||||
|
||||
$href = match ($type) {
|
||||
'email' => 'mailto:' . antispambot($value),
|
||||
'phone' => 'tel:' . preg_replace('/[^0-9+]/', '', $value),
|
||||
default => esc_url($value),
|
||||
};
|
||||
|
||||
return sprintf(
|
||||
'<a class="cv-chip" href="%s">%s</a>',
|
||||
esc_url($href),
|
||||
esc_html($value)
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
$brand = get_theme_mod('cvolio_hero_name', get_bloginfo('name'));
|
||||
?>
|
||||
<!doctype html>
|
||||
<html <?php language_attributes(); ?>>
|
||||
<head>
|
||||
<meta charset="<?php bloginfo('charset'); ?>">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<?php wp_head(); ?>
|
||||
</head>
|
||||
<body <?php body_class(); ?>>
|
||||
<?php wp_body_open(); ?>
|
||||
<div class="site-bg"></div>
|
||||
<header class="site-header">
|
||||
<div class="site-header__inner">
|
||||
<a class="site-brand" href="<?php echo esc_url(home_url('/')); ?>">
|
||||
<?php echo esc_html($brand); ?>
|
||||
</a>
|
||||
<button class="site-nav-toggle" type="button" aria-expanded="false" aria-controls="site-nav">
|
||||
<span>Menu</span>
|
||||
</button>
|
||||
<nav id="site-nav" class="site-nav" aria-label="<?php esc_attr_e('Menu principal', 'cvolio'); ?>">
|
||||
<?php
|
||||
wp_nav_menu([
|
||||
'theme_location' => 'primary',
|
||||
'container' => false,
|
||||
'fallback_cb' => false,
|
||||
'menu_class' => 'site-nav__menu',
|
||||
]);
|
||||
?>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
<main class="site-main">
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
function cvolio_customize_register(WP_Customize_Manager $wp_customize): void
|
||||
{
|
||||
$wp_customize->add_section('cvolio_hero', [
|
||||
'title' => __('CVolio: Presentacion', 'cvolio'),
|
||||
'priority' => 30,
|
||||
]);
|
||||
|
||||
$fields = [
|
||||
'cvolio_hero_name' => ['label' => __('Nombre principal', 'cvolio'), 'default' => 'Patricia Flores'],
|
||||
'cvolio_hero_role' => ['label' => __('Rol o titular', 'cvolio'), 'default' => 'Directora de proyectos, estratega digital y lider de producto'],
|
||||
'cvolio_hero_intro' => ['label' => __('Introduccion', 'cvolio'), 'default' => 'Perfil profesional con enfoque humano, resultados medibles y una presentacion visual moderna.'],
|
||||
'cvolio_hero_cta_label' => ['label' => __('Texto del boton', 'cvolio'), 'default' => 'Ver experiencia'],
|
||||
'cvolio_hero_cta_url' => ['label' => __('Enlace del boton', 'cvolio'), 'default' => '#perfil'],
|
||||
'cvolio_contact_location' => ['label' => __('Ubicacion', 'cvolio'), 'default' => 'Guayaquil, Ecuador'],
|
||||
'cvolio_contact_email' => ['label' => __('Correo', 'cvolio'), 'default' => 'hola@ejemplo.com'],
|
||||
'cvolio_contact_phone' => ['label' => __('Telefono', 'cvolio'), 'default' => '+593 999 999 999'],
|
||||
'cvolio_skills_list' => ['label' => __('Habilidades separadas por coma', 'cvolio'), 'default' => 'Liderazgo, Comunicacion, WordPress, UX, SEO, Analitica'],
|
||||
'cvolio_social_linkedin' => ['label' => __('LinkedIn', 'cvolio'), 'default' => ''],
|
||||
'cvolio_social_github' => ['label' => __('GitHub', 'cvolio'), 'default' => ''],
|
||||
'cvolio_social_portfolio' => ['label' => __('Portfolio', 'cvolio'), 'default' => ''],
|
||||
];
|
||||
|
||||
foreach ($fields as $key => $field) {
|
||||
$wp_customize->add_setting($key, [
|
||||
'default' => $field['default'],
|
||||
'sanitize_callback' => str_contains($key, 'url') || str_contains($key, 'linkedin') || str_contains($key, 'github') || str_contains($key, 'portfolio')
|
||||
? 'esc_url_raw'
|
||||
: 'sanitize_text_field',
|
||||
]);
|
||||
|
||||
$controlType = $key === 'cvolio_hero_intro' ? 'textarea' : 'text';
|
||||
|
||||
$wp_customize->add_control($key, [
|
||||
'label' => $field['label'],
|
||||
'section' => 'cvolio_hero',
|
||||
'type' => $controlType,
|
||||
]);
|
||||
}
|
||||
}
|
||||
add_action('customize_register', 'cvolio_customize_register');
|
||||
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
function cvolio_register_patterns(): void
|
||||
{
|
||||
if (! function_exists('register_block_pattern')) {
|
||||
return;
|
||||
}
|
||||
|
||||
register_block_pattern_category('cvolio', [
|
||||
'label' => __('CVolio', 'cvolio'),
|
||||
]);
|
||||
|
||||
register_block_pattern(
|
||||
'cvolio/resume-sections',
|
||||
[
|
||||
'title' => __('Perfil profesional con experiencia y logros', 'cvolio'),
|
||||
'categories' => ['cvolio'],
|
||||
'content' => '
|
||||
<!-- wp:group {"className":"cv-section"} -->
|
||||
<div class="wp-block-group cv-section"><!-- wp:heading {"level":2} -->
|
||||
<h2>Perfil profesional</h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p>Escribe aqui un resumen claro de tu experiencia, enfoque y propuesta de valor.</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:columns -->
|
||||
<div class="wp-block-columns"><!-- wp:column -->
|
||||
<div class="wp-block-column"><!-- wp:heading {"level":3} -->
|
||||
<h3>Experiencia destacada</h3>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:list -->
|
||||
<ul><li>Lideraste equipos o proyectos relevantes.</li><li>Generaste mejoras medibles.</li><li>Trabajaste con clientes, marcas o productos clave.</li></ul>
|
||||
<!-- /wp:list --></div>
|
||||
<!-- /wp:column -->
|
||||
|
||||
<!-- wp:column -->
|
||||
<div class="wp-block-column"><!-- wp:heading {"level":3} -->
|
||||
<h3>Logros</h3>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:list -->
|
||||
<ul><li>Incluye indicadores de impacto.</li><li>Menciona certificaciones o reconocimientos.</li><li>Resume herramientas o sectores dominados.</li></ul>
|
||||
<!-- /wp:list --></div>
|
||||
<!-- /wp:column --></div>
|
||||
<!-- /wp:columns --></div>
|
||||
<!-- /wp:group -->',
|
||||
]
|
||||
);
|
||||
}
|
||||
add_action('init', 'cvolio_register_patterns');
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php get_header(); ?>
|
||||
|
||||
<section class="content-wrap">
|
||||
<div class="content-card">
|
||||
<?php if (have_posts()) : ?>
|
||||
<?php while (have_posts()) : the_post(); ?>
|
||||
<article <?php post_class(); ?>>
|
||||
<h1 class="entry-title"><?php the_title(); ?></h1>
|
||||
<div class="entry-content">
|
||||
<?php the_content(); ?>
|
||||
</div>
|
||||
</article>
|
||||
<?php endwhile; ?>
|
||||
<?php else : ?>
|
||||
<article class="content-empty">
|
||||
<h1><?php esc_html_e('Empieza a construir tu perfil', 'cvolio'); ?></h1>
|
||||
<p><?php esc_html_e('Crea una pagina y usa este tema como base para tu hoja de vida.', 'cvolio'); ?></p>
|
||||
</article>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php get_footer(); ?>
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Theme Name: CVolio
|
||||
Theme URI: https://local.test/cvolio
|
||||
Author: Codex
|
||||
Description: Tema WordPress moderno y responsive para hoja de vida, portafolio y perfil profesional.
|
||||
Version: 1.0.0
|
||||
Requires at least: 6.8
|
||||
Tested up to: 6.8
|
||||
Requires PHP: 8.1
|
||||
Text Domain: cvolio
|
||||
*/
|
||||
Reference in New Issue
Block a user