Skip to content

Commit

Permalink
enable download button
Browse files Browse the repository at this point in the history
  • Loading branch information
lukepistrol committed Jan 19, 2023
1 parent 939fe6d commit 8d812ba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions components/common/Button.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from "styled-components";

const Button = styled.button`
const Button = styled.a`
cursor: ${({ disabled }) => disabled ? `default` : `pointer`};
display: inline-block;
text-align: center;
Expand All @@ -16,7 +16,7 @@ const Button = styled.button`
padding-top: 8px;
padding-bottom: 8px;
border-radius: 18px;
background: var(${({ disabled }) => disabled ? `--glyph-gray-tertiary` : `--fill-blue`});
background: var(${({ disabled }) => disabled ? `--glyph-gray-tertiary` : `--color-fill-blue`});
color: #fff;
border: 0;
outline: 0;
Expand Down
4 changes: 1 addition & 3 deletions components/common/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,7 @@ function Header() {
</label>
</Action>
<Action>
<a>
<Button disabled compact>Download Coming Soon</Button>
</a>
<Button href="https://github.com/CodeEditApp/CodeEdit/releases/latest" target="_blank" compact>Download Alpha</Button>
</Action>
</Actions>
</Menu>
Expand Down
4 changes: 2 additions & 2 deletions components/pages/home/sections/HeroSection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ const HeroSection = () => {
<Typography variant="intro-elevated" color="tertiary" gutterBottom>
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.
</Typography>
<Button disabled>Download Coming Soon</Button>
<Typography variant="body-reduced" color="tertiary">v0.0.1 | macOS 12+</Typography>
<Button href="https://github.com/CodeEditApp/CodeEdit/releases/latest" target="_blank">Download Alpha</Button>
<Typography variant="body-reduced" color="tertiary">0.0.1-alpha | macOS 12+</Typography>
</Stack>
</Column>
</Row>
Expand Down

0 comments on commit 8d812ba

Please sign in to comment.