Skip to content

Commit

Permalink
Create Heading
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanEstrada003 committed Sep 5, 2024
1 parent f5504dc commit 52a5591
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/lib/components/layout/Heading.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<script lang="ts">
export let title: string; // Recibirá el título que se mostrará
</script>

<section class="heading-section">
<div class="heading-container">
<h1>{title}</h1>
</div>
</section>

<style>
.heading-section {
background-image: url("$lib/assets/forms/frame.svg"); /* Asegúrate de colocar la ruta correcta a tu SVG */
background-size: 100%;
align-items: center;
height: 25rem;
display: flex;
}
.heading-container {
color: black; /* Cambia a blanco si lo necesitas */
margin-left: 10%;
}
h1 {
font-size: 3rem;
font-weight: bold;
}
</style>

0 comments on commit 52a5591

Please sign in to comment.