Skip to content

Commit 1e3a2d7

Browse files
committed
feat: Design improvements
1 parent 80285d4 commit 1e3a2d7

File tree

4 files changed

+47
-54
lines changed

4 files changed

+47
-54
lines changed

components/layout.tsx

+9-7
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,20 @@ export default function Layout({ children, home }: LayoutProps) {
2424
<meta name="og:title" content={siteTitle} />
2525
<meta name="twitter:card" content="summary_large_image" />
2626
</Head>
27-
<header className="container mx-auto mt-4">
28-
<nav>
29-
<div className="mt-4 lg:mt-16 px-4 lg:px-64 xl:px-64 mb-4 flex flex-row items-center gap-1">
30-
<Link className={`text-sm ${pathname === '/' ? 'text-sky-400' : ''}`} href="/">
27+
<header className="container mx-auto mt-4">
28+
<nav className='flex justify-between mt-4 lg:mt-16 px-4 lg:px-64 xl:px-64 mb-4 text-lg'>
29+
<Link href="/" id='title' className='font-bold'>WreckItRob<span className='text-sky-400'>.</span>dev</Link>
30+
<div className="flex flex-row items-center font-semibold">
31+
<Link className={`nav-item ${pathname === '/' ? 'nav-active' : ''}`} href="/">
3132
Home
3233
</Link>
33-
<Link className={`text-sm ml-2 ${pathname === '/blog' ? 'text-sky-400' : ''}`} href="/blog">Blog</Link>
34-
<Link className={`text-sm ml-2 ${pathname === '/riddles' ? 'text-sky-400' : ''}`} href={`/riddles`}>Riddles</Link>
34+
<Link className={`nav-item ${pathname === '/blog' ? 'nav-active' : ''}`} href="/blog">Blog</Link>
35+
<Link className={`nav-item ${pathname === '/riddles' ? 'nav-active' : ''}`} href={`/riddles`}>Riddles</Link>
3536
</div>
3637
</nav>
3738
</header>
38-
<main className="container mx-auto mt-4 lg:mt-12 px-4 lg:px-64 xl:px-64 mb-4">{children}</main>
39+
<main className="container mx-auto mt-32 lg:mt-32 px-4 lg:px-64 xl:px-64 mb-4">{children}</main>
3940
</div>
4041
);
4142
}
43+
// #1D2228

pages/index.tsx

+18-45
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import Head from 'next/head';
2-
import Layout, { siteTitle } from '../components/layout';
1+
import Head from "next/head";
2+
import Layout, { siteTitle } from "../components/layout";
33

44
export default function Home() {
55
return (
@@ -8,51 +8,24 @@ export default function Home() {
88
<title>{siteTitle}</title>
99
</Head>
1010
<div>
11-
<div>
12-
<p className="text-4xl font-bold">Hi, I&apos;m Rob 👋</p>
13-
<p className="text-2xl font-bold">
14-
welcome to my <span className="text-sky-400 inline">personal website</span>
15-
</p>
16-
</div>
17-
<div className="mt-4">
18-
<p className="text-lg">
19-
I am a 29 year old SRE, Developer & Tech tinkerer from the UK.
20-
</p>
21-
<p className="text-lg mt-2">
22-
Some of my interests include software development, cloud computing,
23-
reverse engineering, automation, devops and security. I enjoy mostly
24-
anything tech and I&apos;m always looking to explore new things.
25-
</p>
26-
</div>
27-
28-
<div className="mt-8">
29-
<p className="text-2xl font-bold">projects</p>
30-
<p className="text-lg mt-2">
31-
some of my side projects are personal projects and as a result are not
32-
public or open-source.
33-
</p>
34-
<div className="mt-4">
35-
<div className="mt-4">
36-
<p className="text-lg text-sky-400">wreckitrob.dev</p>
37-
<p className="text-lg">my personal site (this one!).</p>
38-
<div className="mt-2 flex flex-wrap gap-y-2">
39-
<span className="bg-sky-300 rounded-full px-3 py-1 text-sm font-semibold text-gray-800 mr-2">
40-
Next.js
41-
</span>
42-
<span className="bg-sky-300 rounded-full px-3 py-1 text-sm font-semibold text-gray-800 mr-2">
43-
Node.js
44-
</span>
45-
<span className="bg-sky-300 rounded-full px-3 py-1 text-sm font-semibold text-gray-800 mr-2">
46-
React
47-
</span>
48-
<span className="bg-sky-300 rounded-full px-3 py-1 text-sm font-semibold text-gray-800 mr-2">
49-
TailwindCSS
50-
</span>
51-
</div>
52-
</div>
11+
<div>
12+
<p className="text-5xl font-bold">Hi, I&apos;m Rob 👋</p>
13+
<p className="text-2xl font-semibold">
14+
welcome to my{" "}
15+
<span className="text-sky-400 inline">personal website</span>
16+
</p>
17+
</div>
18+
<div className="mt-8 text-xl">
19+
<p>
20+
I'm a 29 year old SRE, Developer & Tech tinkerer from the UK.
21+
</p>
22+
<p className="mt-4">
23+
Some of my interests include software development, cloud computing,
24+
reverse engineering, automation, devops and security. I enjoy mostly
25+
anything tech and I&apos;m always looking to explore new things.
26+
</p>
5327
</div>
5428
</div>
55-
</div>
5629
</Layout>
5730
);
5831
}

pages/riddles.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export default function Riddles() {
193193
<div className="mt-8 text-sky-400">
194194
{revealed && <p className="text-3xl">{currentRiddle.answer}</p>}
195195
</div>
196-
{!revealed ? <button onClick={revealAnswer}>Reveal Answer</button> : null}
196+
{!revealed ? <button className="button-bg font-bold px-6 py-3 rounded-3xl" onClick={revealAnswer}>Reveal Answer</button> : null}
197197
</div>
198198
) : (
199199
<p>Loading...</p>

styles/global.css

+19-1
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,29 @@
1818

1919
body {
2020
color: #fff;
21-
background-color:#18181b
21+
background-color: #1D2228
2222
}
2323

2424
@layer utilities {
2525
.text-balance {
2626
text-wrap: balance;
2727
}
2828
}
29+
30+
.nav-item {
31+
padding: 2px 14px;
32+
border-radius: 24px;
33+
margin-top: -8px
34+
}
35+
36+
.nav-item:hover {
37+
background-color: #313741;
38+
}
39+
40+
.nav-active {
41+
background-color: #313741;
42+
}
43+
44+
.button-bg {
45+
background-color: #313741;
46+
}

0 commit comments

Comments
 (0)