Skip to content

Commit 7e61200

Browse files
committed
Add basic homepage
1 parent e1d5172 commit 7e61200

File tree

2 files changed

+42
-9
lines changed

2 files changed

+42
-9
lines changed

src/index.pug

+10-6
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ block head
66
title StraticJS
77

88
block content
9-
h1 StraticJS
10-
p Welcome to your new website!
11-
p You can hack on your HTML using #[a(href='https://pugjs.org') Pug], you can write CSS in #[a(href='http://stylus-lang.com') Stylus], and you can write scripts in JavaScript!
12-
13-
14-
p Also, check out #[a(href='/blog/2017/07/hello-world') Hello World] on your brand-new #[a(href='/blog/') blog]!
9+
#header
10+
h1 StraticJS
11+
#install-code
12+
pre
13+
code.
14+
$ npm install -g yo generator-stratic
15+
$ mkdir stratic-project && cd stratic-project
16+
$ yo stratic
17+
18+
iframe(width='560', height='315', src='https://www.youtube-nocookie.com/embed/a9l-FmSgyt8?rel=0', frameborder='0', allowfullscreen)

src/styles/main.styl

+32-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
1-
// You can write Stylus styles here!
2-
// Stylus is like a good-lookin' superset of CSS with superpowers.
3-
// See http://stylus-lang.com
1+
install-code-offset = 49px
42

3+
body
4+
margin 0
5+
font-family sans-serif
56

7+
#header
8+
text-align center
9+
background-color #ffb400
10+
padding-bottom install-code-offset
11+
12+
h1
13+
font-size 3em
14+
margin 0
15+
padding 25px
16+
17+
#install-code
18+
text-align center
19+
20+
pre
21+
display inline-block
22+
text-align left
23+
font-size 1.5em
24+
padding 15px
25+
background-color #383838
26+
color white
27+
border-color white
28+
border-radius 5px
29+
margin 0
30+
margin-top -(install-code-offset)
31+
32+
iframe
33+
margin 50px auto
34+
display block

0 commit comments

Comments
 (0)