Skip to content

Commit f48d6e0

Browse files
style: Change API Reference button to Get Started
1 parent 27bef59 commit f48d6e0

File tree

5 files changed

+33
-5
lines changed

5 files changed

+33
-5
lines changed

src/components/Sidebar/Sidebar.scss

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,31 @@
261261
}
262262
}
263263

264+
.section_header_external_link {
265+
color: white;
266+
margin: 10px;
267+
height: 40px;
268+
background-color: #4caf50;
269+
border-radius: 3px;
270+
display: flex;
271+
justify-content: center;
272+
align-items: center;
273+
font-weight: bold;
274+
font-size: 16px;
275+
line-height: normal;
276+
font-family: Raleway;
277+
278+
&:hover {
279+
color: white;
280+
background-color: #57c55b;
281+
}
282+
283+
&:focus {
284+
color: white;
285+
text-decoration: none;
286+
}
287+
}
288+
264289
.section_contents {
265290
background: #0e69a0;
266291
padding: 16px 14px 16px 50px;

src/components/Sidebar/SidebarSection.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ let SidebarSection = ({ active, children, name, link, icon, style, primaryBackgr
2727

2828
const linkComponent = link.startsWith('/')
2929
? <Link style={style} className={styles.section_header} to={{ pathname: link || '' }}>{iconContent}<span>{name}</span></Link>
30-
: <a style={style} className={styles.section_header} href={link} target="_blank" onClick={() => sendEvent(name)}>{iconContent}<span>{name}</span></a>;
30+
: <a style={style} className={styles.section_header_external_link} href={link} target="_blank" onClick={() => sendEvent(name)}>{iconContent}<span>{name}</span></a>;
3131
return (
3232
<div className={classes.join(' ')}>
3333
{active ?

src/dashboard/DashboardView.react.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ export default class DashboardView extends React.Component {
196196

197197
if (coreSubsections.length > 0) {
198198
appSidebarSections.push({
199-
name: 'API Reference',
200-
icon: 'api-reference',
201-
link: `${b4aSettings.DASHBOARD_PATH}/apidocs/${this.context.currentApp.applicationId}`,
199+
name: 'Get Started!',
200+
icon: 'get-started',
201+
link: `${b4aSettings.DASHBOARD_PATH}/apidocs/${this.context.currentApp.applicationId}`
202202
});
203203
appSidebarSections.push({
204204
name: 'Core',

src/icons/api-reference.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/icons/get-started.svg

Lines changed: 4 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)