-
Notifications
You must be signed in to change notification settings - Fork 0
/
index-ssr.html
36 lines (31 loc) · 1.32 KB
/
index-ssr.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>SSR</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="./src/css/styles.css" />
<!-- <script src="main.js"></script> -->
</head>
<body>
<div id="card">
<!-- SSR Content goes here -->
</div>
<script src="./dist/0.0.1/card.min.js"></script>
<script>
var x = new ProtoGraph.Card.toCoverImage(),
params = {
selector: document.querySelector('#card'),
isFromSSR: true,
initialState: {
"dataJSON": {
}
}
};
params['site_configs'] = { "header_logo_url": "https://d2jco8ydyctdne.cloudfront.net/images/indianexpress/57c86975cd78ab70/2432.png", "header_background_color": "#000000", "header_jump_to_link": "http://indianexpress.com", "header_logo_position": "center", "house_colour": "#ee1c25", "reverse_house_colour": "#4caf50", "font_colour": "#ffffff", "reverse_font_colour": "#ffffff", "primary_language": "English", "story_card_style": "Clear: Color", "story_card_flip": true }
x.init(params);
x.renderCol7();
</script>
</body>
</html>