Skip to content

Commit 9420f9f

Browse files
committed
add rn-chat
1 parent 747c9e9 commit 9420f9f

File tree

14 files changed

+62
-8
lines changed

14 files changed

+62
-8
lines changed

src/components/ProjectCard.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Image } from 'astro:assets';
44
55
import { getPublishedOrUpdatedDate } from '@/modules/common';
66
import Link from '@/components/Link.astro';
7+
import { DRAFT_TEXT } from '@/constants/data';
78
import { IMAGE_SIZES } from '@/constants/image';
89
import { ROUTES } from '@/constants/routes';
910
import { formatDate, formatDateIso } from '@/utils/datetime';
@@ -17,7 +18,7 @@ export interface Props {
1718
const { project } = Astro.props;
1819
1920
const { slug, data } = project;
20-
const { title, description, heroImage, heroAlt, publishDate, updatedDate } = data;
21+
const { title, description, heroImage, heroAlt, publishDate, updatedDate, draft } = data;
2122
2223
const { lastAccessDate, isUpdatedDate } = getPublishedOrUpdatedDate({
2324
publishDate,
@@ -36,6 +37,7 @@ const { lastAccessDate, isUpdatedDate } = getPublishedOrUpdatedDate({
3637
<h4 class="b-h4 break-words line-clamp-2 mb-0">
3738
<Link href={`${ROUTES.PROJECTS}${slug}`} variant="heading">
3839
{title}
40+
{draft && <sup class="text-sm text-red-500 ml-1">{DRAFT_TEXT}</sup>}
3941
</Link>
4042
</h4>
4143
{description && <p class="text-sm text-captions mb-2">{description}</p>}

src/content/project/2014/02-13-example-project-1/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ description: Description of the first project
44
heroImage: '../../../../content/project/2014/02-13-example-project-1/_images/flowers-store.jpg'
55
heroAlt: Flowers store
66
publishDate: 2014-02-13
7+
draft: true
78
---
89

910
import { Image } from 'astro:assets';

src/content/project/2014/03-15-example-project-2/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ heroImage: '../../../../content/project/2014/03-15-example-project-2/_images/cyc
55
heroAlt: This is bicycle
66
publishDate: 2014-03-15
77
updatedDate: 2014-04-21
8+
draft: true
89
---
910

1011
import { Image } from 'astro:assets';

src/content/project/2014/05-16-example-project-3/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: This is the third project
33
description: Description of the third project
44
heroImage: '../../../../content/project/2014/05-16-example-project-3/_images/morning1.jpg'
55
publishDate: 2014-05-16
6+
draft: true
67
---
78

89
import { Image } from 'astro:assets';

src/content/project/2019/.gitkeep

Whitespace-only changes.

src/content/project/2019/09-29-redux-ecommerce/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import ReduxEcommerceImage from '../../../../content/project/2019/09-29-redux-ec
1919

2020
E-commerce website with React and Redux.
2121

22-
## Goal
22+
## Goals
2323

2424
Build a basic e-commerce website.
2525

429 KB
Loading
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
title: RN chat
3+
description: React Native chat app.
4+
heroImage: '../../../../content/project/2019/10-23-rn-chat/_images/rn-chat.png'
5+
heroAlt: React Native chat screens
6+
publishDate: 2019-10-23
7+
---
8+
9+
import { Image } from 'astro:assets';
10+
import Link from '../../../../components/Link.astro';
11+
import { IMAGE_SIZES } from '../../../../constants/image';
12+
import RnChatImage from '../../../../content/project/2019/10-23-rn-chat/_images/rn-chat.png';
13+
14+
# RN chat
15+
16+
<Image {...IMAGE_SIZES.FIXED.MDX_LG} src={RnChatImage} class="shadow-lg shadow-base-300" alt="React Native chat screens" />
17+
18+
## Overview
19+
20+
React Native chat app.
21+
22+
## Goals
23+
24+
Learn React Native by building a basic chat app with users and groups.
25+
26+
## Tech stack
27+
28+
- React Native, Apollo GraphQL, NativeBase
29+
- Sequelize, PostgreSQL
30+
31+
## Features
32+
33+
- Auth, profile
34+
- Users with friends relations, public and private groups
35+
- Real time updates with refetching and subscriptions
36+
37+
## Implementation details
38+
39+
You can find more implementation details in the <Link href="https://github.com/nemanjam/rn-chat" variant="markdown" target="_blank" title="README.md">README.md</Link> file on Github.
40+
41+
## Lessons learned
42+
43+
- Get practical experience with React Native.
44+
45+
## Links
46+
47+
- **Repository:** <Link href="https://github.com/nemanjam/rn-chat" variant="markdown" target="_blank" title="React Native chat app" />
48+
49+

src/content/project/2020/02-16-audio-twitter/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import AudioTwitterImage from '../../../../content/project/2020/02-16-audio-twit
1919

2020
Twitter clone with audio messages.
2121

22-
## Goal
22+
## Goals
2323

2424
Get practical experience with Apollo GraphQL. Work with audio.
2525

src/content/project/2020/04-12-mern-boilerplate/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import MernBoilerplateImage from '../../../../content/project/2020/04-12-mern-bo
1919

2020
Full stack boilerplate with React, Redux, Express and MongoDB.
2121

22-
## Goal
22+
## Goals
2323

2424
Get practical experience with Redux and Express with Mongoose.
2525

0 commit comments

Comments
 (0)