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

user can now upload logo from storage #20

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Shardul-Kavar
Copy link

@Shardul-Kavar Shardul-Kavar commented Oct 2, 2022

@netlify
Copy link

netlify bot commented Oct 2, 2022

Deploy Preview for adoring-allen-cc4d44 ready!

Name Link
🔨 Latest commit 7474b13
🔍 Latest deploy log https://app.netlify.com/sites/adoring-allen-cc4d44/deploys/633f8922bc959b000870e163
😎 Deploy Preview https://deploy-preview-20--adoring-allen-cc4d44.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@yashikajotwani12
Copy link
Collaborator

I tested this and it LGTM, wdyt @vedant-jain03 ?
Good Work @Shardul-Kavar 👍

@vedant-jain03
Copy link
Owner

@Shardul-Kavar good work, could you please attach the working in form of video or GIF!

Copy link
Owner

@vedant-jain03 vedant-jain03 left a comment

Choose a reason for hiding this comment

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

LGTM, Great work @Shardul-Kavar
Last thing, could you check this PR compatibility with #19

@Shardul-Kavar
Copy link
Author

@Shardul-Kavar good work, could you please attach the working in form of video or GIF!

yeah sure

@Shardul-Kavar
Copy link
Author

Shardul-Kavar commented Oct 6, 2022

LGTM, Great work @Shardul-Kavar Last thing, could you check this PR compatibility with #19

I've added Logo to all remaining templates, It's PR compatible as well but where should it's placement be... like directly above "course director"?

Copy link
Owner

@vedant-jain03 vedant-jain03 left a comment

Choose a reason for hiding this comment

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

@Shardul-Kavar Good work, I tested it and find out the other templates logo is not aligned, try my suggestion!

Thanks!

<h1 style={{ fontSize: '3rem', color: 'black',position: 'absolute', top:'9rem',left:'25px',wordBreak:'break-all' }}>{this.props.name === '' ? 'Name' : this.props.name}</h1>
<h6 style={{ fontSize: '15px', fontWeight: '600', color: '#213a62',width:'60%',position: 'absolute', top:'17rem',left:'27px',wordBreak:'break-all' }}>{this.props.desc === '' ? 'for the active participation in the event and for giving efforts,ideas and Knowledge.' : this.props.desc}</h6>
<h1 style={{ fontSize: '15px', color: 'black',position: 'absolute', top:'19.95rem',left:'8.6rem',wordBreak:'break-all' }}>{this.props.author === '' ? 'Author Name' : this.props.author}</h1>
{this.props.logo === '' ? '' : <img src={this.props.logo} style={{ position: 'absolute', width: '4rem', borderRadius: '50%', top: '10%', left: '50%', transform: 'translate(-50%,0)' }} alt="logo" />}
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
{this.props.logo === '' ? '' : <img src={this.props.logo} style={{ position: 'absolute', width: '4rem', borderRadius: '50%', top: '10%', left: '50%', transform: 'translate(-50%,0)' }} alt="logo" />}
{this.props.logo === '' ? '' : <img src={this.props.logo} style={{ position: 'absolute', width: '4rem', borderRadius: '50%', top: '4%', left: '93%', transform: 'translate(-50%,0)' }} alt="logo" />}

@@ -104,16 +104,16 @@ export class ComponentToPrint extends React.PureComponent {
<h2 style={{ fontSize: '12px', color: '#781114', textDecoration: 'underline', textTransform: 'uppercase' }}>Course Director</h2>
<h1 style={{ fontSize: '20px', color: '#0300b0', textTransform: 'uppercase' }}>{this.props.author === '' ? 'Author Name' : this.props.author}</h1>
</div>
{this.props.logo === '' ? "" : <img src={this.props.logo} style={{ position: 'absolute', width: '6rem', borderRadius: '50%', top: '20%', left: '35%' }} alt="logo" />}
{this.props.logo === '' ? "" : <img src={this.props.logo} style={{ position: 'absolute', width: '6rem', borderRadius: '50%', top: '20%', left: '50%', transform: 'translate(-50%,0)' }} alt="logo" />}
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
{this.props.logo === '' ? "" : <img src={this.props.logo} style={{ position: 'absolute', width: '6rem', borderRadius: '50%', top: '20%', left: '50%', transform: 'translate(-50%,0)' }} alt="logo" />}
{this.props.logo === '' ? "" : <img src={this.props.logo} style={{ position: 'absolute', width: '4rem', borderRadius: '50%', top: '25%', left: '40%', transform: 'translate(-50%,0)' }} alt="logo" />}

@@ -125,16 +125,16 @@ export class ComponentToPrint extends React.PureComponent {
<h2 style={{ fontSize: '12px', color: 'white', textDecoration: 'underline' }}>Course Director</h2>
<h1 style={{ fontSize: '20px', color: '#ffff58', fontWeight: '100'}}>{this.props.author === '' ? 'Author Name' : this.props.author}</h1>
</div>
{this.props.logo === '' ? '' : <img src={this.props.logo} style={{ position: 'absolute', width: '4rem', borderRadius: '50%', top: '10%', left: '45%' }} alt="logo" />}
{this.props.logo === '' ? '' : <img src={this.props.logo} style={{ position: 'absolute', width: '4rem', borderRadius: '50%', top: '26%', left: '50%', transform: 'translate(-50%,0)' }} alt="logo" />}
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
{this.props.logo === '' ? '' : <img src={this.props.logo} style={{ position: 'absolute', width: '4rem', borderRadius: '50%', top: '26%', left: '50%', transform: 'translate(-50%,0)' }} alt="logo" />}
{this.props.logo === '' ? '' : <img src={this.props.logo} style={{ position: 'absolute', width: '3rem', borderRadius: '50%', top: '24%', left: '49%', transform: 'translate(-50%,0)' }} alt="logo" />}

@@ -146,16 +146,16 @@ export class ComponentToPrint extends React.PureComponent {
<h2 style={{ fontSize: '12px', color: 'red', textDecoration: 'underline' }}>Course Director</h2>
<h1 style={{ fontSize: '20px', color: 'black',}}>{this.props.author === '' ? 'Author Name' : this.props.author}</h1>
</div>
{this.props.logo === '' ? '' : <img src={this.props.logo} style={{ position: 'absolute', width: '4rem', borderRadius: '50%', top: '10%', left: '45%' }} alt="logo" />}
{this.props.logo === '' ? '' : <img src={this.props.logo} style={{ position: 'absolute', width: '4rem', borderRadius: '50%', top: '62%', left: '50%', transform: 'translate(-50%,0)' }} alt="logo" />}
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
{this.props.logo === '' ? '' : <img src={this.props.logo} style={{ position: 'absolute', width: '4rem', borderRadius: '50%', top: '62%', left: '50%', transform: 'translate(-50%,0)' }} alt="logo" />}
{this.props.logo === '' ? '' : <img src={this.props.logo} style={{ position: 'absolute', width: '4rem', borderRadius: '50%', top: '57%', left: '49%', transform: 'translate(-50%,0)' }} alt="logo" />}

@@ -167,16 +167,16 @@ export class ComponentToPrint extends React.PureComponent {
<h2 style={{ fontSize: '12px', color: '#c929ff', textDecoration: 'underline' }}>Course Director</h2>
<h1 style={{ fontSize: '20px', color: 'rgb(19, 22, 207)',}}>{this.props.author === '' ? 'Author Name' : this.props.author}</h1>
</div>
{this.props.logo === '' ? '' : <img src={this.props.logo} style={{ position: 'absolute', width: '4rem', borderRadius: '50%', top: '10%', left: '45%' }} alt="logo" />}
{this.props.logo === '' ? '' : <img src={this.props.logo} style={{ position: 'absolute', width: '4rem', borderRadius: '50%', top: '62%', left: '50%', transform: 'translate(-50%,0)' }} alt="logo" />}
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
{this.props.logo === '' ? '' : <img src={this.props.logo} style={{ position: 'absolute', width: '4rem', borderRadius: '50%', top: '62%', left: '50%', transform: 'translate(-50%,0)' }} alt="logo" />}
{this.props.logo === '' ? '' : <img src={this.props.logo} style={{ position: 'absolute', width: '4rem', borderRadius: '50%', top: '57%', left: '49%', transform: 'translate(-50%,0)' }} alt="logo" />}

@@ -188,7 +188,7 @@ export class ComponentToPrint extends React.PureComponent {
<h2 style={{ fontSize: '12px', color: '#0edee6', textDecoration: 'underline' }}>Course Director</h2>
<h1 style={{ fontSize: '20px', color: 'rgb(6, 124, 214)',}}>{this.props.author === '' ? 'Author Name' : this.props.author}</h1>
</div>
{this.props.logo === '' ? '' : <img src={this.props.logo} style={{ position: 'absolute', width: '4rem', borderRadius: '50%', top: '10%', left: '45%' }} alt="logo" />}
{this.props.logo === '' ? '' : <img src={this.props.logo} style={{ position: 'absolute', width: '4rem', borderRadius: '50%', top: '61%', left: '53%', transform: 'translate(-50%,0)' }} alt="logo" />}
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
{this.props.logo === '' ? '' : <img src={this.props.logo} style={{ position: 'absolute', width: '4rem', borderRadius: '50%', top: '61%', left: '53%', transform: 'translate(-50%,0)' }} alt="logo" />}
{this.props.logo === '' ? '' : <img src={this.props.logo} style={{ position: 'absolute', width: '4rem', borderRadius: '50%', top: '57%', left: '52%', transform: 'translate(-50%,0)' }} alt="logo" />}

@Shardul-Kavar
Copy link
Author

Hi, @vedant-jain03 I hope this finds you well and I know it's after a long time but can you give me pointers to resolve this PR?

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.

feat: option to import the logo from desktop
3 participants