Skip to content

Commit 9ab81aa

Browse files
committed
add button
1 parent beaf6c3 commit 9ab81aa

File tree

2 files changed

+48
-5
lines changed

2 files changed

+48
-5
lines changed

docs/docusaurus.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,17 +161,18 @@ module.exports = {
161161
label: "Blogs",
162162
},
163163
{
164-
href: "https://confident-ai.com",
164+
href: "https://app.confident-ai.com",
165165
className: "header-confident-link",
166166
position: "right",
167+
label: 'Try DeepEval Cloud',
167168
},
168169
{
169170
href: "https://discord.gg/a3K9c8GRGt",
170171
className: "header-discord-link",
171172
position: "right",
172173
},
173174
{
174-
href: "https://github.com/mr-gpt/deepeval",
175+
href: "https://github.com/confident-ai/deepeval",
175176
position: "right",
176177
className: "header-github-link",
177178
},

docs/src/css/custom.scss

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,43 @@ html[data-theme="dark"] .header-github-link:before {
116116
margin: 40px auto 10px auto;
117117
}
118118

119+
html[data-theme="dark"] .header-confident-link {
120+
background-color: white;
121+
color: black;
122+
box-shadow: -4px 4px 0 #6d28d9;
123+
}
124+
125+
.header-confident-link {
126+
display: flex;
127+
align-items: center;
128+
padding: 6px 14px;
129+
border-radius: 6px;
130+
font-size: 15px;
131+
column-gap: 0.1rem;
132+
border: 1px solid black;
133+
box-shadow: -4px 4px 0 black;
134+
transition: all 0.2s ease-in-out;
135+
}
136+
137+
html[data-theme="dark"] .header-confident-link:hover {
138+
box-shadow: 0px 0px 0 transparent;
139+
transform: translateX(-4px) translateY(4px);
140+
}
141+
119142
.header-confident-link:hover {
120-
opacity: 0.6;
143+
box-shadow: 0px 0px 0 transparent;
144+
transform: translateX(-4px) translateY(4px);
121145
}
122146

123147
.header-confident-link:before {
124148
content: "";
125-
width: 28px;
126-
height: 28px;
149+
width: 24px;
150+
height: 24px;
127151
display: flex;
152+
align-items: center;
128153
background: url("/icons/logo.svg");
129154
background-size: cover;
155+
margin-right: 0.5rem;
130156
}
131157

132158
.header-discord-link:hover {
@@ -179,8 +205,24 @@ html[data-theme="dark"] #rag-evaluation {
179205
#rag-evaluation {
180206
width: 60%;
181207
}
208+
209+
.header-confident-link {
210+
font-size: 13px;
211+
padding: 4px 10px;
212+
}
213+
214+
.header-confident-link::before {
215+
display: none;
216+
}
182217
}
183218

219+
@media (max-width: 1130px) {
220+
.header-confident-link {
221+
display: none;
222+
}
223+
}
224+
225+
184226
@media (max-width: 600px) {
185227
#confident-workflow {
186228
width: 100% !important;

0 commit comments

Comments
 (0)