-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/image-component #31
Open
Victor1890
wants to merge
16
commits into
ogticrd:main
Choose a base branch
from
Victor1890:feature/image-component
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
add image component
refactor image component and add use image hook, shadow and blur custom setting
fix import paths and add missing code in Image component
fix import paths and solve problem to image ref property type
refactor Image component to fix import paths and add missing code
add images related to Image Storybook view
…image-props.ts refactor useImageProps function in components/image/use-image-props.ts and remove comments
refactor useImageBase function in components/image/use-image-base.ts
Add Image.stories.tsx file for Storybook view, custom args controls and add differentes templates related to images component
refactor image component style in components/image/image.style.ts
…image-props.ts refactor useImageProps function in components/image/use-image-props.ts
…f img tag in components/image/index.tsx refactor Image component to use Component prop instead of img tag in components/image/index.tsx
…ture/image-component
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Presentamos una nueva funcionalidad:
Componente de Image
El componente de Image se utiliza para mostrar imágenes con soporte de
Imagen de respaldo
Beneficios
Puedes utilizar todas sus propiedades relacionado con la etiqueta
img
que conocesisBlurred: Puedes usar la propiedad
isBlurred
que duplica la imagen y desenfocarla para crear un efecto de borrosoisZoomed: Puedes usar la propiedad
isZoomed
para amplear la imagen cuando pasas el mouse sobre ellaCarga Animada: El componente de imagen tiene una animación de
skeleton
que indica the imagen is está cargando y una animación de laopacidad
aparece cuando la image ya ha sido cargadaImagen con respaldo: Puedes usar la propiedad
fallbackSrc
para mostrar el respaldo cuando la imagenfallbackSrc
está en usosrc
está todavía cargandosrc
ha fallado en ver de cargarsrc
no ha sido encontradaCómo usar
Componente de Image
:La manera mas sencilla del como utilizar el componente está actualmente el la documentación de
Storybook
Con Next.js Image
isBlurred
isZoomed
Shadow