Skip to content

Commit 67c16f0

Browse files
author
Andrey Cheptsov
committed
Add code carousel for interactive snippets and enhance landing page content
1 parent 6af778f commit 67c16f0

File tree

2 files changed

+370
-56
lines changed

2 files changed

+370
-56
lines changed

docs/assets/stylesheets/landing.css

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,8 @@
927927
color: #e37cff;
928928
}
929929

930-
#get-started-code-snippet[data-termynal] {
930+
#get-started-code-snippet[data-termynal],
931+
#get-started-claude-snippet[data-termynal] {
931932
font-size: 14px !important;
932933
}
933934

@@ -1037,6 +1038,73 @@
10371038
width: 600px
10381039
}
10391040

1041+
.code-carousel__slides {
1042+
position: relative;
1043+
display: grid;
1044+
}
1045+
1046+
.code-carousel__slide {
1047+
grid-area: 1 / 1;
1048+
display: none;
1049+
}
1050+
1051+
.code-carousel__slide.active {
1052+
display: block;
1053+
}
1054+
1055+
.code-carousel__slide > [data-termynal],
1056+
.code-carousel__slide[data-termynal] {
1057+
margin: 0 !important;
1058+
}
1059+
1060+
.code-carousel .code-carousel__slide[editor-title] pre {
1061+
margin: 0;
1062+
}
1063+
1064+
.code-carousel .code-carousel__slide[editor-title] pre > code {
1065+
padding-top: 70px;
1066+
}
1067+
1068+
@media screen and (max-width: 44.9375em) {
1069+
.code-carousel {
1070+
margin-left: -0.8rem;
1071+
margin-right: -0.8rem;
1072+
}
1073+
1074+
.code-carousel .code-carousel__slide[editor-title] {
1075+
margin-left: 0 !important;
1076+
margin-right: 0 !important;
1077+
}
1078+
}
1079+
1080+
.code-carousel__dots {
1081+
display: flex;
1082+
justify-content: center;
1083+
gap: 8px;
1084+
margin-top: 12px;
1085+
}
1086+
1087+
.code-carousel__dot {
1088+
width: 10px;
1089+
height: 10px;
1090+
display: block;
1091+
flex: 0 0 auto;
1092+
border-radius: 50%;
1093+
background: transparent;
1094+
border: 0.5px solid #000;
1095+
box-sizing: border-box;
1096+
cursor: pointer;
1097+
}
1098+
1099+
.code-carousel__dot.active {
1100+
border-color: #000;
1101+
background: #000;
1102+
}
1103+
1104+
.code-carousel__dot:hover {
1105+
border-color: #000;
1106+
}
1107+
10401108
.tx-landing [editor-title] pre {
10411109
visibility: hidden;
10421110
}

0 commit comments

Comments
 (0)