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

Styling the non-first page #61

Open
tarikeshaq opened this issue Nov 24, 2020 · 0 comments
Open

Styling the non-first page #61

tarikeshaq opened this issue Nov 24, 2020 · 0 comments
Assignees
Labels

Comments

@tarikeshaq
Copy link
Collaborator

tarikeshaq commented Nov 24, 2020

We would like to style the page people see so that it's easier to work with.

Lets start off with removing everything there and leaving off just 1 button that says something like "Show me the news!"

Lets keep the slider on there commented out, we'll add it back later!

Details:

  • You would need to first adjust the mainView, comment out the slideContainer and the contentClick button.
  • You would then format the button to look nice! You can add styling to the css file. Search online for a nice looking button styling and place it in there, targeting the button using it's class. Example:
button#getArticles {
    display: inline-block;
    padding:0.35em 1.2em;
    border:0.1em solid black;
    margin:0 0.3em 0.3em 0;
    border-radius:0.5em;
    box-sizing: border-box;
    text-decoration:none;
    font-family:'Roboto',sans-serif;
    font-weight:300;
    color: black;
    text-align:center;
    transition: all 0.2s;
    background-color: transparent;
}

button#getArticles:hover {
    color: white;
    background-color: black;
}

@media all and (max-width:30em){
 button#getArticles{
  display:block;
  margin:0.4em auto;
 }
}

This is a random button styling I found on https://fdossena.com/?p=html5cool/buttons/i.frag, feel free to use this, or others!

  • Finally center the button on the page, look around the internet on how to center something, use the same principles in the above css to apply that!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants