Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge #87

Merged
merged 31 commits into from
Jan 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
51f00f7
Merge pull request #38 from SandeepKumarYaramchitti/release
mostlycloudysky Dec 28, 2022
85492d9
Merge pull request #42 from SandeepKumarYaramchitti/release
mostlycloudysky Dec 29, 2022
973a733
Merge pull request #45 from SandeepKumarYaramchitti/release
mostlycloudysky Dec 30, 2022
19330aa
Merge pull request #47 from SandeepKumarYaramchitti/develop
mostlycloudysky Dec 30, 2022
4750882
Merge pull request #50 from SandeepKumarYaramchitti/release
mostlycloudysky Dec 30, 2022
eed1f6d
Merge pull request #55 from SandeepKumarYaramchitti/release
mostlycloudysky Jan 2, 2023
fd1207f
Merge pull request #61 from SandeepKumarYaramchitti/release
mostlycloudysky Jan 4, 2023
f1bab92
fix featured post card
mostlycloudysky Jan 4, 2023
a08ac7e
Merge pull request #64 from SandeepKumarYaramchitti/add-home-page
mostlycloudysky Jan 4, 2023
e00c33e
add sanity support
mostlycloudysky Jan 5, 2023
c97ebcf
Merge pull request #71 from SandeepKumarYaramchitti/add-home-page
mostlycloudysky Jan 5, 2023
caedee1
Merge pull request #72 from SandeepKumarYaramchitti/develop
mostlycloudysky Jan 5, 2023
9dc3b47
add feature flag filter
mostlycloudysky Jan 6, 2023
59fa19a
Merge pull request #73 from SandeepKumarYaramchitti/add-home-page
mostlycloudysky Jan 6, 2023
af0a451
Merge pull request #74 from SandeepKumarYaramchitti/develop
mostlycloudysky Jan 6, 2023
a488b1c
render data from featured blogs
mostlycloudysky Jan 6, 2023
85e547a
Merge pull request #75 from SandeepKumarYaramchitti/add-home-page
mostlycloudysky Jan 6, 2023
eef27bb
Merge pull request #76 from SandeepKumarYaramchitti/develop
mostlycloudysky Jan 6, 2023
f6c687c
add blogs component to render blog data
mostlycloudysky Jan 6, 2023
f04aeb7
Update blogs.tsx
mostlycloudysky Jan 6, 2023
b19237e
Merge pull request #80 from SandeepKumarYaramchitti/add-home-page
mostlycloudysky Jan 6, 2023
895dcfb
Merge pull request #81 from SandeepKumarYaramchitti/develop
mostlycloudysky Jan 6, 2023
ba45a9c
more updates
mostlycloudysky Jan 7, 2023
ad39bc1
working code with code snippet example
mostlycloudysky Jan 7, 2023
7f2dc7a
add code highlight
mostlycloudysky Jan 7, 2023
2836236
Merge pull request #83 from SandeepKumarYaramchitti/add-home-page
mostlycloudysky Jan 7, 2023
0b44ebf
Update CodeBlock.tsx
mostlycloudysky Jan 7, 2023
750ccb5
Merge pull request #84 from SandeepKumarYaramchitti/add-home-page
mostlycloudysky Jan 7, 2023
a56e675
Update [slug].tsx
mostlycloudysky Jan 8, 2023
d4ee4a8
Merge pull request #85 from SandeepKumarYaramchitti/add-home-page
mostlycloudysky Jan 8, 2023
ea4f661
Merge pull request #86 from SandeepKumarYaramchitti/develop
mostlycloudysky Jan 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions components/BlogPosts.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
import React from 'react'
import {EyeIcon} from '@heroicons/react/outline'
import { Post } from '../typings'
import Link from 'next/link'

function BlogPosts() {
interface Props {
post: Post
}

function BlogPosts({post}: Props) {
return (
<>
<div className=' pt-5 pl-5 pr-5 pb-5 cursor-pointer'>
<div className=' pt-5 pl-5 pr-5 pb-5'>
{/* Blog Content */}
<div className=''>
<p className='text-lg md:text-xl font-bold w-full text-gray-900 dark:text-gray-100 tracking-tight '>A TailwindCSS made blog post</p>
<p className=' text-xs font-normal text-skin-base leading-5 pt-1 pb-1'><span className=''>Dec 28, 2022</span> .Published in Medium, DevTo and HashNode</p>
<Link key={post._id} href={`post/${post.slug.current}`}>
<p className='text-lg md:text-xl font-bold w-full text-gray-900 dark:text-gray-100 tracking-tight cursor-pointer hover:underline '>{post.title}</p>
</Link>
<p className=' text-xs font-normal text-skin-base leading-5 pt-1 pb-1'><span className=''>{new Date(post._createdAt).toLocaleString()}</span> .Published in Medium, DevTo and HashNode</p>
<p className="mt-3 mb-4 text-md font-normal text-skin-base ">
Metus potenti velit sollicitudin porttitor magnis elit lacinia tempor varius, ut cras orci vitae
parturient id nisi vulputate consectetur, primis venenatis cursus tristique malesuada viverra
congue risus.
{post.description}
</p>

{/* Tags */}
Expand All @@ -21,7 +27,8 @@ function BlogPosts() {
<span
className="inline-flex items-center leading-none px-2.5 py-1.5 text-sm font-medium text-skin-inverted rounded-full border border-skin-input"
>
Programming
{post.categories?.title}

</span>
<p className=' text-sm font-normal text-skin-base leading-5'>2 mins read</p>
</div>
Expand Down
30 changes: 30 additions & 0 deletions components/CodeBlock.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import React from 'react'
import SyntaxHighlighter from 'react-syntax-highlighter'
import d from "react-syntax-highlighter/dist/cjs/styles/prism/nord"
import vs2015 from "react-syntax-highlighter/dist/cjs/styles/hljs/night-owl";

interface Props {
code: string,
language: string
}


export default function CodeBlock({ code, language }: Props) {

return (
<SyntaxHighlighter
language={language}
style={vs2015}
showLineNumbers={language !== 'sh'}
customStyle={{
marginTop: 0,
borderTopLeftRadius: 0,
borderTopRightRadius: 0,
}}
wrapLines
wrapLongLines
>
{code}
</SyntaxHighlighter>
)
}
21 changes: 13 additions & 8 deletions components/FeaturedPosts.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
import React from 'react'
import {EyeIcon} from '@heroicons/react/outline'
function FeaturedPosts() {
import { Post } from '../typings'
interface Props {
post: Post
}

function FeaturedPosts({post}: Props) {

return (
<div className='border bg-surface rounded border-gray-200 p-3 mb-3 overflow-hidden hover:scale-105 transition-transform duration-200 ease-in-out cursor-pointer'>
<div className='border bg-surface rounded border-gray-200 p-3 mb-3 overflow-hidden'>
{/* Blog Content */}
<div className=''>
<p className='text-lg md:text-xl font-bold w-full text-gray-900 dark:text-gray-100 tracking-tight '>A TailwindCSS made blog post</p>
<p className='text-lg md:text-xl font-bold w-full text-gray-900 dark:text-gray-100 tracking-tight cursor-pointer hover:underline'>{post.title}</p>
<p className=' text-xs font-normal text-skin-base leading-5 pt-1 pb-1'><span className=''>{new Date(post._createdAt).toLocaleString()}</span> .Published in Medium, DevTo and HashNode</p>
<p className="mt-3 mb-4 text-md font-normal text-skin-base ">
Metus potenti velit sollicitudin porttitor magnis elit lacinia tempor varius, ut cras orci vitae
parturient id nisi vulputate consectetur, primis venenatis cursus tristique malesuada viverra
congue risus.

{post.description}
</p>
{/* Tags */}
<div className='mt-2 flex items-center justify-between'>
<div className='flex items-center space-x-2'>
<span
className="inline-flex items-center leading-none px-2.5 py-1.5 text-sm font-medium text-skin-inverted rounded-full border border-skin-input"
>
Programming
{post.categories?.title}
</span>
<p className=' text-sm font-normal text-skin-base leading-5'>2 mins read</p>
</div>
Expand Down
6 changes: 1 addition & 5 deletions components/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,7 @@ function Profile() {
</LinkPreview>
<LinkPreview href='https://medium.com/@sandeepkumary'>
<button className=" bg-slate-200 p-2 font-semibold inline-flex items-center space-x-2 rounded-full">
<svg className="w-6 h-6 fill-current" xmlns="http://www.w3.org/2000/svg"
aria-label="dev.to" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"/><path fill="#ffffff" d="M140.47 203.94h-17.44v104.47h17.45c10.155-.545 17.358-8.669 17.47-17.41v-69.65c-.696-10.364-7.796-17.272-17.48-17.41zm45.73 87.25c0 18.81-11.61 47.31-48.36 47.25h-46.4V172.98h47.38c35.44 0 47.36 28.46 47.37 47.28zm100.68-88.66H233.6v38.42h32.57v29.57H233.6v38.41h53.29v29.57h-62.18c-11.16.29-20.44-8.53-20.72-19.69V193.7c-.27-11.15 8.56-20.41 19.71-20.69h63.19zm103.64 115.29c-13.2 30.75-36.85 24.63-47.44 0l-38.53-144.8h32.57l29.71 113.72 29.57-113.72h32.58z"/></svg>
<svg className="w-6 h-6 fill-current dark:bg-black" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7.826 10.083a.784.784 0 0 0-.468-.175h-.701v4.198h.701a.786.786 0 0 0 .469-.175c.155-.117.233-.292.233-.525v-2.798c.001-.233-.079-.408-.234-.525zM19.236 3H4.764C3.791 3 3.002 3.787 3 4.76v14.48c.002.973.791 1.76 1.764 1.76h14.473c.973 0 1.762-.787 1.764-1.76V4.76A1.765 1.765 0 0 0 19.236 3zM9.195 13.414c0 .755-.466 1.901-1.942 1.898H5.389V8.665h1.903c1.424 0 1.902 1.144 1.903 1.899v2.85zm4.045-3.562H11.1v1.544h1.309v1.188H11.1v1.543h2.142v1.188h-2.498a.813.813 0 0 1-.833-.792V9.497a.813.813 0 0 1 .792-.832h2.539l-.002 1.187zm4.165 4.632c-.531 1.235-1.481.99-1.906 0l-1.548-5.818h1.309l1.193 4.569 1.188-4.569h1.31l-1.546 5.818z"/></svg>
</button>
</LinkPreview>

Expand Down
1 change: 1 addition & 0 deletions components/VisitorLogs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function VisitorLogs() {
aria-label="Email for newsletter"
placeholder="Enter your comment"
type="email"
value=""
autoComplete="email"
required
className="px-4 py-2 mt-1 mb-5 outline-none block w-full border border-green-600 rounded-md pr-32"
Expand Down
Loading