feat(homepage): add git button and split css styles #1
4 changed files with 43 additions and 20 deletions
|
|
@ -3,7 +3,6 @@ name: E2E Tests with Cypress
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
pull_request:
|
||||
branches:
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
> my git
|
||||
</a>
|
||||
<footer></footer>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ body {
|
|||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
height: 100dvh;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
|
@ -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
34
src/styles/homepage.css
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue