Skip to content

Commit

Permalink
Merge pull request #12 from crisbusquets/improvement/replace-hero-svg
Browse files Browse the repository at this point in the history
New SVG and updated styles
  • Loading branch information
crisbusquets authored Aug 3, 2024
2 parents f826260 + cb9c5ff commit 02d4ddf
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 24 deletions.
1 change: 1 addition & 0 deletions assets/images/uifrommars-hero-computer.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 22 additions & 21 deletions inicio.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
<?php get_template_part('mailerlite', 'widget'); ?>
</div>
<div class="lottie">
<img src="<?php echo get_bloginfo('template_url') ?>/assets/images/uifrommars-hero.svg" width="454" height="329" alt="Únete a uiFromMars" />
<img src="<?php echo get_bloginfo('template_url') ?>/assets/images/uifrommars-hero-computer.svg" width="522"
height="295" alt="Únete a uiFromMars" />
</div>
</section>
<section class="one-column">
Expand All @@ -23,18 +24,18 @@
$last_posts = get_posts(array('posts_per_page' => 18));
foreach ($last_posts as $post) :
setup_postdata($post); ?>
<article class="home-item">
<a href="<?php the_permalink(); ?>" aria-label="Lee más sobre <?php the_title(); ?>" class="category-image">
<?php the_post_thumbnail('blog-thumbnails'); ?>
<article class="home-item">
<a href="<?php the_permalink(); ?>" aria-label="Lee más sobre <?php the_title(); ?>" class="category-image">
<?php the_post_thumbnail('blog-thumbnails'); ?>
</a>
<span class="pill"><?php the_category(' ') ?>
</span>
<h3 class="post-title-home">
<a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a>
<span class="pill"><?php the_category(' ') ?>
</span>
<h3 class="post-title-home">
<a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a>
</h3>
</article>
</h3>
</article>
<?php endforeach;
wp_reset_postdata(); ?>
</div>
Expand All @@ -49,16 +50,16 @@
<?php
$post_id = array(1754, 1241, 1299, 2368, 1382, 592, 3442, 4008, 121, 3667);
foreach ($post_id as $post) : ?>
<article class="most-read-grid">
<div class="most-title">
<h3 class="post-title-home">
<a href="<?php the_permalink(); ?>" class="<?php echo ('gtm_web_most-read-' . $counter);
<article class="most-read-grid">
<div class="most-title">
<h3 class="post-title-home">
<a href="<?php the_permalink(); ?>" class="<?php echo ('gtm_web_most-read-' . $counter);
$counter++; ?>">
<?php the_title(); ?>
</a>
</h3>
</div>
</article>
<?php the_title(); ?>
</a>
</h3>
</div>
</article>
<?php endforeach;
wp_reset_postdata(); ?>
</div>
Expand Down
6 changes: 3 additions & 3 deletions styles/inicio.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ mark {
align-self: center;
}

.lottie img {
/* .lottie img {
width: 100%;
}
} */

@media (max-width: 1024px) {
.lottie {
Expand All @@ -93,7 +93,7 @@ mark {
}

.lottie img {
width: 284px;
width: auto;
height: 206px;
}
}
Expand Down

0 comments on commit 02d4ddf

Please sign in to comment.