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

feat: Update Landing page background Image #471

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

Conversation

Chifez
Copy link
Collaborator

@Chifez Chifez commented Sep 9, 2024

What does this PR do?

This PR allows the user to do the following

  • change the default background image of the landing page
  • hide or show the background image

Fixes #467

bandicam.2024-09-09.15-19-24-227.mp4

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Chore (refactoring code, technical debt, workflow improvements)
  • Enhancement (small improvements)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change adds a new database migration
  • This change requires a documentation update

How should this be tested?

  • run on localhost

Checklist

Required

  • Filled out the "How to test" section in this PR
  • Self-reviewed my own code
  • Commented on my code in hard-to-understand bits
  • Ran pnpm build
  • Checked for warnings, there are none
  • Removed all console.logs
  • Merged the latest changes from main onto my branch with git pull origin main
  • My changes don't cause any responsiveness issues

Appreciated

  • If a UI change was made: Added a screen recording or screenshots to this PR
  • Updated the ClassroomIO Docs if changes were necessary

Copy link

github-actions bot commented Sep 9, 2024

Thank you for following the naming conventions for pull request titles! 🙏

Comment on lines -589 to -597
<style>
.banner {
background: url('/images/org-landingpage-banner.jpeg') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
</style>
Copy link
Owner

Choose a reason for hiding this comment

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

@Chifez Why did you remove the default background?

Did you think about what happens for users that don't have this setting enabled?

You've just broken the UI for previous customers while adding a new functionality for new customers.

@@ -81,6 +85,11 @@ export const landingPageSettings: Writable<OrgLandingPageJson> = writable({
type: 'video',
show: true
},
background: {
image:
'https://tapaozmyjsuykgerrfkt.supabase.co/storage/v1/object/public/avatars/landingpage/riverside.jpeg',
Copy link
Owner

Choose a reason for hiding this comment

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

Can you use the image we used for the previous background?

Copy link

vercel bot commented Sep 17, 2024

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

Name Status Preview Comments Updated (UTC)
cio-com ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 17, 2024 7:52am
cio-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 17, 2024 7:52am

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.

Allow editing of the landing page background image
2 participants