Bootstrap 5
Componentes Bootstrap 5
ACCESO A BOOTSTRAP 5 https://getbootstrap.esdocu.com/docs/5.1/getting-started/introduction/
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
<title>Componentes básicos Bootstrap</title>
</head>
<style>
.nav-item :hover {
background-color: #d49713;
border-left: red 2px solid;
}
</style>
<body>
<!---->
<div class="container">
<div class="row">
<div class="col-12">
<h1>COMPONENTES BÁSICOS Bootstrap</h1>
<h6>Link a Iconos de google</h6>
<a href="https://fonts.google.com/icons?selected=Material+Icons">Ir a Iconos de Google</a> <br>
<p class="material-icons">shopping_cart</p><br>
<a href="https://fonts.google.com/icons">Iconos</a><br>
<span class="material-symbols-outlined">menu</span><br>
</div>
</div>
<hr>
<div class="row">
<h4>COLORES DE LOS BOTONES</h4>
<div class="col-12">
<button type="button" class="btn flex-nowrap">Basic</button>
<button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-secondary">Secondary</button>
<button type="button" class="btn btn-success">Success</button>
<button type="button" class="btn btn-info">Info</button>
<button type="button" class="btn btn-warning">Warning</button>
<button type="button" class="btn btn-danger">Danger</button>
<button type="button" class="btn btn-dark">Dark</button>
<button type="button" class="btn btn-light">Light</button>
<button type="button" class="btn btn-link">Link</button>
</div>
</div>
<hr>
<div class="row">
<div class="col-12">
<h4>Botones en vertical</h4>
<div class="btn-group-vertical"><br>
<button type="button" class="btn btn-danger rounded">Boton Danger</button><br>
<button type="button" class="btn btn-info rounded">Boton Info</button><br>
<button type="button" class="btn btn-primary rounded">Primary</button>
</div>
</div>
</div>
<hr>
<div class="row">
<div class="col-12">
<h4>Breadcrumb</h4>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#" class="link-warning">Inicio</a></li>
<li class="breadcrumb-item active" aria-current="page">Contacto</li>
</ol>
</nav>
</div>
</div>
<hr>
<div class="row">
<div class="col-12">
<h4>Menu de navegación</h4>
<a type="button" href="https://getbootstrap.com/docs/5.0/components/navbar/"
class="btn btn-outline-danger rounded">Ir al menu</a>
<hr>
<ul class="nav justify-content-end">
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
</div>
</div>
<hr>
<div class="row">
<div class="col-6">
<h4>Menu vertical agregando Flex-Column</h4>
<ul class="nav flex-column">
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
</div>
</div>
<hr>
<div class="row">
<div class="col-12">
<h4>Pestañas con Menu Desplegable</h4>
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link active" href="#">Active</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" datatoggle="dropdown" href="#">Dropdown</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Link 1</a>
<a class="dropdown-item" href="#">Link 2</a>
<a class="dropdown-item" href="#">Link 3</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
</div>
</div>
<hr>
<div class="row">
<div class="col-12">
<h4>Pastillas</h4>
<ul class="nav nav-pills">
<li class="nav-item">
<a class="nav-link active" href="#">Active</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" datatoggle="dropdown" href="#">Dropdown</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Link 1</a>
<a class="dropdown-item" href="#">Link 2</a>
<a class="dropdown-item" href="#">Link 3</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
</div>
</div>
<hr>
<div class="row">
<div class="col-12">
<h4>Menu de Navegación</h4>
<nav class="navbar navbar-expand-sm bg-light navbar-light">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#">Active</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
</nav>
<hr>
<h1>OTRO MENU</h1>
<nav class="navbar navbar-expand-lg navbar-light bg-warning">
<div class="container-fluid">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
Dropdown
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="#">Action</a></li>
<li><a class="dropdown-item" href="#">Another action</a></li>
<li>
<hr class="dropdown-divider">
</li>
<li><a class="dropdown-item" href="#">Something else here</a></li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
</li>
</ul>
<form class="d-flex">
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success" type="submit">Search</button>
</form>
</div>
</div>
</nav>
</div>
</div>
<hr>
<div class="row">
<div class="col-4">
<h4>Menu de navegación vertical quitando (navbar-expand-sm )</h4>
<nav class="navbar bg-light navbar-light">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#">Active</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
</nav>
</div>
</div>
<hr>
<div class="row">
<div class="col-12">
<h4>Menu con imágen</h4>
<nav class="navbar navbar-expand-sm bg-dark navbar-dark">
<a class="navbar-brand" href="#">
<img class="rounded-circle"
src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQT5yuhKaEBXEeduoWrl1f6ggAFWWp6iHxZhVrHfTyCHg&s"
alt="Logo" style="width:40px;">
</a>
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#">Active</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
</nav>
</div>
</div>
<hr>
<div class="row">
<div class="col-12">
<h4>Formularios</h4>
<a href="https://getbootstrap.com/docs/5.0/forms/overview/" class="btn btn-success">IR a formularios
bootstrap</a>
</div>
</div>
<hr>
<div class="row">
<div class="col-12">
<h4>Carrousel</h4>
<a href=" https://getbootstrap.com/docs/5.0/components/carousel/" class="btn btn-success">IR a Carrousel</a>
</div>
</div>
<hr>
<div class="row">
<div class="col-12">
<h4>Ventana Modal</h4>
<p>Documentación:</p>
<a href="https://getbootstrap.com/docs/5.0/components/modal/" class="btn btn-success">IR a Ventana Modal</a>
<hr>
<h5>Abrir Ventana Modal</h5>
<!-- Button trigger modal -->
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
Desplegar Modal
</button>
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Título de la Ventana</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
AQUI EL CONTENIDO. Textoy/o imágenes.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cerrar</button>
<button type="button" class="btn btn-primary">Guardar cambios</button>
</div>
</div>
</div>
</div>
</div>
</div>
<hr>
<div class="row">
<div class="col-12">
<h4>Tooltip</h4>
<p>El componente Tooltip es un pequeño cuadro emergente que aparece cuando el usuario mueve el
puntero del mouse sobre un elemento</p>
<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-placement="top"
title="Tooltip por encima">Tooltip Desplegandose por encima</button>
<a href="#" data-toggle="tooltip" title="Aquí se visualiza información!">Este es un enlace</a>
<script>$(function () {
$('[data-toggle="tooltip"]').tooltip()
})</script>
</div>
</div>
<div class="row">
<div class="col-12">
<h4>POPOVER</h4>
<button type="button" class="btn btn-primary" data-bs-toggle="popover" title="Popover Header"
data-bs-content="Some content inside the popover">
Toggle popover
</button>
</div>
<script>
var popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'))
var popoverList = popoverTriggerList.map(function (popoverTriggerEl) {
return new bootstrap.Popover(popoverTriggerEl)
})
</script>
</div>
</div>
<hr>
</body>
<script src="bootstrap.bundle.min.js"></script>
</html>
Comentarios
Publicar un comentario