Install and Setup Bootstrap in Next.js
lessonDuration 1m 26s
Browse
Find courses, lessons, articles, talks, and podcasts.
17 resources
lessonDuration 1m 26s
course
Bootstrap is an incredibly popular CSS framework designed to make your website look great on mobile and desktop. By the end of this course, you'll be familiar with many of the popular classes and components that Bootstrap uses to apply in your own projects. For each feature you build in the course, you'll get a sense for what the relevant classes do for those components and links to documentation for further exploration. For the course demo application, we will analyze the landing pages of Microsoft and Apple to identify common components that are implemented. When these are identified, you'll implement these components yourself with Bootstrap. You'll build several common UI elements such as a nav bar, a carousel of images, Cards, and Forms. Through building these components, you'll understand what is behind the different classes Bootstrap gives you and get familiar with how it exposes flex and grid layout for you.
course
lorem ipsum
lessonDuration 1m 21sFree
You'll be learning about collectors, sending custom messages, creating channels and roles, all dynamically. All of the different topics I cover in this course will be a guide for you to use each of these concepts individually so I highly encourage you to take what you learn to build something new and tell me what you build! I'll cover how to setup your bot in the discord developer portal then we'll set it up locally. I'll go over how to create a simple chat bot then go into much more detail on how to create slash commands. There is a break on lesson 5 where I'll go over some files that I've copy over from the Discord.js guide. There will be a template you can clone if you don't want to copy the files over yourself but I'll be running through each of them individually so you can understand what's going on. The Discord.js guide is a super helpful resource when you need more information on specific topics you're struggling with. Discord.js also has a massive Discord channel that's a great place to ask questions that you just can't figure out yourself. The last resource is the Discord status page to check for things like api outages and other issues on Discord's side. All three of these resources will be linked down in the description. With that said, thank you for taking my course and let's get to it. Resources: - Discord.js Guide - [https://discordjs.guide/](https://discordjs.guide/) - Discord Channel - [https://discord.com/invite/djs](https://discord.com/invite/djs) - Discord Status Page - [https://discordstatus.com/](https://discordstatus.com/)
lessonDuration 2m 31s
In this lesson, you will be learning how to display relative time in a Discord embedded message using the Unix timestamp. We'll be adding a countdown timer to an embedded message to show the time remaining until submissions to a book-club close. By the end of this lesson, you will have the ability to convert hours into seconds, add it to the current time in the Unix timestamp, and create a variable to store the wait time in seconds to display the short date time and relative time in Discord.
lessonDuration 2m 2s
Now that our files are set up, we can now write our first Discord.js slash command. By create custom commands, we extend the functionality of our Discord bot and can make it much more fun and interesting. We'll start by creating a new file in the commands folder, importing the slash command builder, and defining the data and execute sections of the command. We'll then register the command and test it in the Discord application. By the end of this lesson, you'll have a solid understanding of how to create custom slash commands in Discord.js. So get ready to dive in and start building!
lessonDuration 2m 16s
In this lesson, you will learn how to create custom buttons in Discord.js using `ActionRowBuilder` and `ButtonBuilder`. You will also learn how to style and add text to the button using `ButtonStyle` and the `setEmoji` method. We'll need to make these buttons for our book-club message to give users the ability to let us know that they want to be a part of the club. `ActionRowBuilder` and `ButtonBuilder` are important, here's what they do: `ActionRowBuilder` is used to create a row of buttons or other action components in a Discord message. This class provides methods for adding buttons, text, and other components to the row, as well as methods for formatting the row. `ButtonBuilder` is used to create individual buttons within the `ActionRowBuilder`. This class provides methods for setting the text, emoji, style, and other properties of the button. By using them both, we are able to create a row of buttons exactly how we want them to look!
lessonDuration 3m 40s
Let's convert our Discord bot to respond with embedded messages. Embedded messages in Discord are a great way to make your bot's responses look a lot more visually appealing! We'll create a new command called `/bookclub` that will take in a book title, an author, and the number of hours until the submission deadline from the user. Then, it will `reply` with an object that Discord will automatically convert into an embedded message.
lessonDuration 4m 11s
Let's now learn how to create dynamic channels and roles with our Discord bot. We want to be able to create new roles and channels for the book clubs and their attendants that we create in our server. We'll be using methods from the `interaction` object to create the role and channel. And, we'll make sure to create both the role and channel each with the correct permissions.
lessonDuration 5m 12s
Disabling buttons can be useful in Discord servers to prevent users from clicking on buttons that are no longer relevant. By disabling a button, you can inform users why the button is no longer clickable and avoid confusion or frustration. By the end of this lesson, you will be able to create a button that will disable itself when a submissions for a book-club have closed.
lessonDuration 4m 35s
Now that we've set up a bot on our Discord server, let's write some code to get it do some fun stuff. We're going to set up a new project and use the `Discord.js` library. While setting up this project you'll learn how to properly configure the client and log in to your bot by passing a Discord API token to `client.login`. Once the project is set up we'll send our first event using the `client.once` and event, and set up some scripts so that we can start the bot using yarn. Throughout the lesson, you will be introduced to important concepts and best practices for building Discord bots. By the end of the lesson, you will have a basic understanding of how to create a simple bot and be ready to continue building
lessonDuration 4m 31s
Now, let's learn how to add roles to users in a Discord server using a Discord.js collector. By the end of this lesson, you will be able to create a collector to gather users who click on a specific button, filter out users who do not have a certain role, and add a specific role to the users who meet the filter criteria.
lessonDuration 3m 19s
The final step we need to take is to deploy our Discord bot to production. We'll be using using GitHub and Railway.app. [Railway.app](https://railway.app/) is a deployment platform that allows us to deploy our bot to the cloud. They give you $5 or 500 hours of free usage per month, which probably won't last you the full month, but it's a great way to get started.
lessonDuration 6m 31s
In this lesson, you will learn how to build custom commands that can receive user input. As a Discord user, you may have noticed that many servers use custom commands to provide information, moderate the chat, or enhance the overall user experience. By learning how to build these custom commands, you'll be able to create a more interactive and dynamic Discord server for your community! We'll start by introducing the basics of slash commands and how they can be used in a Discord app. You'll then learn how to create a simple command that sends a response back to the user who triggered the command. We'll also cover how to make your commands more dynamic by adding arguments. By the end of the lesson, you'll understand how to receive and respond to input from users and be able to build more sophisticated bots that can interact with your users in meaningful ways.
lessonDuration 5m 39s
In this lesson, you will be setting up the necessary files for your first Discord.js slash command. The goal of this lesson is to give you a solid foundation to build upon as you create your own custom commands for Discord. We will be importing and using `fs` and `path` to read from the command and events directories, using `Collection` from Discord to store and retrieve your commands, and creating the `Client` using the `GatewayIntentBits. Also, we are going to deploy your commands and set up events to execute them properly once they're written.
lessonDuration 2m
Using the Discord.js library, we're going to send our first message command! Let's create a classic "hello world" message command and learn how to create a new client instance, enable the necessary gateway intents, listen for specific events, and respond to those events by accessing a "message object" and then sending a message back.
lessonDuration 2m 13s
In this lesson, you'll learn how to create and configure a Discord bot. You will see how to create the bot, select the options you will need, give it the correct amount of permissions, and add it to your server. Here is the link to the Discord Developer Portal: [https://discord.com/developers/applications](https://discord.com/developers/applications)