Skip to content

Commit b9adf60

Browse files
Merge pull request #30 from lukepistrol/feat/enable-download-button
[feat]: enable download button
2 parents 939fe6d + 8d812ba commit b9adf60

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

components/common/Button.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import styled from "styled-components";
22

3-
const Button = styled.button`
3+
const Button = styled.a`
44
cursor: ${({ disabled }) => disabled ? `default` : `pointer`};
55
display: inline-block;
66
text-align: center;
@@ -16,7 +16,7 @@ const Button = styled.button`
1616
padding-top: 8px;
1717
padding-bottom: 8px;
1818
border-radius: 18px;
19-
background: var(${({ disabled }) => disabled ? `--glyph-gray-tertiary` : `--fill-blue`});
19+
background: var(${({ disabled }) => disabled ? `--glyph-gray-tertiary` : `--color-fill-blue`});
2020
color: #fff;
2121
border: 0;
2222
outline: 0;

components/common/Header.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,7 @@ function Header() {
162162
</label>
163163
</Action>
164164
<Action>
165-
<a>
166-
<Button disabled compact>Download Coming Soon</Button>
167-
</a>
165+
<Button href="https://github.com/CodeEditApp/CodeEdit/releases/latest" target="_blank" compact>Download Alpha</Button>
168166
</Action>
169167
</Actions>
170168
</Menu>

components/pages/home/sections/HeroSection.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ const HeroSection = () => {
4141
<Typography variant="intro-elevated" color="tertiary" gutterBottom>
4242
CodeEdit is an exciting new code editor written entirely and unapologetically for macOS. Develop any project using any language at speeds like never before with increased efficiency and reliability in an editor that feels right at home on your Mac.
4343
</Typography>
44-
<Button disabled>Download Coming Soon</Button>
45-
<Typography variant="body-reduced" color="tertiary">v0.0.1 | macOS 12+</Typography>
44+
<Button href="https://github.com/CodeEditApp/CodeEdit/releases/latest" target="_blank">Download Alpha</Button>
45+
<Typography variant="body-reduced" color="tertiary">0.0.1-alpha | macOS 12+</Typography>
4646
</Stack>
4747
</Column>
4848
</Row>

0 commit comments

Comments
 (0)