Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Commit 79bed83

Browse files
author
dpatanin
committed
link to getStarted page & cleaner menu style
1 parent 8ac36ef commit 79bed83

4 files changed

Lines changed: 14 additions & 15 deletions

File tree

gatsby-config.js

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,11 @@ module.exports = {
1414
phone: '+49 89 614551-0',
1515
email: 'security@iteratec.com',
1616
},
17-
// TODO: replace links with actual pages here and link the correct reference in Menu.js
1817
menuLinks: [
1918
{
2019
name: 'Get Started',
21-
external: true,
22-
// link: '/getStarted',
23-
link: 'https://github.com/secureCodeBox/secureCodeBox-v2-alpha',
24-
},
25-
{
26-
name: 'Docs',
27-
external: true,
28-
// link: '/docs',
29-
link:
30-
'https://github.com/secureCodeBox/secureCodeBox-v2-alpha/blob/master/docs/index.md',
20+
external: false,
21+
link: '/getStarted',
3122
},
3223
{
3324
name: 'Integrations',

src/components/Menu.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,20 @@ const Menu = props => {
88
return (
99
<div id="main-menu" className="main-menu">
1010
<ul>
11-
{menuLinks.map(link => (
11+
{menuLinks.map((link) => (
1212
<li key={link.name}>
1313
{link.external ? (
1414
<a href={link.link} target="_blank" rel="noopener noreferrer">
1515
{link.name}
1616
</a>
1717
) : (
18-
<Link to={link.link}>{link.name}</Link>
18+
<Link activeClassName="active-Link" to={link.link}>
19+
{link.name}
20+
</Link>
1921
)}
2022
</li>
2123
))}
22-
{socialChannels.map(socialChannel => (
24+
{socialChannels.map((socialChannel) => (
2325
<li key={socialChannel.title}>
2426
<a
2527
href={socialChannel.link}

src/scss/components/_header.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
align-items: center;
1111
.container {
1212
max-width: 4060px;
13+
height: inherit;
1314
display: flex;
1415
justify-content: space-between;
1516
align-items: center;

src/scss/components/_main-menu.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
list-style: none;
1313
margin: 0;
1414
padding: 0;
15+
.active-Link {
16+
background: $highlight;
17+
color: #fff;
18+
text-decoration: none;
19+
}
1520
> li {
1621
height: inherit;
1722
margin: 0;
@@ -28,7 +33,7 @@
2833
font-weight: 400;
2934
text-transform: uppercase;
3035
color: inherit;
31-
padding: 10px 14px 10px 14px;
36+
padding: 12px 14px 10px 14px;
3237
text-decoration: none;
3338
&:hover {
3439
background: $highlight;

0 commit comments

Comments
 (0)