Skip to content

Conversation

@tannerwelsh
Copy link
Contributor

The site now looks a little bit better, thanks to some basic CSS stylings. Starting by normalizing across browsers with normalize.css, this branch adds custom code in the main.css file.

The significant changes here have to do with the use of partials in Sinatra to break apart the HTML into smaller components. In this way, profile, jobs, and skills can be broken apart. This helps to modularize the markup so that components can be moved around and are less dependent on each other.

This branch adds a dependency to the sinatra-partial gem, which adds some useful features to Sinatra's built-in partial functionality. In particular, it allows for the rendering of collections.

- Header is white text on dark bg
- Jobs and skills are organized into adjacent columns
- Better whitespacing all around

Some structural changes to HTML were added to accomodate new styles.
- Align labels and inputs in profile form
- Boost size of textarea inputs
- Make skill edit forms one-line
- Simplify form submit button values
CSS should be generic, with classes that describe the style changes but
are not tied to the content of the page.

In this commit, I've moved as much styling as possible into generic
classes like "row" and "page" instead of using class names closely
linked to the HTML content.

Also added some better formatting of the CSS in general, with comment
headers separating related styles.
Reasoning:
A partial is file for rendering a part of an HTML page. They are useful
for breaking apart a page into modular components, each with its own
content and purpose.
tannerwelsh added a commit that referenced this pull request Oct 30, 2014
Improvements to styles and markup
@tannerwelsh tannerwelsh merged commit aa18a90 into master Oct 30, 2014
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.

2 participants