Skip to content

Commit d6d0f68

Browse files
authored
Refactor button elements to anchor tags for consistency in Install and Welcome components; update CSS for button styling and add Cookie Consent banner styles. (#59)
Signed-off-by: Pete Cheslock <[email protected]>
1 parent e39c782 commit d6d0f68

File tree

3 files changed

+21
-26
lines changed

3 files changed

+21
-26
lines changed

src/components/Install/index.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,9 @@ export default function Install() {
4848
></img>
4949
<a className="link" href="docs/guide/installation/quickstart#examples">Explore llm-d!</a></h3>
5050
{/* -------------------------------------------------------------------------- */}
51-
<button className="static-button install-button" role="button" href="#">
52-
<a className="button-link" href="docs/guide">
53-
Complete install methods here
54-
</a>
55-
</button>
51+
<a className="static-button install-button button-link" href="docs/guide">
52+
Complete install methods here
53+
</a>
5654
</div>
5755
</div>
5856
</>

src/components/Welcome/index.js

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,20 @@ export default function Welcome() {
1717

1818

1919
<div className="button-group">
20-
<button className="static-button">
21-
<a className="button-link" href="docs/architecture/architecture">
22-
Architecture
23-
</a>
24-
</button>
25-
<button className="static-button">
26-
<a
27-
className="button-link"
28-
href="docs/guide/Installation/Prerequisites"
29-
>
30-
{/* Link to install page on the docs */}
31-
Installation
32-
</a>
33-
</button>
34-
<button className="static-button">
35-
<a className="button-link" href="docs/community/contribute">
36-
{/* Link to Community tab */}
37-
Community
38-
</a>
39-
</button>
20+
<a className="static-button button-link" href="docs/architecture/architecture">
21+
Architecture
22+
</a>
23+
<a
24+
className="static-button button-link"
25+
href="docs/guide/Installation/Prerequisites"
26+
>
27+
{/* Link to install page on the docs */}
28+
Installation
29+
</a>
30+
<a className="static-button button-link" href="docs/community/contribute">
31+
{/* Link to Community tab */}
32+
Community
33+
</a>
4034
</div>
4135

4236
<div className="hidden-for-mobile">

src/css/custom.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,9 @@ img.llm-d-logo {
222222

223223
.static-button,
224224
.install-button {
225+
display: inline-flex;
225226
align-items: center;
226-
justify-items: center;
227+
justify-content: center;
227228
border-radius: 15px;
228229
border: 1px solid transparent;
229230
margin: 12.5px 12.5px;
@@ -235,6 +236,8 @@ img.llm-d-logo {
235236
cursor: pointer;
236237
transition: border-color 0.25s;
237238
width: 100%;
239+
text-decoration: none;
240+
color: #fff;
238241
@media screen and (max-width: 1024px) {
239242
margin: 5% 0;
240243
@media screen and (max-width: 768px) {

0 commit comments

Comments
 (0)