From d506b225a1d06755ab45e59c3e6834e4acdc53dd Mon Sep 17 00:00:00 2001
From: Nadun Kawshika <107237482+HewageNKM@users.noreply.github.com>
Date: Thu, 15 Aug 2024 21:43:22 +0530
Subject: [PATCH] basic home page complete
---
.eslintrc.json | 3 -
.gitignore | 36 -
.idea/workspace.xml | 169 -
README.md | 16 -
app/globals.css | 3 -
app/layout.tsx | 27 -
app/page.tsx | 16 -
app/projects/[id].tsx | 10 -
app/projects/index.tsx | 11 -
components/Header.tsx | 14 +
components/Hero.tsx | 11 +-
components/ui/EmailButton.tsx | 26 +-
components/ui/Footer.tsx | 10 +-
components/ui/Logo.tsx | 6 +-
data/index.ts | 3 +-
data/party.json | 1 +
next.config.mjs | 4 -
package-lock.json | 6298 ---------------------------------
package.json | 31 -
postcss.config.mjs | 8 -
public/logo.ico | Bin 48014 -> 0 bytes
public/next.svg | 1 -
public/vercel.svg | 1 -
tailwind.config.ts | 20 -
tsconfig.json | 26 -
25 files changed, 52 insertions(+), 6699 deletions(-)
delete mode 100644 .eslintrc.json
delete mode 100644 .gitignore
delete mode 100644 .idea/workspace.xml
delete mode 100644 README.md
delete mode 100644 app/globals.css
delete mode 100644 app/layout.tsx
delete mode 100644 app/page.tsx
delete mode 100644 app/projects/[id].tsx
delete mode 100644 app/projects/index.tsx
create mode 100644 components/Header.tsx
create mode 100644 data/party.json
delete mode 100644 next.config.mjs
delete mode 100644 package-lock.json
delete mode 100644 package.json
delete mode 100644 postcss.config.mjs
delete mode 100644 public/logo.ico
delete mode 100644 public/next.svg
delete mode 100644 public/vercel.svg
delete mode 100644 tailwind.config.ts
delete mode 100644 tsconfig.json
diff --git a/.eslintrc.json b/.eslintrc.json
deleted file mode 100644
index bffb357..0000000
--- a/.eslintrc.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "extends": "next/core-web-vitals"
-}
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index fd3dbb5..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,36 +0,0 @@
-# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
-
-# dependencies
-/node_modules
-/.pnp
-.pnp.js
-.yarn/install-state.gz
-
-# testing
-/coverage
-
-# next.js
-/.next/
-/out/
-
-# production
-/build
-
-# misc
-.DS_Store
-*.pem
-
-# debug
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-
-# local env files
-.env*.local
-
-# vercel
-.vercel
-
-# typescript
-*.tsbuildinfo
-next-env.d.ts
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
deleted file mode 100644
index d869be7..0000000
--- a/.idea/workspace.xml
+++ /dev/null
@@ -1,169 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {
- "lastFilter": {
- "state": "OPEN",
- "assignee": "HewageNKM"
- }
-}
- {
- "selectedUrlAndAccountId": {
- "url": "https://github.com/HewageNKM/hewagenkm.github.io.git",
- "accountId": "8555f698-c216-4080-9251-6d5099e086ef"
- }
-}
- {
- "customColor": "",
- "associatedIndex": 8
-}
-
-
-
-
-
-
-
-
- {
- "keyToString": {
- "RunOnceActivity.ShowReadmeOnStart": "true",
- "git-widget-placeholder": "master",
- "kotlin-language-version-configured": "true",
- "last_opened_file_path": "/home/kawishika/Documents/Projects/Web/hewagenkm.github.io/data",
- "node.js.detected.package.eslint": "true",
- "node.js.detected.package.tslint": "true",
- "node.js.selected.package.eslint": "(autodetect)",
- "node.js.selected.package.tslint": "(autodetect)",
- "nodejs_package_manager_path": "npm",
- "npm.dev.executor": "Run",
- "project.structure.last.edited": "Global Libraries",
- "project.structure.proportion": "0.0",
- "project.structure.side.proportion": "0.2",
- "settings.editor.selected.configurable": "com.github.copilot.settings.ApplicationConfigurable",
- "ts.external.directory.path": "/home/kawishika/Documents/Projects/Web/hewagenkm.github.io/node_modules/typescript/lib",
- "vue.rearranger.settings.migration": "true"
- }
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1723623713564
-
-
- 1723623713564
-
-
-
-
-
- 1723633721711
-
-
-
- 1723633721712
-
-
-
- 1723633779784
-
-
-
- 1723633779784
-
-
-
- 1723641722322
-
-
-
- 1723641722322
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/README.md b/README.md
deleted file mode 100644
index 9d895d8..0000000
--- a/README.md
+++ /dev/null
@@ -1,16 +0,0 @@
-
-# Portfolio
-
-Portfolio for demonstrate my skills and projects I have worked on.
-
-[Live Demo](https://hewagenkm.github.io)
-
-## Technologies
-
-- Reactjs
-- TypeScript
-- Tailwind CSS
-
-## Authors
-
-- [@Nadun Kawishika](https://www.github.com/HewageNKM)
\ No newline at end of file
diff --git a/app/globals.css b/app/globals.css
deleted file mode 100644
index bd6213e..0000000
--- a/app/globals.css
+++ /dev/null
@@ -1,3 +0,0 @@
-@tailwind base;
-@tailwind components;
-@tailwind utilities;
\ No newline at end of file
diff --git a/app/layout.tsx b/app/layout.tsx
deleted file mode 100644
index 7ee1de5..0000000
--- a/app/layout.tsx
+++ /dev/null
@@ -1,27 +0,0 @@
-import type {Metadata} from "next";
-import "./globals.css";
-import { Inter } from 'next/font/google'
-
-const inter = Inter({ subsets: ['latin'] })
-
-export const metadata: Metadata = {
- title: "Nadun's Portfolio",
- description: "Modern And Minimalist Portfolio For Demonstrate My Skills",
-};
-
-export default function RootLayout({
- children,
- }: Readonly<{
- children: React.ReactNode;
-}>) {
- return (
-
-
-
-
-
- {children}
-
-
- );
-}
diff --git a/app/page.tsx b/app/page.tsx
deleted file mode 100644
index 085d53b..0000000
--- a/app/page.tsx
+++ /dev/null
@@ -1,16 +0,0 @@
-import Hero from "../components/Hero";
-import Logo from "../components/ui/Logo";
-import Footer from "../components/ui/Footer";
-import React from "react";
-import EmailButton from "../components/ui/EmailButton";
-
-export default function Home() {
- return (
-
-
-
-
-
-
- );
-}
diff --git a/app/projects/[id].tsx b/app/projects/[id].tsx
deleted file mode 100644
index 2e8fe0d..0000000
--- a/app/projects/[id].tsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import React from 'react';
-
-const Id = () => {
- return (
-
- [Id]
-
- );
-};
-export default Id
diff --git a/app/projects/index.tsx b/app/projects/index.tsx
deleted file mode 100644
index bb86369..0000000
--- a/app/projects/index.tsx
+++ /dev/null
@@ -1,11 +0,0 @@
-import React from 'react';
-
-const Index = () => {
- return (
-
-
-
- );
-};
-
-export default Index;
\ No newline at end of file
diff --git a/components/Header.tsx b/components/Header.tsx
new file mode 100644
index 0000000..9fd7b3e
--- /dev/null
+++ b/components/Header.tsx
@@ -0,0 +1,14 @@
+import React from 'react';
+import Logo from "@/components/ui/Logo";
+import EmailButton from "@/components/ui/EmailButton";
+
+const Header = () => {
+ return (
+
+
+
+
+ );
+};
+
+export default Header;
\ No newline at end of file
diff --git a/components/Hero.tsx b/components/Hero.tsx
index 29adb99..756d027 100644
--- a/components/Hero.tsx
+++ b/components/Hero.tsx
@@ -1,8 +1,17 @@
+"use client";
import React from "react";
+import {motion} from "framer-motion";
const Hero = () => {
return (
-
+
+
+
+
+
+ Hello, I'm Nadun
+ A Passionate Mobile and Web Developer base in Sri Lanka.
+
);
}
diff --git a/components/ui/EmailButton.tsx b/components/ui/EmailButton.tsx
index c9a5b30..5aadeaf 100644
--- a/components/ui/EmailButton.tsx
+++ b/components/ui/EmailButton.tsx
@@ -1,21 +1,27 @@
-"use client";
-import React, {useState} from 'react';
-import {GoCopy} from "react-icons/go";
+"use client"
import {motion} from "framer-motion";
+import {useState} from "react";
+import {GoCopy} from "react-icons/go";
+import {arrow} from "@/data";
+import Lottie from "lottie-react";
+import {useGlobalContext} from "@/context/GlobalProvider";
const EmailButton = () => {
const [copied, setCopied] = useState(false);
-
+ const {play, setPlay} = useGlobalContext();
const handleClick = () => {
- // @ts-ignore
- navigator.clipboard.writeText(process.env.NEXT_PUBLIC_EMAIL)
setCopied(true)
}
return (
-