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

stylish start page #10

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!DOCTYPE html>
<html>
<body>
<div class="container"></div>
<!--For Development Mode:-->
<!--<script src="./node_modules/steal/steal.js"></script>-->
<script src="./dist/steal.production.js"></script>
</script>
</body>
</html>
10 changes: 9 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import "./styles.css";
import $ from "jquery";

$(document.body).append("<h1>Hello World!</h1>");
let stealLogo = $('<img>').attr('id', 'logo')
.attr('src', '//stealjs.com/img/steal-landing-page-logo.jpg');

let stealDesc = $('<p>').addClass('quote')
.text('Futuristic JavaScript dependency loader and builder');

$('.container').append(stealLogo)
.append(stealDesc)
.wrapInner('<div class="content">');
23 changes: 23 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
html {
font-family: sans-serif;
height: 100%;
}
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
display: table;
font-weight: 100;
}
.container {
text-align: center;
display: table-cell;
vertical-align: middle;
}
.content {
text-align: center;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be removed since .container has text-align: center?

display: inline-block;
}
.quote {
font-size: 24px;
margin: 0;
color: #7F8386;
}