Skip to content

Commit 26b25e0

Browse files
committed
cleanup
1 parent 3c6cf12 commit 26b25e0

File tree

8 files changed

+45
-82
lines changed

8 files changed

+45
-82
lines changed

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ const projectsCollection = defineCollection({
137137
status: z.enum(["live", "dev"]),
138138
description: z.string(),
139139
image: z.string(),
140+
draft: z.boolean().optional(),
140141
preview: z
141142
.object({
142143
src: z.string(),
@@ -166,13 +167,6 @@ const projects = await getCollection("projects", ({ data }) => {
166167
});
167168
```
168169

169-
## References
170-
171-
- [Astro Documentation](https://docs.astro.build/)
172-
- [TailwindCSS Documentation](https://tailwindcss.com/docs)
173-
- [TailwindCSS Typography](https://github.com/tailwindlabs/tailwindcss-typography)
174-
- [Learn Markdown](https://www.markdownguide.org/)
175-
176170
## License
177171

178-
See the [License](LICENSE) file.
172+
See the [License](LICENSE.md) file.

src/components/ContactForm.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
autocomplete='off'
1111
autocapitalize='off'
1212
placeholder='Your name'
13-
class='flex h-11 w-full rounded-md border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-emerald-500 focus-visible:outline-offset-2'
13+
class='flex h-11 w-full rounded-md border bg-background px-3 py-2 lg:text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-emerald-500 focus-visible:outline-offset-2'
1414
/>
1515
</div>
1616
<div>
@@ -22,7 +22,7 @@
2222
id='email'
2323
autocomplete='off'
2424
placeholder='Your email'
25-
class='flex h-11 w-full rounded-md border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-emerald-500 focus-visible:outline-offset-2'
25+
class='flex h-11 w-full rounded-md border bg-background px-3 py-2 lg:text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-emerald-500 focus-visible:outline-offset-2'
2626
/>
2727
</div>
2828
<div class='lg:col-span-2'>

src/components/Footer.astro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Container from './Container.astro';
33
---
44

55
<footer>
6-
<Container class='py-10 lg:py-16 border-t border-dashed'>
6+
<Container class='py-14 lg:py-16 border-t border-dashed'>
77
<div
88
class='h-full flex justify-between items-center my-auto'
99
>
@@ -15,10 +15,10 @@ import Container from './Container.astro';
1515
<div class='flex space-x-8'>
1616
<a
1717
target='_blank'
18-
href='https://github.com/taqh/'
19-
class='text-sm text-foreground hover:underline focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-emerald-500'
18+
href='https://github.com/taqh/website'
19+
class='text-sm text-foreground hover:underline underline-offset-2 decoration-dashed focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-emerald-500'
2020
>
21-
Github
21+
Source code
2222
</a>
2323
</div>
2424
</div>

src/components/Header.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import ThemeToggle from './ThemeToggle.astro';
88
<nav
99
class='sm:bg-background flex items-center justify-between h-full sm:px-6 py-6 md:py-8 lg:py-10 sm:-mb-10 md:-mb-14 lg:-mb-20'
1010
>
11-
<a href="/" class="focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-emerald-500 rounded-full">
11+
<a href="/" class="focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-emerald-500 hover:underline underline-offset-2">
1212
<span
1313
id='logo'
1414
aria-hidden='true'
15-
class='font-bold font-mono text-lg select-none bg-background uppercase size-10 grid place-content-center'
15+
class='font-bold font-mono text-lg select-none bg-background uppercase grid place-content-center'
1616
>
17-
tq.
17+
taqib.
1818
</span>
1919
</a>
2020
<div>

src/components/ProjectCard.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ const { title, preview, links, description, status } = entry.data
1414
---
1515

1616
<li
17-
class={`flex flex-col gap-4 border border-dashed rounded-lg backdrop-blur-md card z-10 bg-card`}
17+
class={`flex flex-col gap-4 border border-dashed rounded-lg backdrop-blur-md card z-10 bg-card max-w-md`}
1818
>
1919
{
2020
preview && (
2121
<div class='relative group overflow-hidden z-10 rounded-t-lg'>
22-
<Image src={preview.src} alt={preview.alt} width={500} height={240} />
22+
<Image src={preview.src} alt={preview.alt} width={448} height={240} />
2323
</div>
2424
)
2525
}

src/pages/index.astro

Lines changed: 29 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -28,59 +28,28 @@ const projects = await getCollection('projects', ({ data }) => {
2828

2929
<Layout title={SITE.TITLE} description={SITE.DESCRIPTION}>
3030
<div class='divide-y divide-dashed'>
31-
<!-- hero section -->
31+
<!-- about section -->
3232
<Container class='border-t border-dashed'>
3333
<section
34-
class='overflow-x-hidden sm:border-x sm:border-dashed sm:bg-background py-16 lg:py-24 flex items-center flex-col justify-center'
34+
class='overflow-x-hidden sm:border-x sm:border-dashed sm:px-4 md:px-0 sm:bg-background py-14 md:py-16 lg:py-28 md:items-center flex flex-col justify-center'
3535
>
36-
<div
37-
class='inline-flex items-center rounded-lg border px-3 py-1 text-sm md:text-base font-medium mb-4 bg-background'
38-
>
39-
<span>Hi there, I&apos;m Taqib</span>
40-
</div>
41-
<h1 class='max-w-4xl text-4xl font-semibold md:text-5xl lg:text-6xl text-center'>
42-
A
43-
<span
44-
class='inline-block underline underline-offset-2 decoration-dashed decoration-emerald-500'
45-
>
46-
Frontend
47-
</span>
48-
web developer crafting modern web applications.
36+
<h1 class='text-3xl font-semibold md:text-4xl md:text-center mb-6'>
37+
Hi there, I&apos;m Taqib
4938
</h1>
50-
51-
</section>
52-
</Container>
53-
54-
<!-- about section -->
55-
<Container>
56-
<section
57-
id='about'
58-
class='sm:border-x sm:border-dashed px-4 md:px-6 sm:bg-background space-y-12 py-8 md:py-12 lg:py-24'
59-
>
60-
<div class='mx-auto flex flex-col space-y-4'>
61-
<h2
62-
class='font-medium text-2xl leading-[1.1] sm:text-3xl md:text-4xl text-center mb-6'
39+
<div class='space-y-4 md:text-center max-w-prose'>
40+
<p
41+
class='max-w-prose leading-normal text-muted-foreground sm:leading-7'
6342
>
64-
About me
65-
</h2>
66-
<!-- -->
67-
<div class='flex items-center justify-center'>
68-
<div class='space-y-4 text-center max-w-prose'>
69-
<p
70-
class='max-w-prose leading-normal text-muted-foreground sm:text-lg sm:leading-7'
71-
>
72-
I'm a self-taught developer based in Abuja, Nigeria. I have a
73-
passion for web development and love to create web applications
74-
that are accessible, fast, and user-friendly.
75-
</p>
76-
<p
77-
class='max-w-prose leading-normal text-muted-foreground sm:text-lg sm:leading-7'
78-
>
79-
Currently, learning about design systems and UI/UX fundamentals,
80-
aiming to improve my web development skills and create visually appealing web experiences.
81-
</p>
82-
</div>
83-
</div>
43+
I'm a self-taught developer based in Abuja, Nigeria. I have a
44+
passion for web development and love to create web applications
45+
that are accessible, fast, and user-friendly.
46+
</p>
47+
<p
48+
class='max-w-prose leading-normal text-muted-foreground sm:leading-7'
49+
>
50+
Currently, learning about design systems and UI/UX fundamentals,
51+
aiming to improve my web development skills and create visually appealing web experiences.
52+
</p>
8453
</div>
8554
</section>
8655
</Container>
@@ -91,16 +60,16 @@ const projects = await getCollection('projects', ({ data }) => {
9160
id='projects'
9261
class='sm:bg-background space-y-12 py-8 md:py-12 lg:py-24 sm:border-x sm:border-dashed sm:px-6 md:px-10 lg:px-16'
9362
>
94-
<div class='mx-auto flex flex-col space-y-4 justify-center text-center'>
63+
<div class='mx-auto flex flex-col space-y-4 justify-center md:text-center'>
9564
<h2
9665
class='font-semibold text-2xl leading-[1.1] sm:text-3xl md:text-4xl'
9766
>
9867
Projects
9968
</h2>
10069
<p
101-
class='max-w-prose mx-auto leading-normal text-muted-foreground sm:text-lg sm:leading-7'
70+
class='max-w-prose mx-auto leading-normal text-muted-foreground sm:leading-7'
10271
>
103-
I Love learning and staying engaged through exciting new projects. Here
72+
I love staying engaged through exciting new projects, here
10473
are a few I've spent my time on.
10574
</p>
10675
</div>
@@ -122,18 +91,18 @@ const projects = await getCollection('projects', ({ data }) => {
12291
<Container>
12392
<section
12493
id='skills'
125-
class='sm:border-x sm:border-dashed sm:px-14 py-8 md:py-12 lg:py-28 space-y-14 lg:space-y-20'
94+
class='sm:border-x sm:border-dashed sm:px-14 py-14 md:py-16 lg:py-28 space-y-14 lg:space-y-20'
12695
>
12796
<div
128-
class='mx-auto flex max-w-[58rem] flex-col items-center justify-center gap-4 text-center'
97+
class='mx-auto flex max-w-prose flex-col items-center justify-center gap-4 text-center'
12998
>
13099
<h2
131-
class='font-medium text-3xl leading-[1.1] sm:text-3xl md:text-5xl'
100+
class='font-medium text-3xl leading-[1.1] md:text-4xl'
132101
>
133102
Stack
134103
</h2>
135104
<p
136-
class='max-w-[85%] leading-normal text-muted-foreground sm:text-lg sm:leading-7'
105+
class='leading-normal text-muted-foreground sm:leading-7'
137106
>
138107
The technologies I work with most frequently
139108
</p>
@@ -208,18 +177,18 @@ const projects = await getCollection('projects', ({ data }) => {
208177
class='sm:border-x sm:border-dashed py-8 md:py-12 lg:py-24 space-y-10'
209178
>
210179
<div
211-
class='mx-auto flex max-w-[58rem] flex-col items-center justify-center gap-4 text-center'
180+
class='mx-auto flex max-w-[58rem] flex-col md:items-center justify-center gap-4 text-center'
212181
>
213182
<h2
214-
class='font-medium text-3xl leading-[1.1] sm:text-3xl md:text-5xl'
183+
class='font-medium text-3xl leading-[1.1] md:text-4xl'
215184
>
216185
Get in touch
217186
</h2>
218187
<p
219-
class='max-w-[85%] leading-normal text-muted-foreground sm:text-lg sm:leading-7'
188+
class='max-w-prose leading-normal text-muted-foreground sm:leading-7'
220189
>
221190
I'm actively seeking new opportunities to apply my skills and create
222-
value. Whether you have a project in mind, a job opportunity, or
191+
value. Whether you have a project in mind or
223192
just want to connect, I'd love to hear from you.
224193
</p>
225194
</div>
@@ -232,7 +201,7 @@ const projects = await getCollection('projects', ({ data }) => {
232201
>
233202
<div>
234203
<h3 class='font-semibold text-lg'>
235-
You can contact me via email at
204+
You can email me at
236205
</h3>
237206
<p
238207
class='w-fit relative after:absolute after:bg-foreground after:h-px after:w-1/2 after:top-auto after:bottom-0 after:left-0 after:scale-x-0 after:origin-right hover:after:scale-x-100 lg:hover:after:origin-left transition after:transition after:duration-300'

src/pages/projects/[...slug].astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ const { Content } = await entry.render();
3737
</div>
3838
<div class='grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4'>
3939
{entry.data.links.repo && <Link href={entry.data.links.repo} external> View repository </Link>}
40-
{entry.data.links.live && <Link href={entry.data.links.live} external> Visit the site </Link>}
40+
{entry.data.links.live && <Link href={entry.data.links.live} external> Visit website </Link>}
4141
</div>
4242
</section>
4343
<article
44-
class='prose xl:prose-lg prose-taqib max-w-3xl prose-headings:font-mono mx-auto'
44+
class='prose prose-taqib max-w-3xl prose-headings:font-mono mx-auto'
4545
>
4646
<Content />
4747
</article>

src/pages/projects/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const projects = await getCollection('projects', ({ data }) => data.draft !== tr
2727
variant='card'
2828
>
2929
<h2 class='font-semibold tracking-wide text-lg italic'>{project.data.title}</h2>
30-
<p class='text-muted-foreground'>{project.data.description}</p>
30+
<p class='text-muted-foreground font-mono text-sm'>{project.data.description}</p>
3131
</Link>
3232
</li>
3333
))

0 commit comments

Comments
 (0)