-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Make tag header images scale smoothly in mobile/desktop #6799
Comments
See a lot of background work and documentation on this in #6054 ! |
I was able to get that type of header to work using this CSS: However, it messes up the fonts! Trying to figure that out now. |
OK - I am able to get this work by re-including the main stylesheet like this: <link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/froala-design-blocks/2.0.1/css/froala_blocks.min.css">
<link rel="stylesheet" media="all" href="/assets/application-08768cdbfbde532afe88f0b458bc1767de7799ff598f2d54f6b0229e2f76e703.css" /> Obviously this isn't great. If we can confirm that the froala css doesn't break things all over the site, we could add it to the |
hey @jywarren I would like to take this issue! Can I? |
Oh goodness, we'd LOVE that. This area of code can be much simpler and more
consistent!
…On Thu, Jan 16, 2020 at 2:40 PM Nitin Bhasneria ***@***.***> wrote:
hey @jywarren <https://github.com/jywarren> I would like to take this
issue! Can I?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6799?email_source=notifications&email_token=AAAF6J3FNJ4SGKDI6EUOZWTQ6CZ4LA5CNFSM4JOXLG52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJFJCKQ#issuecomment-575312170>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAF6J6B2PE632KZP4G6KALQ6CZ4LANCNFSM4JOXLG5Q>
.
|
@jywarren I think that the water quality box also needs to be fixed with responsiveness. What are your views? Also, we can cover more screen width as this is not looking nice to only cover the center part. Thank u |
Hi, well, did you see my link to how the front page at https://publiclab.org
works (when you're not logged in)? It uses Froala Design Blocks. Theirs
scales smoothly and super nicely at every size, and our design was based on
it. I would really hope we can just use their standard code instead of
reinventing the wheel, what do you think?
…On Fri, Jan 17, 2020 at 12:32 PM Nitin Bhasneria ***@***.***> wrote:
[image: Screenshot from 2020-01-17 22-57-26]
<https://user-images.githubusercontent.com/44112080/72632664-c0b47000-397c-11ea-8776-e5ba8b71276d.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6799?email_source=notifications&email_token=AAAF6J2Z545OFPZJSNC6OY3Q6HTA5A5CNFSM4JOXLG52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJIMW3Y#issuecomment-575720303>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAF6J2RSPFPBTQ4QFJ7IE3Q6HTA5ANCNFSM4JOXLG5Q>
.
|
Yes, i wanted to agree also that we want the background image to be edge-to-edge the whole time. The Froala code achieves this, as shown on our front page! In the meantime, our pages are degrading a bit, some change must have affected the styling and now they are pretty bad! https://publiclab.org/tag/annual-report @NitinBhasneria would you be willing to give this a try? I think the first step is to try to use the code from our front page, which I'll excerpt here: <link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/froala-design-blocks/2.0.1/css/froala_blocks.min.css">
<link rel="stylesheet" media="all" href="/assets/application-08768cdbfbde532afe88f0b458bc1767de7799ff598f2d54f6b0229e2f76e703.css" />
<section class="fdb-block pb-0" style="background-image: url(/system/images/photos/000/024/688/original/gowanus.jpg);position:absolute;left:0;width:100%;margin-top:-21px;height:360px;padding-top:3rem;">
<div class="container">
<div class="row text-left justify-content-start">
<div class="col-12 col-md-6 col-xl-5">
<div class="fdb-box rounded-bottom-0" style="padding:2.8rem 2.5rem 1.2rem;">
<h1>Public Lab</h1>
<p class="lead" style="font-size: 1rem;">Public Lab is a community and a non-profit, dmocratizing science to address environmental issues that affect people.</p>
<p class="lead mt-4"><a class="btn btn-lg btn-primary front-page-join-btn" hef="/signup">Join »</a></p>
</div>
</div>
</div>
</div>
</section> |
Yea I will give it a try |
@jywarren I have found the solution of the edge-to-edge background image. I first tried the Froala design as on the front page. But using this will disturb many CSS classes and the given Froala design is also little unuseful of these tag pages, as this has extra buttons and all the things and many errors are coming. Instead of this we can change some little CSS and page can be made like front page. |
Hi, thanks so much! Can you open a PR with this so I can take a look at your changes? I think a non-Froala design is OK, but one reason I also liked Froala is that the HTML code was much simpler too. Thank you! |
@jywarren kindly review this, by this the image now edge to edge. |
* tag page image header fix #6799 * Update show.html.erb * Update show.html.erb * Update tags_controller_test.rb * Update tag_controller_test.rb * Update tag_controller_test.rb * Update show.html.erb * Update tag_controller_test.rb * Update show.html.erb
* tag page image header fix publiclab#6799 * Update show.html.erb * Update show.html.erb * Update tags_controller_test.rb * Update tag_controller_test.rb * Update tag_controller_test.rb * Update show.html.erb * Update tag_controller_test.rb * Update show.html.erb
* tag page image header fix publiclab#6799 * Update show.html.erb * Update show.html.erb * Update tags_controller_test.rb * Update tag_controller_test.rb * Update tag_controller_test.rb * Update show.html.erb * Update tag_controller_test.rb * Update show.html.erb
* tag page image header fix publiclab#6799 * Update show.html.erb * Update show.html.erb * Update tags_controller_test.rb * Update tag_controller_test.rb * Update tag_controller_test.rb * Update show.html.erb * Update tag_controller_test.rb * Update show.html.erb
* tag page image header fix publiclab#6799 * Update show.html.erb * Update show.html.erb * Update tags_controller_test.rb * Update tag_controller_test.rb * Update tag_controller_test.rb * Update show.html.erb * Update tag_controller_test.rb * Update show.html.erb
* tag page image header fix publiclab#6799 * Update show.html.erb * Update show.html.erb * Update tags_controller_test.rb * Update tag_controller_test.rb * Update tag_controller_test.rb * Update show.html.erb * Update tag_controller_test.rb * Update show.html.erb
* tag page image header fix publiclab#6799 * Update show.html.erb * Update show.html.erb * Update tags_controller_test.rb * Update tag_controller_test.rb * Update tag_controller_test.rb * Update show.html.erb * Update tag_controller_test.rb * Update show.html.erb
* tag page image header fix publiclab#6799 * Update show.html.erb * Update show.html.erb * Update tags_controller_test.rb * Update tag_controller_test.rb * Update tag_controller_test.rb * Update show.html.erb * Update tag_controller_test.rb * Update show.html.erb
* tag page image header fix publiclab#6799 * Update show.html.erb * Update show.html.erb * Update tags_controller_test.rb * Update tag_controller_test.rb * Update tag_controller_test.rb * Update show.html.erb * Update tag_controller_test.rb * Update show.html.erb
* tag page image header fix publiclab#6799 * Update show.html.erb * Update show.html.erb * Update tags_controller_test.rb * Update tag_controller_test.rb * Update tag_controller_test.rb * Update show.html.erb * Update tag_controller_test.rb * Update show.html.erb
* tag page image header fix publiclab#6799 * Update show.html.erb * Update show.html.erb * Update tags_controller_test.rb * Update tag_controller_test.rb * Update tag_controller_test.rb * Update show.html.erb * Update tag_controller_test.rb * Update show.html.erb
We have these nice image headings for tag pages:
https://publiclab.org/tag/water-quality
They're based on this Froala design block pattern:
However, ours aren't built the same way and don't smoothly/responsively transition between full-width and mobile sizes. There are some where the image is cut off, or messed up. Let's look back at the original design and code to try to standardize and fix this!
Code for the original Froala block was:
I believe the full code can be found somewhere here:
https://github.com/froala/design-blocks/tree/dev/dist
Our code is here:
We'd love help fixing this!
The text was updated successfully, but these errors were encountered: