Skip to content

Commit a85c52c

Browse files
Cleanup2025 2 (#37)
* cleanup2025-heading * more cleaning
1 parent 5347061 commit a85c52c

File tree

4 files changed

+5
-124
lines changed

4 files changed

+5
-124
lines changed

src/components/desktopcontainer.js

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ import React, { useState } from 'react';
1919
import { Link, useLocation } from 'react-router-dom';
2020
import Heading from './heading';
2121
import {
22-
Button,
23-
Container,
24-
Menu,
2522
Segment,
2623
Visibility,
2724
} from 'semantic-ui-react';
@@ -51,43 +48,6 @@ const DesktopContainer = ({ children }) => {
5148
}}
5249
vertical
5350
>
54-
<Menu
55-
fixed={fixed ? 'top' : null}
56-
inverted
57-
pointing={!fixed}
58-
secondary={!fixed}
59-
size="large"
60-
>
61-
<Container>
62-
<Menu.Item active={location.hash === ''}>
63-
<Link to="/">Home</Link>
64-
</Menu.Item>
65-
<Menu.Item active={location.hash === '#what'}>
66-
<Link to="/#what">About</Link>
67-
</Menu.Item>
68-
<Menu.Item active={location.hash === '#learnmore'}>
69-
<Link to="/#learnmore">Learn more</Link>
70-
</Menu.Item>
71-
<Menu.Item active={location.hash === '#who'}>
72-
<Link to="/#who">Who uses MAL?</Link>
73-
</Menu.Item>
74-
<Menu.Item active={location.hash === '#resources'}>
75-
<Link to="/#resources">Resources</Link>
76-
</Menu.Item>
77-
<Menu.Item>
78-
<Button
79-
as="a"
80-
href="https://github.com/mal-lang/exampleLang/blob/master/README.md"
81-
target="_blank"
82-
primary
83-
size="large"
84-
>
85-
Get Started
86-
</Button>
87-
</Menu.Item>
88-
</Container>
89-
</Menu>
90-
<Heading />
9151
</Segment>
9252
</Visibility>
9353

src/components/heading.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,12 @@ const HeaderContent = () => (
2525
<img
2626
alt="MAL logo"
2727
style={{
28-
width: '2em',
29-
height: '2em',
28+
width: '4em',
29+
height: '4em',
3030
marginRight: '0.3em',
3131
}}
3232
src="/helmet.svg"
3333
/>
34-
<p style={{ marginTop: '0.5em' }}>M A L</p>
3534
</div>
3635
);
3736
const Heading = ({ mobile }) => (
@@ -49,7 +48,7 @@ const Heading = ({ mobile }) => (
4948
/>
5049
<Header
5150
as="h2"
52-
content="Meta Attack Language"
51+
content="Meta Attack Language - M A L"
5352
inverted
5453
style={{
5554
fontSize: mobile ? '1.5em' : '1.7em',
@@ -59,15 +58,15 @@ const Heading = ({ mobile }) => (
5958
/>
6059
<Header
6160
as="h3"
62-
content="The open source platform for creation of cyber threat modeling systems"
61+
content="The open source platform cyber threat modeling and attack simulations"
6362
inverted
6463
style={{
6564
fontStyle: 'italic',
6665
}}
6766
/>
6867
<Button
6968
as="a"
70-
href="https://github.com/mal-lang/exampleLang/blob/master/README.md"
69+
href="https://github.com/mal-lang"
7170
target="_blank"
7271
primary
7372
size="huge"

src/components/layout.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import React from 'react';
1818
import ResponsiveContainer from './responsivecontainer';
1919
import {
20-
Button,
2120
Container,
2221
Divider,
2322
Icon,
@@ -33,26 +32,6 @@ const referenceButtonStyle = {
3332
const Layout = () => (
3433
<ResponsiveContainer>
3534
<Segment style={{ paddingBottom: '8em' }} textAlign="center" basic>
36-
<Divider id="resources" horizontal>
37-
Resources
38-
</Divider>
39-
<Container text>
40-
<List link>
41-
<List.Item>
42-
<Button
43-
as="a"
44-
style={referenceButtonStyle}
45-
href="https://github.com/mal-lang"
46-
target="_blank"
47-
primary
48-
size="huge"
49-
>
50-
Get Started!
51-
<Icon name="right arrow" />
52-
</Button>
53-
</List.Item>
54-
</List>
55-
</Container>
5635
</Segment>
5736
<Segment style={{ paddingBottom: '8em' }} textAlign="center" basic>
5837
<Divider id="acknowledgements" horizontal>

src/components/mobilecontainer.js

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import React, { useState } from 'react';
1919
import Heading from './heading';
2020
import { Link, useLocation } from 'react-router-dom';
2121
import {
22-
Button,
2322
Container,
2423
Icon,
2524
Menu,
@@ -50,62 +49,6 @@ const MobileContainer = ({ children }) => {
5049
vertical
5150
visible={sidebarIsOpen}
5251
>
53-
<Menu.Item
54-
fitted={true}
55-
onClick={handleSidebarHide}
56-
active={location.hash === ''}
57-
>
58-
<Link to="/">
59-
<div style={menuItemStyle}>Home</div>
60-
</Link>
61-
</Menu.Item>
62-
<Menu.Item
63-
fitted={true}
64-
onClick={handleSidebarHide}
65-
active={location.hash === '#what'}
66-
>
67-
<Link to="/#what">
68-
<div style={menuItemStyle}>About</div>
69-
</Link>
70-
</Menu.Item>
71-
<Menu.Item
72-
fitted={true}
73-
onClick={handleSidebarHide}
74-
active={location.hash === '#learnmore'}
75-
>
76-
<Link to="/#learnmore">
77-
<div style={menuItemStyle}>Learn more</div>
78-
</Link>
79-
</Menu.Item>
80-
<Menu.Item
81-
fitted={true}
82-
onClick={handleSidebarHide}
83-
active={location.hash === '#who'}
84-
>
85-
<Link to="/#who">
86-
<div style={menuItemStyle}>Who uses MAL?</div>
87-
</Link>
88-
</Menu.Item>
89-
<Menu.Item
90-
fitted={true}
91-
onClick={handleSidebarHide}
92-
active={location.hash === '#resources'}
93-
>
94-
<Link to="/#resources">
95-
<div style={menuItemStyle}>Resources</div>
96-
</Link>
97-
</Menu.Item>
98-
<Menu.Item>
99-
<Button
100-
as="a"
101-
href="https://github.com/mal-lang/exampleLang/blob/master/README.md"
102-
target="_blank"
103-
primary
104-
size="large"
105-
>
106-
Get Started
107-
</Button>
108-
</Menu.Item>
10952
</Sidebar>
11053

11154
<Sidebar.Pusher dimmed={sidebarIsOpen}>

0 commit comments

Comments
 (0)