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

adding rectangle shape and twitter logo in top right #10

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

huskice
Copy link

@huskice huskice commented Nov 30, 2022

Solves issue #6

@huskice huskice closed this Nov 30, 2022
@huskice huskice reopened this Nov 30, 2022
@vercel
Copy link

vercel bot commented Nov 30, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
twipix ✅ Ready (Inspect) Visit Preview Dec 18, 2022 at 8:01PM (UTC)

Copy link

@mannol mannol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey there 👋 , I requested some changes, can you do those before we continue the review? Please also reference original issues for tracking purposes.

Additionally, I've noticed that the feature is missing, as seen in this screenshot:
image

As per original issues, we are missing:

  • A switch that will toggle if the logo is shown or not
  • An option to select aspect ratio (1:1, 16:9 etc.)

{
<Box m='0 auto'>
<Box className='con' style={{background : bg}} minW={pic_size} maxW={pic_size} rounded="sm" px={padX} py={padY} ref={tweetRef}>
<Stack direction={'row'} >
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the point of this <Stack /> here? You only have 1 child here

@@ -2,7 +2,7 @@
import {format} from 'date-fns'
import { Box, Text, Image } from "@chakra-ui/react"

const Tweet = ({tweet, showTime, showMetrics, showSource, showImage}) => {
const Tweet = ({tweet, showTime, showMetrics, showSource}) => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes in this file, as seen here seem to be out-of-scope

styles/main.css Outdated
Comment on lines 56 to 59
white-space: pre-line;
display: flex;
justify-content: center;
align-items: center;
align-content: 'center' ;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove trailing spaces

public/main.css Outdated
@@ -47,11 +46,10 @@ footer {
white-space: pre-line;
display: flex;
justify-content: center;
align-items: center;
align-items: 'center';
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is invalid css. The original is correct:

Suggested change
align-items: 'center';
align-items: center;

setTweetData(null)
}
import Head from "next/head";
import { useState, useRef } from "react";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are too many changes in this file that are a result of running a prettier. Because this project is not using prettier, please disable it, and make your changes again before we can continue review process

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @mannol, since I built this project a long back (when I was still new to programming), it doesnt follow the industry best practices. Do you think I should update the main branch with the best practices like prettier, maybe eslint, typescript? Will that be helpful?

Copy link

@mannol mannol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The toggle icon seems to be working properly, although, when I toggle it it seems to affect the text layout. We should make it such that once toggled it doesn't affect the text (see images).

No icon:
no-icon

With icon (the word "da" gets shifted onto the next line):
image

Also, it would appear that when selecting 1:1 or 16:9 ratio, the outer box changes while the inner box stays the same. We need to make it so that the inner box (the one with the tweet) respects the selected ratio (see sketch for more details)

image

@drkPrince
Copy link
Owner

Hey @huskice, thanks for the PR! Nice idea. Please allow me some time to review this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants