This website showcases Joe Bailey's work.
yarn install
npx netlify login
npx netlify link
yarn dev
yarn generate
<!DOCTYPE html>
<html lang=”en-GB”>
HTML will be indented consistently by a tab character or 4 spaces.
Nested elements will be indented once.
Self closing elements need a trailing slash such as the <img />
element
Attributes and elements should always be lowercase Double quotes should always be used, never single
HTML attributes should come in this particular order for easier reading of code.
id
class
data-*
for | type | href | src
HTML5 tags such as <header>
, <footer>
, <nav>
, and <time>
are preferred over standard <div>
tags.
CSS Files are not needed as Node Sass compiles the SCSS.
SCSS should be included in a CSS folder in the same directory as the component/element
Use one tab to indent each property
Add one blank line between code blocks
Multiple selectors can be on one line and must end with a curly brace
Property-balue pairs should be on their own line with one tab of indentation and ending in a semicolon
The closing brace should be flush left using the same amount of indentation as the opening selector
Colors should use names where possible rather than hex values
.Foo, #Bar {
background: white;
color: black
}
#Bar {
width: 100%;
height: auto;
}
- Specify the type of commit:
-
feat: The new feature you're adding to a particular application
-
fix: A bug fix
-
style: Feature and updates related to styling
-
refactor: Refactoring a specific section of the codebase
-
test: Everything related to testing
-
docs: Everything related to documentation
-
chore: Regular code maintenance.
-
Separate the subject from the body with a blank line
-
Your commit message should not contain any whitespace errors
-
Remove unnecessary punctuation marks
-
Do not end the subject line with a period
-
Capitalize the subject line and each paragraph
-
Use the body to explain what changes you have made and why you made them.
-
Do not assume the reviewer understands what the original problem was, ensure you add it.
-
Do not think your code is self-explanatory
git commit -m "Subject" -m "Description..."
Capitalized, short (50 chars or less) summary
More detailed explanatory text, if necessary. Wrap it to about 72 characters or so. In some contexts, the first line is treated as the subject of an email and the rest of the text as the body. The blank line separating the summary from the body is critical (unless you omit the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed bug" or "Fixes bug." This convention matches up with commit messages generated by commands like git merge and git revert.
Further paragraphs come after blank lines.
- Bullet points are okay, too, use a hyphen or asterisk for the bullet, followed by a single space, with blank lines in between
Master branch is for tested code and is deployed directly to Netlify. Do not push anything to master. Always create pull requests and test code.
Dev branch is for development work on the site. Should always contain close to production ready code requiring minimal commits to get to production status.
Branches should be created for big projects requiring more than one commit such as adding a new page. They should be titled the project name and then a pull request should be made with dev in order to test it.
Use a local environment if possible otherwise use Browserstack to manually test the site by navigating to all pages and performing all actions
- Last 2 versions of Mozilla Firefox
- Last 2 versions of Microsoft Edge
- Last 2 versions of Google Chrome
- Last 2 versions of Opera
- Last 1 versions of Safari
- Last 1 versions of iOS Safari
- Last 2 versions of Chrome for Android
- Last 2 versions of Firefox for Android
- Last 1 versions of Samsung Internet
👤 Joe Bailey
- Website: joebailey.xyz
- Github: @joebailey26
- LinkedIn: @joe-bailey-b68b17171