Giter Club home page Giter Club logo

Comments (3)

michaeldfallen avatar michaeldfallen commented on August 15, 2024

Came here to ask this. Why is the header set at height: 100%? Took me nearly a minute to realise there was any content below the fold and even then that was only since I had scrollbars (which other platforms are starting to lack).

output

Even just setting the header to height: 75% gives you a peek at the content below without sacrificing your desired look:

output

from principles.design.

benbrignell avatar benbrignell commented on August 15, 2024

Yeah, it's a work in progress so there's no real set reasons why stuff has been done this way. Still sort of experimenting with layout but more importantly what the content on the home page should be. I'll probably remove the 100% fixed height and just allude to what's below by actually showing it. 75% seems like it would work for now, will test it as on smaller screens it might overflow the title. Thanks!

from principles.design.

wad3g avatar wad3g commented on August 15, 2024

@benbrignell @michaeldfallen I prefer using viewport units to set the height for hero's or setting the height, min-height, and max height of various elements to create different layouts.

For example you could set a max-height: 85vh to be sure you never push the below content below the fold. Similarly, for a more image centric hero then you could set the height: 100vh.

Perhaps what would be beneficial for this exact example would be using viewport units to create fluid text on the hero. This prevents that odd jump in the text size when the `@media (min-width: 700px) media query is active/inactive.

Here's an example where I set the hero text to font-size: calc(112.5% + 8vw).

pd

from principles.design.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.