First time using Vue to build app, i am not using the API that frontendmentor provide, i use REST Countries (https://restcountries.com/). Sometimes it's taking so long to get the data, what is best practices to get data from API using Vue?
Hi, it looks good, but without the repo URL, I couldn't check your code.
One suggestion is to handle cases where a country has no information like borders or other details, and display suitable information in those cases. For example, Antarctica doesn't have such detailed information, and the page shows a loading spinner.
I had a similar issue with mine but realized that later
Hi guys and girls! I did another task, but I have one question about improving this project.
All I wanted to ask is about the transition of answers to the questions in FAQ. I had a problem with doing that, I didn't know how to do it, where to put properties, etc.
To achieve the desired behavior of fixing the footer at the bottom of the page and allowing it to be visible when the content is smaller than the screen height or requiring scrolling when the content is larger, you can use a combination of HTML and CSS. Here's an example:
HTML structure:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Your Page Title</title>
</head>
<body>
<div class="wrapper">
<!-- Your page content goes here -->
<div class="content">
<!-- Your actual content -->
</div>
</div>
<footer>
<!-- Your footer content goes here -->
</footer>
</body>
</html>
The body element is set to display: flex and flex-direction: column to ensure that the main container (wrapper) takes up the available vertical space.
The wrapper div is given flex: 1 to take up the remaining space and allow the footer to be pushed to the bottom.
The footer is set to position: sticky and bottom: 0 to make it stick to the bottom of the page. It will remain at the bottom even if the content is smaller than the screen height.
The min-height: 100vh on the body ensures that the body takes at least the full height of the viewport.
With this setup, the footer will be fixed at the bottom of the page for small content and will be visible without scrolling. For larger content, you will need to scroll to see the footer. Adjust the styles according to your design preferences.
Good challenge to practice the basics of css and html.
I have one question though, is it possible to make this cursor black when hovered over like in the design preview? I know it can be done with svg, but I'm wondering if it's possible in some simple way.
If you have any ideas what I can improve in the code or notice any errors, please let me know.
/* Regular cursor color */
body {
cursor: default;
}
/* Change cursor color on hover */
body:hover {
cursor: url('path/to/black-cursor.png'), auto;
}
Or if u don't have that black cursor image you can do like
/* Change cursor color on hover to solid black */
body:hover {
cursor: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAf0lEQVR42mP8/wc/AwAB/ABsAAdUoJ9QAAAABJRU5ErkJggg=='), auto;
}
Hello everyone,
I completed the challenge Recipe Page
I made it responsive on different devices
You can take alook at my code and finished project for suggestions on beterment.
I had a challenge with using font assets which were provided in the assets folder any help will be appreciated.
Replace 'YourFontName' with the desired font family name, and update the file paths based on your project structure.
Apply the Font in CSS:
body {
font-family: 'YourFontName', sans-serif;
}
Use the specified font family in the font-family property. If the custom font is unavailable, the browser will use a generic sans-serif font as a fallback.
Hey gangs what's up 😆
I wish you all going great, I completed the challenge, and I hope it's good enough to like you, but I want you to help me do something
Tell me the keyword that helps me to search for how to deal with images perfectly in mobile screens, because I'm satisfied with what is going on there at all.😪
Anyway, I don't want you to tell me how can I do that, how can deal with, no no don't pls.
Just tell me the keyword.
all respect and love due to you guys, see you soon ❤🔥
Certainly! If you're looking for information on how to optimize or deal with images for mobile screens, a relevant keyword to use in your search could be "responsive images for mobile." This should lead you to resources and guides on best practices for handling images in a way that ensures they display well on various mobile devices.
Another relevant keyword you can use is "mobile-friendly image optimization." This phrase is likely to yield results that cover techniques and tips specifically tailored to make images work seamlessly on mobile screens.
Hi,
It is my first challenge here. And I just tried to choose the simplest one among the challenges.
Please feel free to write your feedback about the solution.
I tried to create a CSS variable for easily updating the colours in the future.
Divide the card into 3 blocks:
image
Article
Author
Why I made this decision. Because perhaps, in the future you will want to preview the card image and text inline not a block. So with these blocks, you will change the HTML structure with the help of CSS.
Hi, your design looks good. To center the card, enclose your whole content including card-container and attribution, into a container div and apply the following to the body.