-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
i18n(es): update tutorial #12629
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
base: main
Are you sure you want to change the base?
i18n(es): update tutorial #12629
Changes from all commits
634167f
623574b
bf26556
d49679e
d88e096
982597e
3a377af
3f52b50
00d683e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -94,15 +94,15 @@ Dado que tu sitio se verá en distintos dispositivos, ¡es hora de crear una nav | |||
| ## Añade estilos responsivos | ||||
|
|
||||
| <Steps> | ||||
| 1. Actualiza `Navigation.astro` con la clase CSS para controlar tus enlaces de navegación. Envuelve los enlaces de navegación existentes en un `<div>` con la clase `nav-links`. | ||||
| 1. Actualiza `Navigation.astro` con la clase CSS para controlar tus enlaces de navegación. Envuelve los enlaces de navegación existentes en un `<div>` con la clase `nav-links` y el atributo `id` establecido como `main-menu`. | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i think i prefer it formatted, since it makes it easier to understand in spanish |
||||
|
|
||||
| ```astro title="src/components/Navigation.astro" ins={3,7} | ||||
| --- | ||||
| --- | ||||
| <div class="nav-links"> | ||||
| <div id="main-menu" class="nav-links"> | ||||
| <a href="/">Inicio</a> | ||||
| <a href="/about">Sobre mi</a> | ||||
| <a href="/blog">Blog</a> | ||||
| <a href="/about/">Sobre mi</a> | ||||
| <a href="/blog/">Blog</a> | ||||
| </div> | ||||
| ``` | ||||
|
|
||||
|
|
@@ -116,7 +116,7 @@ Dado que tu sitio se verá en distintos dispositivos, ¡es hora de crear una nav | |||
| Empieza por definir qué debe ocurrir en las pantallas pequeñas. Las pantallas pequeñas requieren diseños más sencillos. A continuación, ajusta tus estilos para adaptarse a dispositivos más grandes. Si diseñas primero el caso complicado, luego tendrás que trabajar para intentar hacerlo sencillo de nuevo. | ||||
| ::: | ||||
|
|
||||
| ```css title="src/styles/global.css" ins={23-100} | ||||
| ```css title="src/styles/global.css" ins={23-60} | ||||
| html { | ||||
| background-color: #f1f5f9; | ||||
| font-family: sans-serif; | ||||
|
|
@@ -143,9 +143,6 @@ Dado que tu sitio se verá en distintos dispositivos, ¡es hora de crear una nav | |||
|
|
||||
| .nav-links { | ||||
| width: 100%; | ||||
| top: 5rem; | ||||
| left: 48px; | ||||
| background-color: #ff9776; | ||||
| display: none; | ||||
| margin: 0; | ||||
| } | ||||
|
|
@@ -158,16 +155,14 @@ Dado que tu sitio se verá en distintos dispositivos, ¡es hora de crear una nav | |||
| font-size: 1.2rem; | ||||
| font-weight: bold; | ||||
| text-transform: uppercase; | ||||
| color: #0d0950; | ||||
| } | ||||
|
|
||||
| .nav-links a:hover, | ||||
| .nav-links a:focus { | ||||
| background-color: #ff9776; | ||||
| } | ||||
|
|
||||
| .expanded { | ||||
| display: unset; | ||||
| } | ||||
|
|
||||
| @media screen and (min-width: 636px) { | ||||
| .nav-links { | ||||
|
|
@@ -182,15 +177,12 @@ Dado que tu sitio se verá en distintos dispositivos, ¡es hora de crear una nav | |||
| display: inline-block; | ||||
| padding: 15px 20px; | ||||
| } | ||||
|
|
||||
| } | ||||
| ``` | ||||
| </Steps> | ||||
|
|
||||
| Cambia el tamaño de la ventana y comprueba si se aplican diferentes estilos a diferentes anchos de pantalla. Tu encabezado es ahora **responsiva** al tamaño de la pantalla mediante el uso de consultas `@media`. | ||||
|
|
||||
|
|
||||
|
|
||||
| <Box icon="check-list"> | ||||
|
|
||||
| ## Checklist | ||||
|
|
||||
Uh oh!
There was an error while loading. Please reload this page.