-
-
Notifications
You must be signed in to change notification settings - Fork 290
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
Intro Section in Homepage #2471
base: homepage-revamp
Are you sure you want to change the base?
Conversation
This also sets up a minimal bootstrap setup we can expand on, and fontawesome icons.
These were converted to Flow syntax by hand from the official TypeScript types.
Now that we have the fontawesome types, we can set this to strict.
Fix DS
Correct index.js Fix About.js Fix css Fix css Finalize About css Update About.js
Facts section added to the homepage Add facts Add facts css Correct index.js Correct index.js Fixed Facts.js Updated facts Use spacing class for Facts.js Finalize Facts css Fix Facts section
About Section in the Homepage
Fix Explore.js Fix homepage.less Simplify css and correct the descriptions to have uniformity Fix css for title Fix css for title Simplify css Simplify code and make changes based on reviews Fix changes according to reviews Fix changes Remove fixed height of card Update homepage.less Small fix Update Explore.js Update Explore.js Update Explore.js Update Explore.js
Explore Section in Homepage
Add footer.less and fix css
Fix tests Cleanup Update Footer.js Update MBS-9669.json5 Fix bootstrap js inclusion Hydrate Footer component Update Footer.js Fix review comments
3e389fd
to
271b30e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments for now based on what is on test.mb :)
root/components/home/Blog.js
Outdated
<FontAwesomeIcon | ||
icon={faBlog} | ||
size="lg" | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand maybe having no "Twitter" text for Twitter, but I really don't think this icon is self-explanatory as "Blog". Can we have "Blog" as text by it?
{key: 6, label: 'Area'}, | ||
{key: 7, label: 'Place'}, | ||
{key: 8, label: 'Annotation'}, | ||
{key: 9, label: 'CD Stud'}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stub, not Stud :)
const chipData = [ | ||
{key: 0, label: 'Artist'}, | ||
{key: 1, label: 'Release'}, | ||
{key: 2, label: 'Recording'}, | ||
{key: 3, label: 'Label'}, | ||
{key: 4, label: 'Work'}, | ||
{key: 5, label: 'Release Group'}, | ||
{key: 6, label: 'Area'}, | ||
{key: 7, label: 'Place'}, | ||
{key: 8, label: 'Annotation'}, | ||
{key: 9, label: 'CD Stud'}, | ||
{key: 10, label: 'Editor'}, | ||
{key: 11, label: 'Tag'}, | ||
{key: 12, label: 'Instrument'}, | ||
{key: 13, label: 'Series'}, | ||
{key: 14, label: 'Event'}, | ||
{key: 15, label: 'Documentation'}, | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Showing all of the search options by default is a bit intimidating. A bunch of these (like CD stubs, tags, annotations) are not even entities, even though the search field says "search X entities" :) I'd suggest displaying the few most relevant options by default (Artist, Label, Release maybe?) with a button to show all options.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am fine with a dropdown to showcase the other entities as you suggest but yeah showing them all nicely can be a good flex if we wanna, haha! :)
root/components/home/Intro.js
Outdated
|
||
export default class Intro extends React.Component { | ||
state = { | ||
data: 'Actively looking for a barcode...', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused about this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing the incomplete barcode from this PR. Can make that addition later.
root/components/home/Intro.js
Outdated
className="ms-4 mt-2" | ||
style={{color: 'white', height: '5vh'}} | ||
> | ||
{l(`World's Biggest Open Source Music Database`)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only claim this if you're certain. I'm not, but I also haven't done the research.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure whether there is a downside to claiming. Almost every company I see claims that they are the biggest. Tbh I do believe (without exhaustive research) that MusicBrainz is the largest open-source music database. This statement in any case is powerful and is definitely a pick for me. (aerozol suggested this text btw! :) )
root/components/home/Intro.js
Outdated
return false; | ||
}} | ||
placeholder="Search 41,054,421 Entities" | ||
style={{textTransform: 'capitalize'}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't. Not only is it confusing to see the text displayed differently from what I typed, but it's not even correct in many languages (such as Spanish or French) to capitalize every word of a title.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. Definitely needs to be reverted.
root/components/home/Intro.js
Outdated
<div className="col-4 col-md-2"> | ||
<button | ||
className="btn btn-primary" | ||
onClick={searchButtonClick} | ||
type="button" | ||
> | ||
<FontAwesomeIcon | ||
icon={faSearch} | ||
size="lg" | ||
/> | ||
</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can actually have this touch the end of the search bar rather than float?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right!
root/components/home/Intro.js
Outdated
<button | ||
className="btn btn-b-n" | ||
onClick={this.handleShow} | ||
type="button" | ||
> | ||
<FontAwesomeIcon | ||
icon={faScanner} | ||
size="lg" | ||
/> | ||
</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This button does not show on test at the moment so I'm not sure what the point is supposed to be (https://fontawesome.com/icons/scanner?s=solid ?) but I'm confused about needing a second button other than "search".
Edit: Oh, I understand reading a few lines later that the idea is to have a way to scan a barcode - is this something anyone has expressed an interest on? I'm a bit confused by the addition.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try out the button placed on https://musicbrainz-web.web.app @reosarevok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this for now.
root/components/home/Intro.js
Outdated
<div | ||
className="row ps-2 pe-2" | ||
style={{height: '40vh', overflow: 'hidden'}} | ||
> | ||
{this.props.recentAdditions.map((artwork, index) => ( | ||
<ReleaseArtwork | ||
artwork={artwork} | ||
key={index} | ||
/> | ||
))} | ||
</div> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason for the weirdly off-center, distracting background squares in test? Or is it a bug? It looks like a bug, but I'm not sure :)
@@ -11,6 +11,53 @@ | |||
} | |||
} | |||
|
|||
.intro { | |||
background: linear-gradient(to right, @musicbrainz-purple 0%, @musicbrainz-orange 100%); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All this color seems a bit overpowering to me, but dunno.
Update SearchIcon.js Font Awesome types and minor UI fix Fixed the search bar inside the header and combined the username menu item and the my data menu item. Fix tests Fix tests Update font size
271b30e
to
1ed6dfe
Compare
Fix package.json Update Intro section Fix tests Fix typo Fix implementations Fix artwork implementation Remove min-width for fixing responsive issue Fix css of pages Cleanup
1ed6dfe
to
c5a3b76
Compare
8fde0d5
to
c5a3b76
Compare
ef8d841
to
75b1959
Compare
This section highlights the first few features that a user encounters on the website.