feat(homepage): add git button and split css styles
All checks were successful
E2E Tests with Cypress / cypress (push) Successful in 3m7s
E2E Tests with Cypress / cypress (pull_request) Successful in 2m58s

This commit is contained in:
Aleksa Bandic 2025-04-17 03:33:29 +02:00
parent a9b8e7bc9e
commit 1e443c6b43
3 changed files with 42 additions and 18 deletions

View file

@ -1,12 +1,15 @@
'use client'; //mark as client app
import '../styles/homepage.css';
export default function Home() {
return (
<div className="container">
<main>
<h1 className="title">aleksa.sh</h1>
<p className="subTitle">coming soon</p>
</main>
<h1 className="title consoleFont">aleksa.sh</h1>
<p className="subTitle consoleFont">coming soon.</p>
<a className="gitButton consoleFont" href="https://git.aleksa.sh">
&gt; my git
</a>
<footer></footer>
</div>
);

View file

@ -24,18 +24,5 @@ body {
.container {
display: flex;
flex-direction: column;
}
.title {
font-size: 2rem;
margin: 0;
padding-bottom: 0.5rem;
font-family: 'Courier New', Courier, monospace;
}
.subTitle {
font-size: 1.3rem;
margin: 0;
color: gray;
font-family: 'Courier New', Courier, monospace;
gap: 1.1rem;
}

34
src/styles/homepage.css Normal file
View file

@ -0,0 +1,34 @@
h1,
p {
margin: 0;
}
.consoleFont {
font-family: 'Courier New', Courier, monospace;
}
.title {
font-size: 2rem;
}
.subTitle {
font-size: 1.3rem;
color: gray;
}
.gitButton {
font-size: 1.2rem;
padding: 0.75rem 1.5rem;
border: 2px solid var(--foreground);
background-color: transparent;
color: var(--foreground);
text-decoration: none;
transition: all 0.1s ease;
border-radius: 8px;
cursor: pointer;
}
.gitButton:hover {
background-color: var(--foreground);
color: var(--background);
}