css实现订阅计划套餐选择页面代码

代码语言:html

所属分类:布局界面

代码描述:css实现订阅计划套餐选择页面代码

代码标签: css 订阅 计划 套餐 选择 页面 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">

  <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap" rel="stylesheet">
  <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/reset.min.css">
  <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.5.6.1.css">
  <style>
      html {
  font-size: 10px;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}
a:hover {
  text-decoration: underline;
}

small {
  font-size: 1.4rem;
  font-weight: 400;
}

body {
  width: 100vw;
  height: 100vh;
  background-color: #edeef3;
  overflow: hidden;
  color: #6a7480;
  font-size: 1.6rem;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  line-height: 1.5;
  position: relative;
  z-index: -99;
}

.center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.center .main {
  width: 1140px;
  height: 800px;
  border: 6px solid #22293b;
  border-radius: 5rem;
  padding: 4rem 4.5rem;
  background-image: linear-gradient(90deg, #f8f9fd, #edeef3);
}

.text-black {
  font-weight: 600;
  color: #10121f;
}

.text-white {
  font-weight: 600;
  color: #fff;
}

.text-purple {
  color: #312fea;
  font-weight: 600;
}

.button {
  cursor: pointer;
  border: 0;
  outline: 0;
  user-select: none;
  backgrund: 0 0;
  font-size: 1.8rem;
  text-align: center;
  display: inline-block;
  vertical-align: middle;
  padding: 2rem 4.2rem;
  border-radius: 15px;
}
.button i {
  font-size: 1.2rem;
  margin-left: -1.5rem;
  opacity: 0;
  transition: all 300ms ease-out;
}
.button:hover i {
  opacity: 1;
  margin-left: 0.5rem;
}

.button-primary {
  background-color: #312fea;
  color: #fff;
  text-transform: capitalize;
  font-weight: 600;
  font-family: inherit;
}

.shape {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}
.shape::before {
  content: "";
  position: absolute;
  width: 75%;
  height: 75%;
  border-radius: 50%;
}
.shape::after {
  content: "";
  position: absolute;
  width: 65%;
  height: 65%;
}

.shape-green {
  background-color: #16cb88;
}
.shape-green::before {
  background-color: #2ce8a2;
  right: -25%;
  top: -25%;
}
.shape-green::after {
  background-color: #2ce8a2;
  left: -25%;
  bottom: -25%;
}

.shape-orange {
  background-color: #fe875c;
}
.shape-orange::before {
  background-color: #feac8f;
  right: -25%;
  top: -25%;
}
.shape-orange::after {
  background-color: #feac8f;
  left: -25%;
  bottom: -25%;
}

.shape-blue {
  background-color: #3a36eb;
}
.shape-blue::before {
  background-color: #6764f0;
  right: -25%;
  top: -25%;
}
.shape-blue::after {
  background-color: #6764f0;
  left: -25%;
  bottom: -25%;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.nav__logo {
  color: #10121f;
  font-weight: 700;
  font-size: 1.8rem;
}
.nav__menu ul {
  display: flex;
}
.nav__menu ul > li:not(:last-child) {
  margin-right: 4rem;
}

.heading {
  margin: 2.5rem auto;
  text-align: center;
  color: #10121f;
}
.heading h1 {
  font-size: 4.2rem;
  font-weight: 600;
  text-transform: capitalize;
}
.heading p {
  display: inline-block;
  max-width: 35rem;
  color: #6e7386;
  font-weight: 400;
  margin-top: 1rem;
  line-height: 1.65;
  font-size: 1.8rem;
  margin-bottom: 5.5rem;
}

.holder {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.holder .plan__options {
  min-width: 30rem;
  padding: 2.5rem;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  text-align: left;
}
.holder .plan__options .head {
  display: flex;
  align-items: center;
}
.holder .plan__options .head .content {
  margin-left: 1.5rem;
}
.holder .plan__options .head .content h2 {
  font-weight: 800;
  font-size: 2rem;
}
.holder .plan__options .head .content h5 {
  font-weight: 700;
  font-size: 2rem;
}
.holder .plan__options .head .content i {
  font-size: 1.2rem;
  position: relative;
  bottom: 5px;
  margin-right: 2px;
}
.holder .plan__options .line-divider {
  width: 100%;
  height: 1px;
  background-color: #eae9ee;
  margin: 2.5rem 0;
}
.holder .plan__options ul {
  display: flex;
  flex-direction: column;
}
.holder .plan__options ul li {
  margin: 1rem;
}
.holder .plan__options ul li i {
  margin-right: 1.5rem;
  font-size: 1.4rem;
  color: #6b747d;
}
.holder .plan__options .button {
  margin-top: 2rem;
  width: 100%;
}

.plan-left, .plan-right {
  transform: scale(1.15);
}

.plan-middle {
  transform: scale(1.3);
  position: relative;
  z-index: 5;
  background-color: #1a1c29 !important;
  border: 4px solid #fff;
  position: relative;
}
.plan-middle span {
  color: #fff;
}
.plan-middle .line-divider {
  height: 1px;
  background-color: #272936 !important;
}
.plan-middle::before {
  content: "popular";
  position: absolute;
  background-color: #3735fa;
  color: #f8f4ff;
  top: 1.5rem;
  right: 2.2rem;
  border-radius: 25px;
  padding: 0.4rem 1.2rem;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
}
.plan-middle .head i {
  color: #b7b8bc.........完整代码请登录后点击上方下载按钮下载查看

网友评论0