Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
| Download
Views: 39603
1
//- the main html template for the static pages (shares some _inc_* files with app.pug)
2
3
mixin video-player
4
div.video-player.fit
5
div.video-overlay.
6
#[i.fa.fa-play-circle-o(style="font-size: 6rem;")]
7
#[br/]
8
click to play
9
video(loop).fit
10
block
11
12
doctype html
13
14
-
15
var NAME = htmlWebpackPlugin.options.title;
16
var URL = htmlWebpackPlugin.options.theme.DOMAIN_NAME;
17
var COMPANY_NAME = htmlWebpackPlugin.options.theme.COMPANY_NAME;
18
var COMPANY_EMAIL = htmlWebpackPlugin.options.theme.COMPANY_EMAIL;
19
var PREFIX = htmlWebpackPlugin.options.PREFIX;
20
var subtitle = null;
21
22
block vars
23
24
-
25
var fulltitle = htmlWebpackPlugin.options.title;
26
if (subtitle) {fulltitle += " - " + subtitle};
27
28
html.no-js(lang="en")
29
head
30
include _inc_head.pug
31
title= fulltitle
32
block header
33
34
body
35
36
nav.navbar.navbar-default.navbar-fixed-top
37
div.container
38
div.navbar-header
39
a(href=PREFIX)
40
img.icon(alt=htmlWebpackPlugin.options.title src=require('!file-loader?mimetype=image/svg+xml!cocalc-icon.svg'))
41
img.name(alt=htmlWebpackPlugin.options.title src=require('!file-loader?mimetype=image/svg+xml!cocalc-font-dark.svg'))
42
div.collapse.navbar-collapse
43
ul.nav.navbar-nav.navbar-right
44
//- li
45
//- a(href=PREFIX + "#a-explore") Explore
46
li
47
a(href=PREFIX + "policies/index.html") Policies
48
li
49
a(href=PREFIX + "doc/api.html") API
50
li
51
a(href=PREFIX + "policies/pricing.html") Pricing
52
li
53
a.get-started(href=PREFIX + "app") Start #{NAME}
54
55
block content
56
57
include _footer.pug
58
59
style
60
:sass
61
@import "smc-webapp/_colors.sass"
62
html.no-js
63
display : none
64
nav.navbar.navbar-default
65
border-bottom : 2px solid $COL_GRAY
66
background-color : $COL_GRAY_LL
67
.get-started
68
color : $COL_BS_GREEN_DD
69
font-weight : bold
70
.navbar-header
71
margin-top : 5px;
72
img.icon
73
height : 4rem
74
width : auto
75
margin-right : 2rem
76
img.name
77
height : 3rem
78
width : auto
79
margin-right : 2rem
80
.navbar-nav>li>a
81
font-size : 2rem
82
div.jumbotron
83
padding-top : 10rem
84
background-color : $COL_GRAY_LL
85
.center
86
text-align : center
87
.right
88
text-align : right
89
.vertical-expand
90
min-height : 50vw
91
.uppercase
92
text-transform : uppercase
93
.fit
94
width : 100%
95
heigh : auto
96
body > div.container > footer
97
margin-top : 6rem
98
/* used for a.anchor#a-name with an offset to compensate for the static navbar on top */
99
a.anchor
100
display : block
101
position : relative
102
top : -5rem
103
visibility : hidden
104
blockquote.blockquote
105
font-size : inherit
106
.btn-xlg
107
font-size : 24px
108
line-height : 1.5
109
font-weight : bold
110
.video-player
111
position : relative
112
> .video-overlay
113
width : 100%
114
height : 100%
115
position : absolute
116
top : 0
117
left : 0
118
color : white
119
background-color : rgba(0, 0, 0, .5)
120
cursor : pointer
121
z-index : 2
122
text-align : center
123
display : flex
124
justify-content : center
125
flex-direction : column
126
a.marker
127
padding-left : 2rem
128
padding-right : 1rem
129
text-decoration : none
130
color : $COL_GRAY_L
131
top : -.5rem
132
position : relative
133
font-size : 90%
134
visibility : hidden
135
h1:hover, h2:hover, h3:hover
136
> a.marker
137
visibility : visible
138
&:hover
139
color : $COL_GRAY
140
141
142
script
143
:coffee-script
144
html = document.documentElement
145
html.className = html.className.replace(/\bno-js\b/, 'js')
146
noscript
147
style.
148
html.no-js { display: block; }
149
150
include _inc_analytics.pug
151
152