Skip to content

Commit a9c1761

Browse files
feat: Add 404 page, blog site
1 parent 07bddb8 commit a9c1761

File tree

14 files changed

+329
-88
lines changed

14 files changed

+329
-88
lines changed

src/components/Header.astro

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
---
2-
const title = 'Aditya Bhattacharya | Portfolio Website'
3-
const description =
4-
'Portfolio website for Aditya Bhattacharya, a software developer and UI/UX Designer'
52
type Props = {
63
previewImage: string | '/hero-preview.png'
74
url: string | 'https://adityabh.is-a.dev'
5+
title?: string
6+
description?: string
87
}
9-
const { previewImage, url } = Astro.props
8+
const { previewImage, url, title, description } = Astro.props
109
---
1110

1211
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@@ -22,18 +21,31 @@ const { previewImage, url } = Astro.props
2221
<meta name="language" content="English" />
2322
<meta name="author" content="Aditya Bhattacharya" />
2423

25-
{/* Open Graph tags */}
24+
<!-- Open Graph Tags -->
2625
<meta property="og:type" content="website" />
2726
<meta property="og:url" content={url} />
2827
<meta property="og:title" content={title} />
2928
<meta property="og:description" content={description} />
3029
<meta property="og:image" content={previewImage} />
3130

32-
{/* twitter specific */}
31+
<!-- Twitter specific -->
3332
<meta property="twitter:card" content="summary_large_image" />
3433
<meta property="twitter:url" content={url} />
3534
<meta property="twitter:title" content={title} />
3635
<meta property="twitter:description" content={description} />
3736
<meta property="twitter:image" content={previewImage} />
3837

3938
<link rel="shortcut icon" href="/favicon.svg" type="image/x-icon" />
39+
40+
<!-- Privacy-friendly Analytics -->
41+
<script
42+
async
43+
src="https://cdn.splitbee.io/sb.js"
44+
type="text/partytown"
45+
is:inline></script>
46+
<script
47+
src="https://beamanalytics.b-cdn.net/beam.min.js"
48+
data-token="a24be98c-ce23-46dc-93d4-d67b6ca7118d"
49+
async
50+
type="text/partytown"
51+
is:inline></script>

src/components/about/About.astro

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ import { skills } from '../../data/skills'
55

66
<style>
77
.container {
8-
padding: 0 2rem 0 2rem;
8+
padding-left: 1rem;
99
font-size: 1.15rem;
10+
word-break: break-word;
1011
}
1112

1213
.chip-container {
@@ -28,6 +29,12 @@ import { skills } from '../../data/skills'
2829
display: block;
2930
}
3031
}
32+
33+
@media screen and (max-width: 300px) {
34+
.container {
35+
padding: none;
36+
}
37+
}
3138
</style>
3239
<section class="container">
3340
<p>

src/components/contact/ContactForm.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.container {
22
display: flex;
33
flex-direction: column;
4-
height: 40vh;
4+
height: 25rem;
55
width: 25rem;
66
padding: 5rem;
77
margin-top: 2rem;
@@ -49,7 +49,7 @@
4949
border: 0;
5050
border-bottom: 2px solid #9b9b9b;
5151
outline: 0;
52-
font-size: 1.3rem;
52+
font-size: 1rem;
5353
color: #000;
5454
padding: 7px 0;
5555
background: transparent;

src/components/contact/ContactSection.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ function Footer() {
3333
name: 'Education',
3434
path: '/#education',
3535
},
36-
{
37-
name: '404 Page',
38-
path: '/404',
39-
},
4036
]
4137

4238
const socials = [

src/components/interface/Button.module.css

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,18 @@
1818

1919
.hero-btn {
2020
margin-top: 2rem;
21-
height: 5rem;
22-
width: 13rem;
21+
height: 4.5rem;
22+
width: 10rem;
2323
border-radius: 50px;
2424
font-size: 1rem;
2525
font-weight: 600;
26+
margin: 0.3rem;
27+
}
28+
29+
@media screen and (max-width: 400px) {
30+
.hero-btn {
31+
height: 3.5rem;
32+
width: 9rem;
33+
font-size: 0.6rem;
34+
}
2635
}

src/components/interface/Button.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ type Props = {
77
className?: string
88
type: 'button' | 'submit' | 'reset' | undefined
99
disabled?: boolean
10+
id?: string
1011
}
1112

12-
function Button({ text, onClick, className, type, disabled }: Props) {
13+
function Button({ text, onClick, className, type, disabled, id }: Props) {
1314
let classNames = `${className || ''} ${classes.btn} `
1415
className == 'hero-btn' ? (classNames += classes['hero-btn']) : ''
1516
return (
@@ -18,6 +19,7 @@ function Button({ text, onClick, className, type, disabled }: Props) {
1819
onClick={onClick}
1920
type={type}
2021
disabled={disabled}
22+
id={id}
2123
>
2224
{text}
2325
</button>

src/components/projects/ProjectSection.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { projects } from '../../data/projects'
66
<section>
77
{
88
projects.map((project, idx) => {
9-
return <ProjectCard key={idx} {...project} />
9+
return <ProjectCard {...project} />
1010
})
1111
}
1212
</section>

src/components/skills/SkillCard.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ let resStr = number < 10 ? `0${number}.` : `${number}.`
3030
color: #44ab9729;
3131
content: attr(data-bg-text);
3232
display: block;
33-
font-size: 3rem;
33+
font-size: 2rem;
3434
line-height: 1;
3535
position: absolute;
3636
font-weight: bold;
@@ -41,12 +41,12 @@ let resStr = number < 10 ? `0${number}.` : `${number}.`
4141
.text,
4242
.title-span {
4343
font-family: 'Roboto Mono', monospace;
44-
padding-top: 3rem;
44+
padding-top: 2.5rem;
4545
}
4646

4747
.title-span {
4848
padding-top: 5px;
49-
font-size: 2rem;
49+
font-size: 1.5rem;
5050
display: block;
5151
font-weight: bold;
5252
}

src/components/skills/SkillSection.astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import SkillCard from './SkillCard.astro'
66
<style>
77
.container {
88
display: grid;
9-
grid-template-columns: repeat(5, 1fr);
9+
grid-template-columns: repeat(6, 1fr);
1010
grid-template-rows: repeat(2, 1fr);
1111
column-gap: 1rem;
1212
row-gap: 2rem;
@@ -42,7 +42,6 @@ import SkillCard from './SkillCard.astro'
4242
number={idx + 1}
4343
title={skill.title}
4444
altText={skill.alt}
45-
key={idx}
4645
/>
4746
)
4847
})

src/data/education.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ export const educationData: EducationData[] = [
2222
endDate: '2027',
2323
description: [
2424
"Bachelor's of Technology (B.Tech) in Information Technology",
25+
'Student Intern at VIERP, college’s own educational platform - led a team in developing a costless AI video summariser',
26+
'CGPA: 9.41',
2527
],
2628
},
2729
]

0 commit comments

Comments
 (0)