-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Heading component to use slot instead of prop (#61)
* ci: Configure for deployment on premise * feature: Add projects page * fix: Fix linter warnings * fix: Revert to using adapter-cloudflare for main integration * feature: Update Heading component to use a slot --------- Co-authored-by: Alexander Goussas <[email protected]>
- Loading branch information
Showing
4 changed files
with
18 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,14 @@ | ||
<script lang="ts"> | ||
export let title: string; // Recibirá el título que se mostrará | ||
</script> | ||
|
||
<section class="heading-section"> | ||
<section class="heading-section my-8 flex h-[10rem] items-center"> | ||
<div class="heading-container"> | ||
<h1>{title}</h1> | ||
<h1 class="ml-[5rem] flex items-center font-fira text-[2.5rem] font-bold text-black"> | ||
<slot /> | ||
</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-image: url("$lib/assets/forms/frame.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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters