Use Display Grid To Lay Out Elements
lessonDuration 1m 20sFree
Use display with the value grid to lay out items in a grid. You can specify the number of columns and rows using grid-template-columns and grid-template-rows.
Browse
Find courses, lessons, articles, talks, and podcasts.
7,176 resources
Showing 2,545–2,568 · Page 107 of 299
lessonDuration 1m 20sFree
Use display with the value grid to lay out items in a grid. You can specify the number of columns and rows using grid-template-columns and grid-template-rows.
lessonDuration 53sFree
You can use an element with the type "reset" within a form to reset a form on click. It's particularly useful when we don't want users to refresh a page in order to get back to an initial state.
lessonDuration 1m 3sFree
Learn to test for accessibility using Google's Lighthouse tool -- an open-source, automated tool for auditing web pages. Lighthouse can audit with quite a few different tests (SEO, performance, PWA, etc.). We will only be looking at the Accessibility portion. The audit will show any issues that the site has with links to learn more as well as which elements specifically failed the tests.
lessonDuration 1m 46sFree
Test web accessibility using the axe browser extension in Chrome, Firefox or Edge. Axe is an accessibility testing engine for websites and other HTML-based user interfaces. The tool will run on your site and sort the errors it encounters in order of performance from Critical down to Minor. When you select issues, you'll get a detailed page of of what went wrong and how you can fix it.
lessonDuration 5m 2sFree
Using `wrangler whoami` in a terminal we'll grab our account id so we can paste our id into the double quotes of `account_id = ""` inside of `wrangler.toml` file. Using the `wrangler dev` command we can look at our Workers serverless function and test it before deploying it. Once we're ready to deploy, we can use the `wrangler publish` command to deploy it to our unique workers.dev subdomain.
lessonDuration 5m 39sFree
We'll take a look at the default code in `index.js` in a Workers project. We'll take a second to understand how it works before building the rest of our project. First will see what our Worker looks like in an actual browser by running `wrangler preview`. In a terminal, and we'll check out how Serverless functions in Cloudflare Workers listen for HTTPS requests via the "fetch" event and respond to them by creating and returning a new Response.
lessonDuration 2m 56sFree
Wranglers generate command, `wrangler generate`, allows you to create new Cloudflare Workers projects. Using the URL parameter, you can also generate new projects based on Cloudflare's starter templates, or open-source projects created by other developers, but for now, you will just use the default. To do this you'll only need to give it a name, for example, `wrangler generate my-worker`, this will create a new project called my-worker.
lessonDuration 1m 57sFree
Using NPM, you can install Cloudflare Workers' CLI (command-line interface), Wrangler, by typing `npm install -g @cloudflare/wrangler` into your command line. Wrangler allows you to generate and publish Cloudflare Workers projects. We'll also use the `wrangler login` command which will give you a link to authorize Wrangler. This will set up an API token specifically for your Wrangler installation that will allow you to publish and read all the Workers and Workers KV information that you need.
lessonDuration 1m 41sFree
To deploy a Cloudflare Workers serverless function, you'll need to sign up for a free Cloudflare Workers account at [workers.cloudflare.com](http://workers.cloudflare.com/), and select your unique workers.dev subdomain to deploy your functions to.
lessonDuration 27sFree
Use the spread operator to create a copy of a flattened array.
lessonDuration 2m 45sFree
Why does Gatsby use GraphQL? This is part 1 of a 4-part series that shows how to create pages in Gatsby, how data becomes hard to manage over time, and how GraphQL helps limit the complexity of data management. Let's create a page using React component templates and no data at all.
lessonDuration 2m 34s
First, we'll see how you can have different run-times installed in a docker container that isn't dependent on your system's current installs. You don't need anything but docker to run these containers! We will demonstrate this by installing the latest version of Node.js in a docker container and compare that to the version of Node.js I'm running on my machine. Next, you'll see how to pass environment variables to containers. This is important because you will use these variables for API calls as well as configuring databases, and more!
lessonDuration 10m 42sFree
Why does Gatsby use GraphQL? This is part 5 of a 5-part series that shows how to create pages in Gatsby, how data becomes hard to manage over time, and how GraphQL helps limit the complexity of data management. In this video, you’ll generate pages with optimized images using GraphQL queries.
lessonDuration 1m 44s
You can use the non-null assertion operator in TypeScript to take a typed variable and remove the `undefined` and `null` types from it. In this lesson, we look at different ways to work around the null/undefined typed values; including `as [type]` and the use of non-null assertion operator which is as simple as adding an exclamation mark to the end of any given variable while reading the value from it.
lessonDuration 3m 59sFree
Aprende como publicar un servidor de GraphQL a Heroku de manera gratuita. Heroku es una solución de plataforma como servicio (PaaS) a base de contenedores. Heroku es completamente auto-manejado y te permite publicar, manejar, y crecer tu aplicación de una manera muy fácil. Este método también se puede utilizar con express o cualquier solución para la cual Heroku ofrece soporte. Otros lenguajes compatibles con Heroku incluyen: Ruby, Java, PHP, Python, Go, Scala, y Clojure.
lessonDuration 2m 38s
Many streamers use colorful banners on their stream pages that reflect their branding. Here's how you can create and use them. * [Panel Maker](https://nerdordie.com/resources/free-resources/customizable-twitch-panels/)
lessonDuration 1m 42s
In the last lesson [Create a Custom Image with a Dockerfile running Node.js](https://egghead.io/lessons/docker-create-a-custom-image-with-a-dockerfile-running-node-js?pl=introduction-to-docker-afaf), our backend stopped working again because it couldn’t find the database. One of the advantages of running containers is that they run in isolation. As far as the container is concerned, nothing exists outside of it. It behaves as if it was its own operating system. This is why the backend can’t find the database on "localhost". The two containers are running on the same host but as far as the backend is concerned, there is no database. The same goes for the database. It can’t see anything outside of what is running in its container therefore it can’t see the backend application running. When you need a way for multiple containers to talk to each other, Docker has a tool called networks to help you. We'll use a network to allow our backend to successfully connect to the database.
lessonDuration 3m 12s
Running MySQL in a Docker Container is great for being able to emulate various environments. The more advanced containers will include a bunch of executables and runtimes that will allow you to do run more intricate commands. These commands can be very useful for sharing with other teams for testing purposes. It doesn't matter what runtimes they have on their end, by using the `docker` command, you'll be able to specify what runtimes to use to execute your code.
lessonDuration 1m 36s
Validating forms in React can take several lines of code to build. However, Formik's ErrorMessage component and Yup simplify that process.
lessonDuration 1m 24sFree
Forms in React are not easy. They are verbose and several lines of code. However, forms with Formik are much simpler. Formik maintains the state of inputs and simplifies the form so you can work quicker!
course
Formik, created by Jared Palmer of The Palmer Group, is a library for creating forms without tears. Formik takes care of the repetitive aspects of form building like managing values, errors, and touched fields. Formik also orchestrates validation and submission so you don't have to. During this playlist, you'll learn how to spend less time wiring up state and change handlers and more time focusing on your business logic. We will be covering topics like refactoring your current non-Formik forms to Formik, writing quick and easy validation rules, learning how to integrate third-party component libraries, and much more. Stop wasting your time and tears building forms, and use Formik.
course
While "It works on my computer" might give you an excuse to close a bug ticket in the backlog, it doesn't really work when you're working on a team. You need to ensure that your application can run regardless of what hardware your teammates are running or libraries they have installed. Docker solves this problem by collecting everything your application needs to run into a container. Containers aren't just for source code. They can hold configuration, scripts, and even their own filesystem. It's similar to a Virtual Machine, without having to bring a full operating system along for the ride. Because containers run in isolation, there is some configuration involved to allow for files to be saved and containers to communicate with one another. One of the most useful ways to get your head around Docker is to see it in action. Follow along with Joel Lord as he works through the process of preparing an application to run in separate containers for the frontend and backend of an application that searches for gifs and re-encodes them with a caption supplied by the user. You'll see how to configure the separate containers to communicate with one another, work with environment variables, and persist data to your local machine. Along the way, you'll pick up some tips on useful commands and bash scripting. Finally, you'll learn how to use Docker Compose to make it easy to run multiple containers simultaneously.
lessonDuration 4m 18s
Now that all three tiers of your application are available in containers, you'll need to push those images to container registries. Registries are the container equivalent to repositories for your code. Registries can be public or private. In this lesson, we'll use Docker Hub to push our images. Docker Hub repositories allow you share container images with your team, customers, or the Docker community at large. Docker images are pushed to Docker Hub through the `[docker push](https://docs.docker.com/engine/reference/commandline/push/)` command. A single Docker Hub repository can hold many Docker images (stored as **tags**). Images pushed to a public registry can be downloaded by using the `docker pull` command. Once they have the image downloaded, they can use Docker run to start each container just like you did in the previous steps.
lessonDuration 8m 46s
You will learn how to create your own images that will include all the source code of your application, along with a specific version of Node.js and all the dependencies that are needed. Once you are done, you will be able to share this image with other people and this will ensure that everyone is running the same environment. It will event let people that don’t have Node.js run this server. This will also have the added benefit of cleaning up everything once you close the application. You'll notice that we will run into the same error stating we can't connect to the database. This is expected and we'll fix this in [Allow Container to Communicate through Docker Networks](https://egghead.io/lessons/docker-allow-container-to-communicate-through-docker-networks)