This repository was archived by the owner on Jun 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
58 changed files
with
9,347 additions
and
3,556 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// common functions to simplify the codebase | ||
|
||
|
||
const format = require('date-fns/format') | ||
|
||
export const convertDateToString = (date) => { | ||
return format(new Date(date), 'PPPP') | ||
} | ||
|
||
export const returnSelectedFields = (data) => { | ||
return data.map((_) => { | ||
return { | ||
title: _.title, | ||
date: _.date, | ||
draft: _.draft, | ||
category: _.category, | ||
readingTime: _.readingTime, | ||
slug: _.slug, | ||
} | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./common" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { createClient } from '@supabase/supabase-js'; | ||
|
||
const SupaClient = createClient( process.env.SUPABASE_URL || '', process.env.SUPABASE_API_KEY || ''); | ||
|
||
export { SupaClient }; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
import { CheckMarkSVG } from "../data/assets"; | ||
import { CheckMarkSVG } from "data/assets"; | ||
|
||
/** | ||
*@author Gokul Suresh <[email protected] | ||
*@param {Array} {data} | ||
*@description Component rendering out Experience from the Data provided in constants | ||
*@todo : [] type def every data | ||
*/ | ||
|
||
export default function Experience({ data }) { | ||
return ( | ||
<div className="flex justify-start items-center w-full p-5"> | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from 'react' | ||
|
||
export default function FilterPills({ item, filter, setFilter }) { | ||
if (item.id === filter) { | ||
return ( | ||
<div className="m-2 p-2 px-4 border-2 text-white border-blue-500 bg-blue-500 rounded-xl cursor-pointer" onClick={() => setFilter(item.id)}> | ||
<p>{item.id}</p> | ||
</div> | ||
) | ||
} else { | ||
return ( | ||
<div className="m-2 p-2 px-4 border-2 border-gray-500 dark:border-gray-700 hover:border-2 hover:border-blue-500 hover:text-white hover:bg-blue-500 rounded-xl transition-all duration-200 ease-in-out cursor-pointer" onClick={() => setFilter(item.id)}> | ||
<p>{item.id}</p> | ||
</div> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,14 @@ | ||
import Head from "next/head"; | ||
|
||
/** | ||
* | ||
*@description Layout for all the Pages container comes under layout | ||
*/ | ||
export default function Layout(props) { | ||
const { children, ...customMeta } = props; | ||
const meta = { | ||
title: "Gokul Suresh - Software Developer ", | ||
description: "All my scribbles are available here", | ||
type: "website", | ||
...customMeta, | ||
}; | ||
const { children } = props; | ||
//TODO : customMeta Fix; to dynamically accept it from heirarchy of components... | ||
return ( | ||
<> | ||
<Head> | ||
<title>{meta.title}</title> | ||
<meta content={meta.description} name="description" /> | ||
<meta property="og:type" content={meta.type} /> | ||
<meta property="og:site_name" content="Gokul Suresh" /> | ||
<meta property="og:description" content={meta.description} /> | ||
<meta property="og:title" content={meta.title} /> | ||
<meta property="og:image" content={meta.image} /> | ||
{meta.date && ( | ||
<meta property="article:published_time" content={meta.date} /> | ||
)} | ||
</Head> | ||
<div className="lg:w-6/12 sm:mx-auto min-h-screen p-4">{children}</div> | ||
<div className="lg:w-7/12 sm:mx-auto min-h-screen p-4">{children}</div> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,41 @@ | ||
import Image from "next/image"; | ||
|
||
function RoundedImage(props) { | ||
return ( | ||
<div className={props.tails}> | ||
<Image alt={props.alt} className="rounded-xl" {...props} /> | ||
</div> | ||
); | ||
} | ||
|
||
function SandboxFrame(props) { | ||
return ( | ||
<div className="w-full flex justify-center"> | ||
<Image alt={props.alt} className="rounded-lg" {...props} /> | ||
<iframe | ||
{...props} | ||
className="w-full h-10/12 border-0 rounded-lg" | ||
title="Optimistic UI example" | ||
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking" | ||
></iframe> | ||
</div> | ||
); | ||
} | ||
function Flex({ style, children }) { | ||
return ( | ||
<div className="flex md:flex-row flex-col items-center justify-center"> | ||
{children} | ||
</div> | ||
); | ||
} | ||
|
||
function Grid({ style, children }) { | ||
return <div className='grid p-4 2xl:grid-cols-2 gap-4 justify-center items-center'>{children}</div>; | ||
} | ||
const MDXComponents = { | ||
Image: RoundedImage, | ||
SandboxFrame, | ||
Flex, | ||
Grid, | ||
}; | ||
|
||
export default MDXComponents; |
Oops, something went wrong.