Skip to content

Commit

Permalink
chore: update components and contents
Browse files Browse the repository at this point in the history
  • Loading branch information
rxyhn committed Sep 28, 2024
1 parent 5d55648 commit d25d15a
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 52 deletions.
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,20 @@ Inside of your Astro project, you'll see the following folders and files:
├── README.md
├── src
│   ├── components
│   │   ├── Awards.astro
│   │   ├── Boxes.tsx
│   │   ├── Button.astro
│   │   ├── Card.astro
│   │   ├── Container.astro
│   │   ├── Education.astro
│   │   ├── ExpandButton.tsx
│   │   ├── Experience.astro
│   │   ├── Footer.astro
│   │   ├── Header.astro
│   │   ├── Heading.astro
│   │   ├── Navbar.astro
│   │   ├── Photo.tsx
│   │   ├── Section.astro
│   │   ├── sections
│   │   │   ├── Awards.astro
│   │   │   ├── Education.astro
│   │   │   ├── Experience.astro
│   │   │   └── Skills.astro
│   │   ├── Skills.astro
│   │   ├── Starry.tsx
│   │   └── ThemeToggle.astro
│   ├── consts.ts
Expand All @@ -66,9 +64,7 @@ Inside of your Astro project, you'll see the following folders and files:
│   │   └── telegram.svg
│   ├── layouts
│   │   ├── BaseHead.astro
│   │   ├── BaseLayout.astro
│   │   ├── BottomLayout.astro
│   │   └── TopLayout.astro
│   │   └── BaseLayout.astro
│   ├── lib
│   │   └── utils.ts
│   ├── pages
Expand All @@ -81,7 +77,7 @@ Inside of your Astro project, you'll see the following folders and files:
├── tailwind.config.mjs
└── tsconfig.json
12 directories, 52 files
11 directories, 49 files
```

Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
Expand Down
6 changes: 4 additions & 2 deletions cv.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"basics": {
"name": "Rayhan Kafi Pratama",
"nickname": "rxyhn",
"label": "Computer Science Student at Bina Nusantara University",
"summary": "Passionate about software development, problem-solving, and continuous learning. Strong advocate for clean code, best practices, and agile methodologies",
"label": "Undergraduate of Computer Science at Bina Nusantara University.",
"roles": ["Back-End Developer", "DevOps Engineer"],
"summary": "Crafting scalable and resilient systems that turn ideas into reality. I excel in seamless integration, clean code, and robust infrastructure. Committed to continuous learning, I deliver high-performance solutions that optimize reliability and deliver meaningful impact.",

"location": {
"city": "Jakarta",
"countryCode": "ID",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import Section from "../Section.astro";
import Section from "./Section.astro";
import { awards } from "@cv";
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import Section from "../Section.astro";
import Section from "./Section.astro";
import { education } from "@cv";
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import ExpandButton from "../ExpandButton";
import Section from "../Section.astro";
import ExpandButton from "./ExpandButton";
import Section from "./Section.astro";
import { work } from "@cv";
---

Expand Down
16 changes: 1 addition & 15 deletions src/components/Heading.astro
Original file line number Diff line number Diff line change
@@ -1,25 +1,11 @@
---
type Props = {
title: string;
description: string;
highlight?: string[];
};
const { title, description, highlight } = Astro.props;
const { title } = Astro.props;
---

<header class="flex flex-col items-center sm:mt-24">
<h1 class="mb-6 text-center">{title}</h1>
<p class="mb-6 text-justify text-black/80 dark:text-white/80">
{description}
</p>
{
highlight && (
<div class="mb-6">
{highlight.map((item) => (
<p class="text-justify text-black/80 dark:text-white/80">{item}</p>
))}
</div>
)
}
</header>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import Section from "../Section.astro";
import Section from "./Section.astro";
import { skills } from "@cv";
const { technologies, programming_languages } = skills;
---
Expand Down
17 changes: 5 additions & 12 deletions src/pages/about.astro
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
---
import Awards from "@/components/sections/Awards.astro";
import Awards from "@/components/Awards.astro";
import Heading from "@/components/Heading.astro";
import Education from "@/components/sections/Education.astro";
import Experience from "@/components/sections/Experience.astro";
import Skills from "@/components/sections/Skills.astro";
import Education from "@/components/Education.astro";
import Experience from "@/components/Experience.astro";
import Skills from "@/components/Skills.astro";
import BaseLayout from "@/layouts/BaseLayout.astro";
import { SITE } from "@/consts";
---

<BaseLayout title="About" description={SITE.DESCRIPTION}>
<div class="container mx-auto my-24 xl:my-5">
<Heading
title="About Me"
description="Hello 👋 I'm Rayhan Kafi Pratama, a bachelor of computer science student."
highlight={[
"My passion for crafting software that turns ideas into reality through elegant and intuitive interfaces.",
"I place a strong emphasis on creating seamless experiences, robust architecture, and high-quality code. I'm always eager to enhance my skills and contribute to meaningful and impactful projects.",
]}
/>
<Heading title="About Me" />
<div class="space-y-8 md:col-span-4">
<Experience />
<Skills />
Expand Down
12 changes: 8 additions & 4 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@ const { name, label, summary, socials } = basics;
<h1 class="mb-6">
{name}
</h1>
<p class="mb-8 max-w-[500px] text-black/80 dark:text-white/80">
{label}
{summary}
</p>
<div class="mb-8 flex max-w-[500px] flex-col gap-2">
<p class="text-black/80 dark:text-white/80">
{label}
</p>
<p class="text-black/80 dark:text-white/80">
{summary}
</p>
</div>
<div
class="flex flex-row items-center justify-center gap-6 xl:justify-start"
>
Expand Down
5 changes: 1 addition & 4 deletions src/pages/projects.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ import { projects } from "@cv";

<BaseLayout title="Projects" description={SITE.DESCRIPTION}>
<div class="container mx-auto my-24 xl:my-5">
<Heading
title="My Projects"
description="Explore a collection of my projects here. As an open-source enthusiast, I'm passionate about collaboration and knowledge-sharing."
/>
<Heading title="My Projects" />
<div class="grid w-full grid-cols-1 gap-5 sm:grid-cols-2">
{
projects.map(({ url, name, description, highlights, technologies }) => (
Expand Down

0 comments on commit d25d15a

Please sign in to comment.