IsraC0d33 / Proyecto1Marcas

Este repositorio es un trabajo/proyecto en equipo que busca replicar la página que se muestra abajo, con todos los conocimientos adquiridos en la asignatura de lenguaje de marcas.
https://www.volunteeringsolutions.com/es/
GNU General Public License v3.0
16 stars 11 forks source link

Task Tile #44

Closed IsraC0d33 closed 8 months ago

IsraC0d33 commented 8 months ago

What - description of what you me to do Example: Hey @autopilot implement a map of the city of madrid in the index.html file

Why - explain why this is important Example: I want to allow users to see the map of madrid

codeautopilot[bot] commented 8 months ago

Potential solution

The task is to implement a map of the city of Madrid on the index.html page. The reasoning behind the solution is to ensure that the map is visually appealing, fits well within the existing layout, is responsive to different screen sizes, and is accessible to users. The solution involves obtaining a Google Maps API key, embedding the map using an iframe, and styling it with CSS to ensure it integrates seamlessly with the rest of the website's design.

How to implement

  1. Obtain a Google Maps API Key from the Google Cloud Platform Console.
  2. Use the coordinates for the city center of Madrid to create the embed URL.
  3. Insert the iframe into the index.html file at the desired location within the layout.
  4. Style the iframe using CSS to ensure it is responsive and visually consistent with the rest of the page.
  5. Test the map to ensure it loads correctly and is user-friendly on all devices.
  6. Commit the changes to the repository.

index.html

Insert the following iframe code within the <main> element of the index.html file, where the map should be displayed:

<main>
    <!-- ... other content ... -->
    <section>
        <!-- ... other content ... -->
        <!-- Map of Madrid -->
        <div class="googleMaps">
            <iframe
              width="100%"
              height="450"
              style="border:0"
              loading="lazy"
              allowfullscreen
              src="https://www.google.com/maps/embed/v1/place?key=YOUR_API_KEY&q=Madrid,Spain">
            </iframe>
        </div>
    </section>
    <!-- ... other content ... -->
</main>

Replace YOUR_API_KEY with the actual API key you obtained from Google.

css/style.css

Add or update the following CSS rules in the css/style.css file to style the .googleMaps class:

.googleMaps {
    margin: 2rem auto; /* Center the map container */
    border: 0.500rem double #90abd9;
    box-shadow: 0.125rem 0.125rem 0.25rem #000;
    border-radius: 0.725rem;
    width: 80%; /* You might want to make this responsive */
    height: 500px; /* Adjust the height as needed */
    overflow: hidden; /* In case the iframe has a larger height */
}

.googleMaps>iframe {
    border-radius: 0.250rem;
    width: 100%;
    height: 100%; /* Make the iframe take up the full container height */
    border: none;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .googleMaps {
        width: 95%; /* Increase width on smaller screens */
        height: 300px; /* Adjust height on smaller screens */
    }
}

css/style-main.css

If additional styling is needed for the map on the main page, add or update the following CSS rules in the css/style-main.css file:

.map-container {
    width: 100%; /* Full width */
    height: 400px; /* Adjust height as needed */
    position: relative; /* If you need to position it relative to its container */
    margin: 20px 0; /* Add some margin if needed */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Optional: Adds a subtle shadow around the map */
    border: 1px solid #ccc; /* Add a border */
    border-radius: 8px; /* Rounded corners */
    overflow: hidden; /* Ensures that the map corners are rounded */
}

@media (max-width: 768px) {
    .map-container {
        height: 300px; /* Smaller height for smaller devices */
    }
}

Apply the .map-container class to the map element in the index.html file if needed. Test the webpage to ensure the map is displayed correctly and adjust the CSS as necessary.

Click here to create a Pull Request with the proposed solution

Files used for this task:

Changes on css/style.css To implement the map of Madrid and ensure it fits well within the webpage layout, we need to add CSS rules that will style and position the map. Since the `.googleMaps` class seems to be intended for the map container, we can use this class to define the map's appearance and position. Here's a practical proposal for the CSS changes: 1. Ensure the `.googleMaps` class has appropriate dimensions. The width is currently set to 80%, which might be fine, but you may want to adjust the height to fit the content area or make it responsive. 2. The `.googleMaps>iframe` selector targets the iframe element directly. Since the iframe will contain the map, make sure the height is sufficient to display the map clearly. You might want to set a minimum height or make it responsive based on the viewport height. 3. Consider the layout of the page. If the map should be a focal point, ensure that it is centered or prominently placed within the `.container` class. If the `.Right` class is where the map is supposed to go, make sure that the `.googleMaps` class is included within this container and that it aligns well with other content. 4. Add responsive design rules to ensure that the map looks good on all devices. This could include setting max-width and height properties, and using media queries to adjust the size and layout on smaller screens. 5. If the map needs to stand out more, consider adding a more prominent border or shadow to the `.googleMaps` class. Here's an example of how you might update the `.googleMaps` and `.googleMaps>iframe` CSS rules: ```css .googleMaps { margin: 2rem auto; /* Center the map container */ border: 0.500rem double #90abd9; box-shadow: 0.125rem 0.125rem 0.25rem #000; border-radius: 0.725rem; width: 80%; /* You might want to make this responsive */ height: 500px; /* Adjust the height as needed */ overflow: hidden; /* In case the iframe has a larger height */ } .googleMaps>iframe { border-radius: 0.250rem; width: 100%; height: 100%; /* Make the iframe take up the full container height */ border: none; } /* Responsive design for smaller screens */ @media (max-width: 768px) { .googleMaps { width: 95%; /* Increase width on smaller screens */ height: 300px; /* Adjust height on smaller screens */ } } ``` Remember to test the changes on different screen sizes and adjust the CSS as necessary to ensure the map is displayed correctly and is user-friendly on all devices.
Changes on css/style-main.css The task for the `css/style-main.css` file is to add or update CSS rules specific to the map's appearance on the main page, if necessary. Since the actual implementation of the map in the `index.html` file is not provided, I will outline a general approach to styling an embedded map. 1. **Define a CSS class for the map container**: If the map is to be embedded using an iframe or a div (for JavaScript map APIs), you should define a CSS class that can be applied to this container. This class will control the size, position, and other visual aspects of the map. ```css .map-container { width: 100%; /* Full width */ height: 400px; /* Adjust height as needed */ position: relative; /* If you need to position it relative to its container */ margin: 20px 0; /* Add some margin if needed */ box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Optional: Adds a subtle shadow around the map */ } ``` 2. **Responsive design considerations**: Ensure that the map is responsive and looks good on all devices. You can use media queries to adjust the map size on different screen sizes. ```css @media (max-width: 768px) { .map-container { height: 300px; /* Smaller height for smaller devices */ } } ``` 3. **Additional styling**: Depending on the design requirements, you might want to add additional styles such as borders, border-radius, or even a custom overlay. ```css .map-container { border: 1px solid #ccc; /* Add a border */ border-radius: 8px; /* Rounded corners */ overflow: hidden; /* Ensures that the map corners are rounded */ } ``` 4. **Placement within the layout**: Decide where the map should be placed within the main page layout. You may need to adjust the existing layout or add new sections to accommodate the map. 5. **Accessibility considerations**: Ensure that the map is accessible by providing appropriate `alt` text if using images, and proper ARIA roles and labels if using interactive map features. Once the actual map implementation is done in the `index.html` file, you can apply the `.map-container` class to the map element and adjust the styles as needed to fit the design and layout of the main page.
Changes on index.html To implement an embedded map of the city of Madrid, we can use the Google Maps Embed API. Here's a step-by-step plan to add the map to the `index.html` file: 1. **Obtain a Google Maps API Key**: Before you can use the Google Maps Embed API, you need to obtain an API key from the Google Cloud Platform Console. 2. **Choose the Location**: Since the task is to embed a map of Madrid, we will use the coordinates for the city center of Madrid. 3. **Create the Embed Iframe**: Once you have the API key, you can create an iframe element with the source URL set to the Google Maps Embed API endpoint, including the coordinates for Madrid and your API key. 4. **Insert the Iframe into the HTML**: Find an appropriate place in the `index.html` file to insert the iframe. This could be within the `
` element or in a specific section where the map should be displayed. 5. **Style the Iframe**: Add CSS rules to ensure the map is responsive and fits well within the layout of the page. This can be done by setting width and height properties, and possibly using media queries for different screen sizes. Here's an example of how the iframe might look: ```html ``` Replace `YOUR_API_KEY` with the actual API key you obtained from Google. 6. **Test the Map**: After adding the iframe to the HTML file, test the webpage to ensure the map loads correctly and is positioned as desired. 7. **Commit Changes**: Once you're satisfied with the implementation, commit the changes to the repository. Here's where you might add the iframe in the `index.html` file, for example, right after the `
` tag within the `
` element: ```html
``` And in the `css/style.css` file, you might add: ```css .map-container iframe { max-width: 100%; height: 450px; /* Adjust height as needed */ } ``` Remember to replace `YOUR_API_KEY` with your actual API key. If you don't have one, you can get it from the Google Cloud Platform Console.
Ballwictb commented 8 months ago

@autopilot quiero que cambies el readme.md y no borres nada sino que añadas una tabla de todos los bots que tenemos

Es importante por que asi la gente sabe de antemano con que bots manejamos

codeautopilot[bot] commented 8 months ago

@autopilot quiero que cambies el readme.md y no borres nada sino que añadas una tabla de todos los bots que tenemos

Es importante por que asi la gente sabe de antemano con que bots manejamos

## Lista de Bots Disponibles

A continuación se presenta una tabla con todos los bots que manejamos en el proyecto:

| Nombre del Bot | Descripción | Área de Uso |
| -------------- | ----------- | ----------- |
| Bot1           | Descripción del Bot1 | Área de uso del Bot1 |
| Bot2           | Descripción del Bot2 | Área de uso del Bot2 |
| Bot3           | Descripción del Bot3 | Área de uso del Bot3 |
| ...            | ...         | ...         |

Por favor, añade la información específica de cada bot en la tabla anterior. Asegúrate de no borrar ningún contenido existente en el `readme.md` y solo añadir esta tabla en la sección apropiada.

Si necesitas que genere una tabla con información específica de los bots, por favor proporciona los nombres y descripciones de cada uno.