Adicionar um "carousel" a página HTML
2 participantes
Fórum dos Fóruns :: Ajuda e atendimento ao utilizador :: Questões sobre códigos :: Questões resolvidas sobre HTML e BBCode
Página 1 de 1 • Compartilhe
Adicionar um "carousel" a página HTML
Detalhes da questão
Endereço do fórum: https://radiocandy.forumeiros.com/
Versão do fórum: ModernBB
Descrição
Eu gostaria de por isso no meu site
Eu gostaria de por isso para clicar ali no canto para foliar e eu gostei muito e gostaria de por no meu site só que eu não consigo.... E eu também gostaria de saber de como mudar a cor verde para uns Rosas.
Eu peguei isso da RCC
- Aqui tem o HTML:
- Código:
<head><script data-ad-client="ca-pub-3333094709073585" async="" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="shortcut icon" type="image/x-icon" href="https://i.servimg.com/u/f79/20/32/07/27/emblem10.png">
<link rel="stylesheet" id="brc-styles-css" href="https://en.instagram-brand.com/wp-content/themes/ig-branding/prj-ig-branding/assets/styles/main-10d4148d53.css?ver=5.5.1.1" type="text/css" media="all">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<!-- FontAwesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<title>Rádio Candy</title>
<style type="text/css">
main { background: linear-gradient(to bottom,#3f5d1f,#3f5d1f); }
section { padding-top:20px; padding-bottom:20px; }
h1, h2, h3, h4, h5, h6 { font-weight: 300; color: #fff; }
.jumbotron {
margin-bottom: 0;
border-radius: 0;
}
.jumbotron-heading {
font-family:'AvenyT','sans-serif';
font-size: 50px;
}
.content {
background-color: #4a6b26;
box-shadow: 0px -2px 3px rgba(0, 0, 0, 0.37);
color: #fff;
position: relative;
}
.card {
background-color: rgba(0,0,0,0.3);
margin-left: 10px;
padding: 0;
}
.background {
background-image: url(https://i.imgur.com/GRjZC18.png);
background-size: cover;
height: 200px;
}
footer {
box-shadow: 0px -2px 3px rgba(0, 0, 0, 0.37);
background-color: #3f5d1f;
color: #FFF;
overflow: hidden;
padding: 24px;
}
@media (max-width: 775px) {
.d-flex { display: block!important; }
.card { margin-left: 0; margin-top: 10px; max-width: 100%!important;}
.military { display: none; }
}
</style>
</head>
<body>
<main role="main">
<section class="content jumbotron text-center">
<div class="container">
<img src="https://i.servimg.com/u/f79/20/32/07/27/candy_10.jpg">
<h1 class="jumbotron-heading">Rádio Candy Hotel</h1>
<p class="lead text-light">A Rádio é uma Fã Site.</p>
<p>
<a href="https://radiocandy.forumeiros.com/h1-radio" class="btn btn-outline-light btn-lg my-2">Início</a>
<a href="https://radiocandy.forumeiros.com/h2-equipe" class="btn btn-outline-light btn-lg my-2">Equipe</a>
<a href="https://candyhotel.com.br/index" class="btn btn-outline-light btn-lg my-2">Quem nós Somos (Manunteção)</a>
<a href="https://candyhotel.com.br/index" class="btn btn-outline-light btn-lg my-2">Hotel</a>
</p>
</div>
</section>
<section class="overview text-center" style="color: #fff; position: relative;">
<div class="container">
<h1>Rádio
<iframe src="https://player.voxtreaming.com.br/player-web/6682" frameborder="0" width="100%" height="465"></iframe>
</h1>
<div class="row">
<div class="col-md-4">
<div class="icon"></div>
<h3>Anúncios</h3>
<h6>Vagas para Rádio!</h6>
</div>
<div class="col-md-4">
<div class="icon"><i class="far fa-question-circle"></i></div>
<h3></h3>
<h6 class="font-italic">SEJA UM DE NÓS </h6>
</div>
<div class="col-md-4">
<div class="icon"></div>
<h3></h3>
<h6></h6>
</div>
</div>
</div>
</section>
<section class="content">
<div class="container">
<h1 class="text-center">Equipe Superior</h1>
<div class="d-flex justify-content-center text-justify mt-3">
<div class="card col-md-4">
<div class="card-img-top background">
<img src="https://i.servimg.com/u/f79/20/32/07/27/kiss_e10.gif">
</div>
<div class="card-body">
<h5 class="card-title"><strong><span style=arial="" black";="" font-size:="" 24px;"=""><span style="color: rgb(238, 238, 238);">Joseplay</span></span></strong></h5>
<p class="card-text">CEO Rádio</p>
<a href="https://www.habblet.city/profile/Joseplay" class="btn btn-light">Ver perfil do Usuário</a>
</div>
</div>
<div class="card col-md-4">
<div class="card-img-top background">
<img src="https://i.servimg.com/u/f79/20/32/07/27/kiss_e10.gif" class="avatar">
</div>
<div class="card-body">
<h5 class="card-title"><strong><span style="" arial="" black";="" font-size:="" 24px;"=""><span style="color: rgb(238, 238, 238);">Kisss</span></span></span></strong></h5>
<p class="card-text">Diretora-Geral</p>
<a href="https://www.habblet.city/profile/" class="btn btn-light">Ver perfil do Usuário</a>
</div>
</div>
</div>
</div>
</section>
</main>
<footer class="d-flex align-items-center">
<div class="copyrights">
Rádio Candy Hotel. Todos os direitos reservados.<br> Desenvolvido por Joseplay
Hospedado por <a href="https://www.forumeiros.com" target="_blank">forumeiros.com</a>.
</div>
</footer>
</body>
@pedxz @RAFAELS.
Última edição por Rike100 em 20.03.21 21:28, editado 1 vez(es)
Re: Adicionar um "carousel" a página HTML
Up Ajuda aqui alguém Plis!
Re: Adicionar um "carousel" a página HTML
Olá @Rike100,
Deu poucos detalhes, mas imagino que o carousel seja para adicionar na sua página HTML, altere para:
Adicionei a página o seguinte:
Para adicionar um novo slide, basta duplicar isto:
Atenciosamente,
pedxz.
Deu poucos detalhes, mas imagino que o carousel seja para adicionar na sua página HTML, altere para:
- Código:
<!doctype html>
<html lang="pt">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="https://i.servimg.com/u/f79/20/32/07/27/emblem10.png" sizes="16x16" type="image/png" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous" />
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous" />
<title>Rádio Candy</title>
<style>
main { background: linear-gradient(to bottom,#3f5d1f,#3f5d1f); }
section { padding-top:20px; padding-bottom:20px; }
h1, h2, h3, h4, h5, h6 { font-weight: 300; color: #fff; }
.jumbotron {
margin-bottom: 0;
border-radius: 0;
}
.jumbotron-heading {
font-family:'AvenyT','sans-serif';
font-size: 50px;
}
.content {
background-color: #4a6b26;
box-shadow: 0px -2px 3px rgba(0, 0, 0, 0.37);
color: #fff;
position: relative;
}
.card {
background-color: rgba(0,0,0,0.3);
margin-left: 10px;
padding: 0;
}
.background {
background-image: url(https://i.imgur.com/GRjZC18.png);
background-size: cover;
height: 200px;
}
footer {
box-shadow: 0px -2px 3px rgba(0, 0, 0, 0.37);
background-color: #3f5d1f;
color: #FFF;
overflow: hidden;
padding: 24px;
}
@media (max-width: 775px) {
.d-flex { display: block!important; }
.card { margin-left: 0; margin-top: 10px; max-width: 100%!important;}
.military { display: none; }
}
.carousel-item img {
height: 300px;
border-radius: .2rem;
object-fit: cover;
object-position: center;
}
.carousel-inner {
background-color: rgba(255, 255, 255, 0.07);
}
.carousel-caption {
position: absolute;
bottom: 0;
width: 100%;
background-color: rgba(0, 0, 0, 0.2);
left: 0;
}
.carousel-dark .carousel-caption {
color: #fff;
text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}
.carousel-indicators {
display: none;
}
</style>
</head>
<body>
<main role="main">
<section class="content jumbotron text-center">
<div class="container">
<img src="https://i.servimg.com/u/f79/20/32/07/27/candy_10.jpg" loading="lazy" alt="Rádio Candy Hotel" width="314" height="315" />
<h1 class="jumbotron-heading">Rádio Candy Hotel</h1>
<p class="lead text-light">A Rádio é uma Fã Site.</p>
<p>
<a href="https://radiocandy.forumeiros.com/h1-radio" class="btn btn-outline-light btn-lg my-2">Início</a>
<a href="https://radiocandy.forumeiros.com/h2-equipe" class="btn btn-outline-light btn-lg my-2">Equipe</a>
<a href="https://candyhotel.com.br/index" class="btn btn-outline-light btn-lg my-2">Quem nós Somos (Manunteção)</a>
<a href="https://candyhotel.com.br/index" class="btn btn-outline-light btn-lg my-2">Hotel</a>
</p>
</div>
</section>
<section>
<div class="container">
<h3>Slider</h3>
<div id="carouselExampleDark" class="carousel carousel-dark slide" data-bs-ride="carousel">
<div class="carousel-indicators">
<button type="button" data-bs-target="#carouselExampleDark" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
<button type="button" data-bs-target="#carouselExampleDark" data-bs-slide-to="1" aria-label="Slide 2"></button>
<button type="button" data-bs-target="#carouselExampleDark" data-bs-slide-to="2" aria-label="Slide 3"></button>
</div>
<div class="carousel-inner">
<div class="carousel-item active" data-bs-interval="10000">
<img src="https://i.imgur.com/IzPX6Yo.png" class="d-block w-100" alt="..." />
<div class="carousel-caption d-none d-md-block">
<h5>First slide label</h5>
<p>Some representative placeholder content for the first slide.</p>
</div>
</div>
<div class="carousel-item" data-bs-interval="2000">
<img src="https://i.imgur.com/rds2EjH.png" class="d-block w-100" alt="..." />
<div class="carousel-caption d-none d-md-block">
<h5>Second slide label</h5>
<p>Some representative placeholder content for the second slide.</p>
</div>
</div>
<div class="carousel-item">
<img src="https://i.servimg.com/u/f79/20/32/07/27/candy_10.jpg" class="d-block w-100" alt="..." />
<div class="carousel-caption d-none d-md-block">
<h5>Third slide label</h5>
<p>Some representative placeholder content for the third slide.</p>
</div>
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleDark" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleDark" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
</div>
</section>
<section class="overview text-center" style="color: #fff; position: relative;">
<div class="container">
<h1>Rádio
<iframe src="https://player.voxtreaming.com.br/player-web/6682" frameborder="0" width="100%" height="465"></iframe>
</h1>
<div class="row">
<div class="col-md-4">
<div class="icon"></div>
<h3>Anúncios</h3>
<h6>Vagas para Rádio!</h6>
</div>
<div class="col-md-4">
<div class="icon"><i class="far fa-question-circle"></i></div>
<h3></h3>
<h6 class="font-italic">SEJA UM DE NÓS </h6>
</div>
<div class="col-md-4">
<div class="icon"></div>
<h3></h3>
<h6></h6>
</div>
</div>
</div>
</section>
<section class="content">
<div class="container">
<h1 class="text-center">Equipe Superior</h1>
<div class="d-flex justify-content-center text-justify mt-3">
<div class="card col-md-4">
<div class="card-img-top background">
<img src="https://i.servimg.com/u/f79/20/32/07/27/kiss_e10.gif" class="avatar" loading="lazy" alt="Avatar" />
</div>
<div class="card-body">
<h5 class="card-title"><strong><span style="color: rgb(238, 238, 238);">Joseplay</span></strong></h5>
<p class="card-text">CEO Rádio</p>
<a href="https://www.habblet.city/profile/Joseplay" class="btn btn-light">Ver perfil do Usuário</a>
</div>
</div>
<div class="card col-md-4">
<div class="card-img-top background">
<img src="https://i.servimg.com/u/f79/20/32/07/27/kiss_e10.gif" class="avatar" loading="lazy" alt="Avatar" />
</div>
<div class="card-body">
<h5 class="card-title"><strong><span style="color: rgb(238, 238, 238);">Kisss</span></strong></h5>
<p class="card-text">Diretora-Geral</p>
<a href="https://www.habblet.city/profile/" class="btn btn-light">Ver perfil do Usuário</a>
</div>
</div>
</div>
</div>
</section>
</main>
<footer class="d-flex align-items-center">
<div class="copyrights">
Rádio Candy Hotel. Todos os direitos reservados.<br> Desenvolvido por Joseplay
Hospedado por <a href="https://www.forumeiros.com" target="_blank">forumeiros.com</a>.
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.1/dist/umd/popper.min.js" integrity="sha384-SR1sx49pcuLnqZUnnPwx6FCym0wLsk5JZuNx2bPPENzswTNFaQU1RDvt3wT4gWFG" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/js/bootstrap.min.js" integrity="sha384-j0CNLUeiqtyaRmlzUHCPZ+Gy5fQu0dQ6eZ/xAww941Ai1SxSY+0EQqNXNE6DZiVc" crossorigin="anonymous"></script>
</body>
</html>
Adicionei a página o seguinte:
- Código:
<section>
<div class="container">
<h3>Slider</h3>
<div id="carouselExampleDark" class="carousel carousel-dark slide" data-bs-ride="carousel">
<div class="carousel-indicators">
<button type="button" data-bs-target="#carouselExampleDark" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
<button type="button" data-bs-target="#carouselExampleDark" data-bs-slide-to="1" aria-label="Slide 2"></button>
<button type="button" data-bs-target="#carouselExampleDark" data-bs-slide-to="2" aria-label="Slide 3"></button>
</div>
<div class="carousel-inner">
<div class="carousel-item active" data-bs-interval="10000">
<img src="https://i.imgur.com/IzPX6Yo.png" class="d-block w-100" alt="..." />
<div class="carousel-caption d-none d-md-block">
<h5>First slide label</h5>
<p>Some representative placeholder content for the first slide.</p>
</div>
</div>
<div class="carousel-item" data-bs-interval="2000">
<img src="https://i.imgur.com/rds2EjH.png" class="d-block w-100" alt="..." />
<div class="carousel-caption d-none d-md-block">
<h5>Second slide label</h5>
<p>Some representative placeholder content for the second slide.</p>
</div>
</div>
<div class="carousel-item">
<img src="https://i.servimg.com/u/f79/20/32/07/27/candy_10.jpg" class="d-block w-100" alt="..." />
<div class="carousel-caption d-none d-md-block">
<h5>Third slide label</h5>
<p>Some representative placeholder content for the third slide.</p>
</div>
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleDark" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleDark" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
</div>
</section>
Para adicionar um novo slide, basta duplicar isto:
- Código:
<div class="carousel-item" data-bs-interval="10000">
<img src="..." class="d-block w-100" alt="...">
<div class="carousel-caption d-none d-md-block">
<h5>First slide label</h5>
<p>Some representative placeholder content for the first slide.</p>
</div>
</div>
Atenciosamente,
pedxz.
tikky- Admineiro
- Membro desde : 13/01/2017
Mensagens : 7951
Pontos : 9200
Re: Adicionar um "carousel" a página HTML
Tópico resolvidoTópico arquivado por inatividade por parte do autor, marcado como resolvido por ter solução apropriada à questão. |
tikky- Admineiro
- Membro desde : 13/01/2017
Mensagens : 7951
Pontos : 9200
Tópicos semelhantes
» Adicionar favicon a uma página HTML
» Adicionar imagens em uma página HTML
» Adicionar fundo na pagina html
» Como adicionar página HTML?
» Adicionar texto em página HTML
» Adicionar imagens em uma página HTML
» Adicionar fundo na pagina html
» Como adicionar página HTML?
» Adicionar texto em página HTML
Fórum dos Fóruns :: Ajuda e atendimento ao utilizador :: Questões sobre códigos :: Questões resolvidas sobre HTML e BBCode
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos