Skip to content

Commit

Permalink
Merge pull request #121 from Riley1101/chore/update-14
Browse files Browse the repository at this point in the history
Chore/update 14
  • Loading branch information
Riley1101 authored Nov 16, 2023
2 parents b04cf13 + 5ebbdab commit 84bedd0
Show file tree
Hide file tree
Showing 11 changed files with 49 additions and 45 deletions.
46 changes: 22 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,52 +1,50 @@
![Preview image](https://github.com/Riley1101/portfolia/blob/main/preview/preview_v2.webp)

My personal website is built using the latest version of Next.js 13 and server components. Server components is a new feature in Next.js 13 that allows me to write server-side code using React components. This helps me to create more dynamic server-side rendering and improve the performance of my website. I am always exploring new things and trying to keep my website up to date with the latest technologies and trends in web development.
My personal website with Next.js 14 and server components.

## Installation
### Installation

To install the project, follow these steps:
To get started with the project, follow these steps:

1. Clone the repository: `git clone {repository URL}`
2. Navigate to the project directory: `cd {project directory}`
3. Install the dependencies: `pnpm install`
3. Install dependencies: `pnpm install`

To start the development server, run the following command:
To launch the development server, execute the following command:

```
```bash
pnpm run dev
```

This will start the server on `http://localhost:3000`.
This will initiate the server at http://localhost:3000.

To run the tests, you can use the following command:
For running tests, use the command:

```
```bash
npm run test
```

This will run the tests using Jest and React Testing Library and ensure that the functionality of the blog is working as expected.
This use React Testing Library to verify that the blog's functionality aligns with expectations.

## Features
### Features

- This website is built with the latest version of Next.js 13.
- It uses React components to create a dynamic user interface.
- The website is fully responsive, so it will look great on any device.
- It includes a blog section where I can write about my experiences and share my insights.
- The website is optimized for SEO to help me reach a wider audience.
- It features a newsletter to keep subscribers up to date on new content.
- Utilizes the latest Next.js 13 version.
- Employs React components for a dynamic user interface.
- Fully responsive design for optimal viewing on any device.
- Incorporates a blog section for sharing experiences and insights.
- SEO optimization to broaden audience reach.
- Includes a newsletter for subscribers to stay updated on new content.

## Contributing
### Contributing

If you would like to contribute to this project, please follow these steps:
Interested in contributing? Follow these steps:

1. Fork the repository.
2. Create a new branch: `git checkout -b {branch name}`
3. Make your changes and commit them: `git commit -m '{commit message}'`
3. Implement changes and commit them: `git commit -m '{commit message}'`
4. Push to the branch: `git push origin {branch name}`
5. Create a pull request.

## License
### License

This project is licensed under the MIT License - see the [LICENSE](https://www.notion.so/arkardev/LICENSE) file for details.
This project is licensed under the MIT License - see the LICENSE file for details.
2 changes: 1 addition & 1 deletion app/(web)/about/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function AboutPage() {
<div className="flex flex-col gap-6 mb-4 ">
<p className="leading-[2.5] text-gray-200 text-lg">
<Image
src="/images/profile.jpg"
src="/images/profile.png"
alt="My profile"
className="object-cover float-none md:float-left w-[200px] rounded-full aspect-square m-8"
width={800}
Expand Down
3 changes: 1 addition & 2 deletions app/(web)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export const metadata: Metadata = {
{ name: "Arkar Dev", url: "https://arkar.space" },
{ name: "ArkarDev", url: "https://arkar.space" },
],
colorScheme: "dark",
creator: metaData.title,
publisher: metaData.title,
formatDetection: {
Expand Down Expand Up @@ -72,7 +71,7 @@ export default function RootLayout({
return (
<html lang="en" className={inter.className}>
<head />
<body className="overflow-hidden">
<body className="overflow-hidden bg-[#121212]">
<div className="w-full overflow-hidden md:px-[10%] lg:pr-[0%] max-h-screen bg-[#33161600]">
<Header />
<div
Expand Down
8 changes: 5 additions & 3 deletions components/common/cmdk/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ const CommandMenu = () => {
];
},
}),
[]
[],
);

useHotkeys(
"ctrl+/",
() => {
setOpen((prev) => !prev);
},
{ preventDefault: true }
{ preventDefault: true },
);

useEffect(() => {
Expand All @@ -93,7 +93,7 @@ const CommandMenu = () => {
{open && (
<div
onClick={handleClose}
className="fixed top-0 left-0 grid w-full h-screen isolate z-[999] text-theme-accent place-items-center backdrop-filter backdrop-blur-lg"
className="fixed top-0 left-0 grid w-full h-screen isolate z-[999] text-accent place-items-center backdrop-filter backdrop-blur-lg"
>
<div
onClick={(e) => e.stopPropagation()}
Expand Down Expand Up @@ -185,6 +185,7 @@ const CommandMenu = () => {
</div>
</div>
)}
{/**
<input
onClick={() => {
setOpen(true);
Expand All @@ -193,6 +194,7 @@ const CommandMenu = () => {
placeholder="Search | Ctrl + /"
className="w-full px-4 mb-2 py-2 pt-3 bg-transparent border border-theme-accent-opaque rounded-md outline-none placeholder:text-sm placeholder:text-theme-accent"
/>
*/}
</>
);
};
Expand Down
8 changes: 5 additions & 3 deletions components/common/link/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ function NavIconLink({ children, icon, href, target }: Props) {
target={target}
href={href}
className={cx(
`text-sm flex cursor-pointer items-center hover:text-theme-accent py-3 hover:bg-theme-primary duration-300 hover:border-theme-primary hover:border-opacity-5 hover:bg-opacity-5 transition-all border border-transparent px-4 rounded-full`,
`text-sm flex cursor-pointer items-center hover:text-theme-accent py-3 hover:bg-theme-primary
duration-300 hover:border-theme-primary hover:border-opacity-5 hover:bg-opacity-5 transition-all
border border-transparent px-4 rounded-full`,
{
"bg-theme-primary bg-opacity-5 border-opacity-5 border-theme-primary text-theme-accent":
`/${selected}` === href || (selected === null && href === "/"),
}
},
)}
>
<div className="flex gap-4 text-sm">
<div className="flex gap-4 text-sm text-theme-body">
{icon}
{children}
</div>
Expand Down
12 changes: 6 additions & 6 deletions components/common/portable/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ const components: PortableTextComponents = {
marks: {
latex: (props: any) => {
return (
<span className="mx-2 text-theme-accent text-[14px]">
<InlineMath>
{props.text}
</InlineMath>
<span className="mx-2 text-theme-accent text-[14px]">
<InlineMath>{props.text}</InlineMath>
</span>
);
},
em: ({ children }) => (
<em className="italic text-theme-accent underline ">{children}</em>
),
strong: ({ children }) => (
<strong className="text-theme-accent font-mono text-[14px]">{children}</strong>
<strong className="text-theme-accent">
{children}
</strong>
),
code: ({ children }) => (
<code className="bg-theme-primary-opaque p-2 text-[12px] rounded-md">
<code className="bg-theme-primary-opaque p-1 text-[14px] rounded-md">
{children}
</code>
),
Expand Down
11 changes: 7 additions & 4 deletions components/common/portable/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use client'
"use client";
import { PortableText } from "@portabletext/react";
import { useEffect } from "react";
import Prism from "prismjs";
Expand All @@ -9,6 +9,11 @@ require("prismjs/components/prism-typescript");
require("prismjs/components/prism-css");
require("prismjs/components/prism-jsx");
require("prismjs/components/prism-python");
require("prismjs/components/prism-bash");
require("prismjs/components/prism-lua");
require("prismjs/components/prism-rust");
require("prismjs/components/prism-git");
require("prismjs/components/prism-git");

type Props = {
value: any;
Expand All @@ -18,7 +23,5 @@ export default function PortableBody({ value }: Props) {
useEffect(() => {
Prism.highlightAll();
}, []);
return (
<PortableText value={value} components={components} />
);
return <PortableText value={value} components={components} />;
}
4 changes: 2 additions & 2 deletions components/pages/home/intro/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ export function Intro() {
return (
<div className="flex flex-col gap-4 mt-8">
<h1 className="text-2xl font-bold text-white">
Hello, I&apos;m <span className="text-theme-primary">Arkar Dev </span> 👋
Hello, I&apos;m <span className="text-theme-primary">Arkar</span>{" "}
👋
</h1>
<p className="text-gray-300 leading-relaxed ">
An inspiring software engineer, Coding with a strong passion for design
and computer science, I enjoy creating amazing things and building
blazingly-fast websites.
</p>

</div>
);
}
Binary file removed public/images/profile.jpeg
Binary file not shown.
Binary file removed public/images/profile.jpg
Binary file not shown.
Binary file added public/images/profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 84bedd0

Please sign in to comment.