Skip to content

Commit

Permalink
feat: trust hub (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliwenwenwen authored Nov 19, 2024
1 parent b0d57aa commit 7aac882
Show file tree
Hide file tree
Showing 8 changed files with 226 additions and 9 deletions.
9 changes: 6 additions & 3 deletions pingcap-jp/bootstrap/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@
'bg-black-dark' => 'Black(#000)',
'bg-black-gradient' => 'Black Gradient',
'bg-violet' => 'Violet',
'bg-blue' => 'Blue',
'bg-red' => 'Red',
'bg-green' => 'Green',
'bg-blue-dark' => 'Blue',
'bg-blue' => 'Blue(old)',
'bg-gray' => 'Gray',
'bg-gradient' => 'Gradient',
'bg-color-gradient' => 'Color Gradient',
Expand All @@ -111,7 +114,7 @@
'case-study' => ['block-bg-none'],
'columns' => ['block-bg-none', 'bg-white', 'bg-black', 'bg-black-dark', 'bg-black-gradient', 'bg-blue', 'bg-gray', 'block-bg-image', 'bg-gradient', 'bg-color-gradient'],
'community-activities' => ['block-bg-none'],
'cta' => ['block-bg-none', 'bg-black', 'bg-black-dark', 'bg-violet', 'bg-gray', 'block-bg-image'],
'cta' => ['block-bg-none', 'bg-black', 'bg-black-dark', 'bg-violet', 'bg-red', 'bg-blue-dark', 'bg-green','bg-gray', 'block-bg-image'],
'icon-grid' => ['block-bg-none', 'bg-blue', 'bg-black', 'bg-black-dark', 'bg-gradient'],
'leadership' => ['block-bg-none'],
'logos' => ['block-bg-none', 'bg-black', 'bg-black-dark'],
Expand All @@ -123,7 +126,7 @@
'stats' => ['block-bg-none'],
'table' => ['bg-blue'],
'tabs' => ['block-bg-none', 'bg-blue'],
'testimonials' => ['block-bg-none', 'bg-blue']
'testimonials' => ['block-bg-none', 'bg-blue', 'block-bg-image']
]);

/**
Expand Down
22 changes: 21 additions & 1 deletion pingcap-jp/css/components/ui/accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
&__section-title-text {
font: normal normal var(--font-weight-semibold) 1.8rem / 1.72 var(--font-poppins);
color: var(--color-dark);

&:focus,
&:hover {
color: var(--anchor-link-hover-color);
Expand Down Expand Up @@ -116,3 +116,23 @@
padding-bottom: 1.2rem;
}
}
.bg-black-dark {
.accordion__section {
border-color: #28333e;
}
.accordion__plus-icon {
background-color: transparent;
}
.accordion__section-title-text {
font-size: 22px;
font-weight: 500;
line-height: 29px;
color: #fff;
}
p,ul {
font-size: 16px;
font-weight: 300;
line-height: 26px;
color: #a2adb9;
}
}
17 changes: 16 additions & 1 deletion pingcap-jp/css/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ body {
left: 0;
right: 0;
height: var(--body-top-offset);
background-color: var(--color-black);
background-color: var(--col);
transform: translateY(-100%);
}

Expand Down Expand Up @@ -374,6 +374,16 @@ input#firstname-125bf70d-1eba-4cf8-bb1d-2e4a422a875d[type="text"] {
height: 4.8rem;
}

.is-40x40 {
width: 40px;
height: 40px;
}

.is-50x50 {
width: 50px;
height: 50px;
}

.is-80x80 {
width: 8rem;
height: 8rem;
Expand All @@ -384,6 +394,11 @@ input#firstname-125bf70d-1eba-4cf8-bb1d-2e4a422a875d[type="text"] {
height: 12.8rem;
}

.is-150x150 {
width: 150px;
height: 150px;
}

.is-180x120 {
width: 18rem;
height: 12rem;
Expand Down
1 change: 1 addition & 0 deletions pingcap-jp/css/master.scss
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,4 @@ Templates
@import "templates/summary";
@import "templates/product";
@import "templates/ai";
@import "templates/trust";
27 changes: 24 additions & 3 deletions pingcap-jp/css/scaffold/backgrounds.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
.bg-black-dark,
.bg-black-gradient,
.bg-violet,
.bg-red,
.bg-green,
.bg-blue,
.bg-blue-dark,
.bg-dark,
.bg-gradient,
.block-bg-image {
Expand Down Expand Up @@ -69,7 +72,10 @@
.bg-black,
.bg-black-dark,
.bg-black-gradient,
.bg-violet {
.bg-violet,
.bg-red,
.bg-blue-dark,
.bg-green {
--h1-color: var(--color-white);
--h2-color: var(--color-white);
--h3-color: var(--color-white);
Expand Down Expand Up @@ -146,7 +152,24 @@
background-color: #3c174c;
}

.bg-red {
background-color: #630D09;
}

.bg-green {
background-color: #093434;
}

.bg-blue-dark {
background-color: #0d3152;
}

.bg-blue {
background-color: var(--color-blue-dark);
}

.bg-blue,
.bg-blue-dark {
--h1-color: var(--color-white);
--h2-color: var(--color-white);
--h3-color: var(--color-white);
Expand Down Expand Up @@ -180,8 +203,6 @@
--tab-nav-button-secondary-hover-text-decoration: underline;

--color-blockquote-highlight: var(--color-white);

background-color: var(--color-blue-dark);
}

.bg-gray {
Expand Down
152 changes: 152 additions & 0 deletions pingcap-jp/css/templates/trust.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
.tmpl-trust {
&__commitment {
.cards {
display: grid;
gap: 6.4rem;
grid-template-columns: repeat(1, 1fr);
margin-bottom: 40px;
@include media-min($medium) {
grid-template-columns: repeat(2, 1fr);
}
@include media-min($large) {
grid-template-columns: repeat(3, 1fr);
gap: 40px;
}
}
.card {
position: relative;
flex: 1;
padding: 54px 32px 80px 32px;
display: flex;
flex-direction: column;
align-items: flex-start;
text-decoration: none;
cursor: pointer;
transition: all var(--default-transition-params);

&__content {
flex: 1;
margin-bottom: 40px;
}

&__title {
font-size: 24px;
font-weight: 700;
line-height: 30px;
margin-bottom: 1.6rem;
color: #fff;
display: block;
}

&__desc {
font-weight: 300;
color: #fff;
}

&:nth-of-type(1) {
border: 1px solid #1aa8a8;
&::after {
content: "";
background: url(https://static.pingcap.com/files/2024/11/06235730/privacy.svg)
no-repeat center center / contain;
position: absolute;
right: 4px;
bottom: -50px;
width: 113px;
height: 175px;
}
}
&:nth-of-type(2) {
border: 1px solid #9e4ec4;
&::after {
content: "";
background: url(https://static.pingcap.com/files/2024/11/06235731/security.svg)
no-repeat center center / contain;
position: absolute;
right: 4px;
bottom: -50px;
width: 113px;
height: 175px;
}
}
&:nth-of-type(3) {
border: 1px solid #2c80ce;
&::after {
content: "";
background: url(https://static.pingcap.com/files/2024/11/06235728/compliance.svg)
no-repeat center center / contain;
position: absolute;
right: 4px;
bottom: -50px;
width: 113px;
height: 175px;
}
}

img {
position: absolute;
right: 0;
bottom: -50px;
z-index: 1;
}

&:hover {
transform: translateY(-12px);
.button-link {
.button__arrow {
background-color: #fff;
&::before {
border-color: #000;
transform: rotate(0);
}
&::after {
top: 0;
border-color: #000;
transform: rotate(45deg);
}
}
}
}
}
}
&__testimonials {
background-color: #000!important;
}
&__compliance {
.cards {
display: grid;
gap: 18px 28px;
grid-template-columns: repeat(1, 1fr);
margin-bottom: 40px;
@include media-min($medium) {
grid-template-columns: repeat(2, 1fr);
}
@include media-min($large) {
grid-template-columns: repeat(3, 1fr);
}
}
.card {
padding: 40px 36px;
border: 1px solid #28333E;
&__content {
h5 {
font-size: 24px;
font-weight: 700;
line-height: 29px;
margin: 24px 0;
}
p,
ul {
font-size: 16px;
font-weight: 300;
line-height: 26px;
text-align: left;
color: #a2adb9;
}
ul{
margin-top: 0;
}
}
}
}
}
4 changes: 3 additions & 1 deletion pingcap-jp/css/wysiwyg.scss
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@
gap: var(--grid-column-gutter);
@include media-min($medium) {
flex-direction: row;
justify-content: center;
}
> div {
flex: 1;
Expand All @@ -291,6 +290,9 @@
.flex-auto {
flex: 0 1 auto;
}
&.justify-center {
justify-content: center;
}
&.justify-between {
justify-content: space-between;
}
Expand Down
3 changes: 3 additions & 0 deletions pingcap-jp/grav-blocks/icon-grid/block_fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,11 @@
'id' => '',
),
'choices' => array(
'is-40x40' => '40 x 40',
'is-50x50' => '50 x 50',
'is-80x80' => '80 x 80',
'is-128x128' => '128 x 128',
'is-150x150' => '150 x 150',
'is-180x120' => '180 x 120',
),
'default_value' => 'is-80x80',
Expand Down

0 comments on commit 7aac882

Please sign in to comment.