Call to Action 2 Bootstrap
Call to action block for use with websites and landing pages.
Dependencies
- Bootstrap 4
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>FWR Bootstrap Blocks - CTA 2</title>
<!-- Styles -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<!-- Custom style -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="cta-2 bg-primary py-5">
<div class="container">
<div class="row py-xl-3">
<div class="col-md-6 text-center text-md-left">
<p class="cta-text text-white mb-0">High quality FWR blocks are carefully crafted to let you create your website quickly and easily</p>
</div>
<div class="col-md-6 text-center mt-5 mt-md-0 d-md-flex align-items-md-center justify-content-md-center">
<button class="btn btn-light mb-3 mx-auto mb-sm-0 mx-sm-2 px-4 d-block d-sm-inline-block">Get Started</button>
<button class="btn btn-outline-light px-4 mx-auto mx-sm-2 d-block d-sm-inline-block">Learn More</button>
</div>
</div>
</div>
</div>
<!-- /.cta-2 -->
<!-- Scripts -->
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
</body>
</html>
// Bootstrap variables and mixins
@import "~bootstrap/scss/functions";
@import "~bootstrap/scss/variables";
@import "~bootstrap/scss/mixins";
// Variables
$primary: #5863f8;
// Custom CSS
.cta-text {
font-size: 1.5rem;
}
.bg-primary {
background-color: $primary !important;
}
.btn-light,
.btn-outline-light {
border-width: 2px;
border-color: $white;
@include hover-focus {
border-color: $white;
}
}
.btn-light {
background-color: $white;
color: $primary;
@include hover-focus {
background-color: transparent;
color: $white;
}
}
.btn-outline-light {
@include hover-focus {
background-color: $white;
color: $primary;
}
}
.cta-text {
font-size: 1.5rem;
}
.bg-primary {
background-color: #5863f8 !important;
}
.btn-light,
.btn-outline-light {
border-width: 2px;
border-color: #fff;
}
.btn-light:hover, .btn-light:focus,
.btn-outline-light:hover,
.btn-outline-light:focus {
border-color: #fff;
}
.btn-light {
background-color: #fff;
color: #5863f8;
}
.btn-light:hover, .btn-light:focus {
background-color: transparent;
color: #fff;
}
.btn-outline-light:hover, .btn-outline-light:focus {
background-color: #fff;
color: #5863f8;
}