5 Commits

Author SHA1 Message Date
  Camila 4ca1ded4f0 Add instagram view 2 years ago
  Carlos Hernandez 662b988775 Add most recent dynamic instagram posts to home 2 years ago
  Carlos Hernandez a8c043bef0 Move sorting code to own file 2 years ago
  Carlos Hernandez c7f755c93a Sort content based on type 2 years ago
  Carlos Hernandez 09b4595092 Add instagram posts 2 years ago

+ 16
- 0
app_template/www/css/main.css View File

@@ -0,0 +1,16 @@
1
+a img{
2
+    align-items: center;
3
+    position: relative;
4
+    width: 100%;
5
+    padding: 10px;
6
+    padding-left: 10px;
7
+    margin-top: 20px;
8
+    overflow: hidden;
9
+    opacity: 0;
10
+    animation-name: fadeIn;
11
+    animation-delay: 0.6s;
12
+    animation-duration: 0.8s;
13
+    animation-fill-mode: forwards;
14
+    text-decoration: none;
15
+    color: white;
16
+}

+ 203
- 0
app_template/www/home.html View File

@@ -0,0 +1,203 @@
1
+
2
+<!DOCTYPE html>
3
+<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
4
+<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
5
+<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
6
+<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
7
+	<head>
8
+	<meta charset="utf-8">
9
+	<meta http-equiv="X-UA-Compatible" content="IE=edge">
10
+	<title>dato.pr</title>
11
+	<meta name="viewport" content="width=device-width, initial-scale=1">
12
+	<meta name="description" content="No" />
13
+
14
+  	<!-- Facebook and Twitter integration -->
15
+	<meta property="og:title" content=""/>
16
+	<meta property="og:image" content=""/>
17
+	<meta property="og:url" content=""/>
18
+	<meta property="og:site_name" content=""/>
19
+	<meta property="og:description" content=""/>
20
+	<meta name="twitter:title" content="" />
21
+	<meta name="twitter:image" content="" />
22
+	<meta name="twitter:url" content="" />
23
+	<meta name="twitter:card" content="" />
24
+
25
+	<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
26
+	<link rel="shortcut icon" href="favicon.ico">
27
+
28
+	<link href="https://fonts.googleapis.com/css?family=Inconsolata:400,700" rel="stylesheet">
29
+
30
+	<!-- Custom css -->
31
+	<link rel="stylesheet" href="css/main.css">
32
+
33
+	<!-- Animate.css -->
34
+	<link rel="stylesheet" href="css/animate.css">
35
+	<!-- Icomoon Icon Fonts-->
36
+	<link rel="stylesheet" href="css/icomoon.css">
37
+	<!-- Simple Line Icons -->
38
+	<link rel="stylesheet" href="css/simple-line-icons.css">
39
+	<!-- Bootstrap  -->
40
+	<link rel="stylesheet" href="css/bootstrap.css">
41
+	<!-- Style -->
42
+	<link rel="stylesheet" href="css/style.css">
43
+
44
+
45
+	<!-- Modernizr JS -->
46
+	<script src="js/modernizr-2.6.2.min.js"></script>
47
+	<!-- FOR IE9 below -->
48
+	<!--[if lt IE 9]>
49
+	<script src="js/respond.min.js"></script>
50
+	<![endif]-->
51
+	<script src="sortposts.js"></script>
52
+	</head>
53
+	<body>
54
+	<header role="banner" id="fh5co-header">
55
+		<div class="fluid-container">
56
+			<nav class="navbar navbar-default navbar-fixed-top js-fullheight">
57
+				<div id="navbar" class="navbar-collapse js-fullheight">
58
+					<ul class="nav navbar-nav navbar-left">
59
+						<li class="active"><a href="#" data-nav-section="home"><span>Home</span></a></li>
60
+						<li><a href="#" data-nav-section="services"><span>Services</span></a></li>
61
+					</ul>
62
+				</div>
63
+			</nav>
64
+	  </div>
65
+	</header>
66
+
67
+	<section id="fh5co-home" data-section="home" style="background-image: url(images/project-5.jpg);">
68
+		<div class="gradient"></div>
69
+		<div class="container">
70
+			<div class="text-wrap">
71
+				<div class="text-inner">
72
+					<div class="row">
73
+						<div class="col-md-8 col-md-offset-2 text-center">
74
+							<h1 style="color :white;" class="to-animate">dato.pr</h1>
75
+							<h2 style="color :white;" class="to-animate">"Estudiando lo ambiguo e investigando lo desconocido."</h2>
76
+						</div>
77
+					</div>
78
+				</div>
79
+			</div>
80
+		</div>
81
+	</section>
82
+
83
+	<section id="fh5co-services" data-section="services">
84
+		<div class="fh5co-services">
85
+			<div class="container">
86
+				<div class="row">
87
+					<div class="col-md-12 section-heading text-center">
88
+						<h2 class="to-animate">Home</h2>
89
+						<div class="row">
90
+							<div class="col-md-8 col-md-offset-2 subtext">
91
+								<h3 class="to-animate"> Hablando sobre lo que importa. </h3>
92
+							</div>
93
+						</div>
94
+					</div>
95
+				</div>
96
+				<!-- Implemented sort selection -->
97
+				<div class="row">
98
+					<div class="col-md-12">
99
+						<select id="my-selection" class="custom-select btn btn-secondary to-animate" onchange="sort_posts(id)" style="background-color: rgb(59, 59, 59);">
100
+							<option value="1" selected>Podcasts</option>
101
+							<option value="2">Instagram</option>
102
+							<option value="3">Articles</option>
103
+						</select>
104
+					</div>
105
+				</div>
106
+				<div class="row">
107
+					<div class="core-features">
108
+						<div class="grid2">
109
+							<div id="rows-parent" class="core-f">
110
+								<div id="podcasts-row" class="row">
111
+									<div class="col-md-12">
112
+										<div class="core">
113
+											<i class="icon-columns to-animate-2"></i>
114
+											<div class="fh5co-post to-animate">
115
+												<h3>Podcasts</h3>
116
+												<iframe src="https://open.spotify.com/embed/show/6u4I3u8Y6QTQ22F5iZR6HA" width="100%" height="232" frameBorder="0" allowfullscreen="" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture"></iframe>
117
+											</div>
118
+										</div>
119
+									</div>
120
+								</div>
121
+								<div id="instagram-row" class="row">
122
+									<div class="col-md-12">
123
+										<div class="core">
124
+											<i class="icon-columns to-animate-2"></i>
125
+											<div class="fh5co-post to-animate">
126
+												<h3>Instagram</h3>
127
+												<div id="instafeed-container"></div>
128
+												<script src="https://cdn.jsdelivr.net/gh/stevenschobert/instafeed.js@2.0.0rc1/src/instafeed.min.js"></script>
129
+												<script type="text/javascript">
130
+													var userFeed = new Instafeed({
131
+														get: 'user',
132
+														target: "instafeed-container",
133
+															resolution: 'low_resolution',
134
+															limit: 3,
135
+														accessToken: 'IGQVJVV0t4b2ZAIdkJPNTl1ZAnZAsWm90TzIzRE5LMGQtR25aRklwYlQ5eVEtcjZAmRmpEbDlNWC1RNjZAhaFJLdXBaLUJlaEM4WkRaamJNcWZACNWx1VThSYUNRLVJHcFNHWHlnWl9FTjBjcl9Vd1pPcFZAHbAZDZD'
136
+													});
137
+													userFeed.run();
138
+												</script>
139
+											</div>
140
+										</div>
141
+									</div>
142
+								</div>
143
+								<div class="row" id="articles-row">
144
+									<div class="col-md-12">
145
+										<div class="core">
146
+											<i class="icon-columns to-animate-2"></i>
147
+											<div class="fh5co-post to-animate">
148
+												<h3>Articles</h3>
149
+												<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dicta totam reiciendis sapiente modi alias nulla quae libero, mollitia dolores ullam hic nesciunt in molestiae architecto.</p>
150
+											</div>
151
+										</div>
152
+									</div>
153
+								</div>
154
+							</div>
155
+						</div>
156
+					</div>
157
+				</div>
158
+				<div id="fh5co-counter-section" class="fh5co-counters">
159
+					<div class="container">
160
+						<div class="row to-animate">
161
+							<div class="col-md-3 text-center">
162
+								<span class="fh5co-counter js-counter" data-from="0" data-to="3452" data-speed="5000" data-refresh-interval="50"></span>
163
+								<span class="fh5co-counter-label">Tazas de Café Consumidas</span>
164
+							</div>
165
+							<div class="col-md-3 text-center">
166
+								<span class="fh5co-counter js-counter" data-from="0" data-to="234" data-speed="5000" data-refresh-interval="50"></span>
167
+								<span class="fh5co-counter-label">Días sin Luz</span>
168
+							</div>
169
+							<div class="col-md-3 text-center">
170
+								<span class="fh5co-counter js-counter" data-from="0" data-to="6542" data-speed="5000" data-refresh-interval="50"></span>
171
+								<span class="fh5co-counter-label">Cosas que Hacer</span>
172
+							</div>
173
+							<div class="col-md-3 text-center">
174
+								<span class="fh5co-counter js-counter" data-from="0" data-to="0" data-speed="5000" data-refresh-interval="50"></span>
175
+								<span class="fh5co-counter-label">Tiempo para perder</span>
176
+							</div>
177
+						</div>
178
+					</div>
179
+				</div>
180
+			</div>
181
+		</div>
182
+	</section>
183
+
184
+
185
+
186
+
187
+	<!-- jQuery -->
188
+	<script src="js/jquery.min.js"></script>
189
+	<!-- jQuery Easing -->
190
+	<script src="js/jquery.easing.1.3.js"></script>
191
+	<!-- Bootstrap -->
192
+	<script src="js/bootstrap.min.js"></script>
193
+	<!-- Waypoints -->
194
+	<script src="js/jquery.waypoints.min.js"></script>
195
+	<!-- Stellar Parallax -->
196
+	<script src="js/jquery.stellar.min.js"></script>
197
+	<!-- Counters -->
198
+	<script src="js/jquery.countTo.js"></script>
199
+	<!-- Main JS (Do not remove) -->
200
+	<script src="js/main.js"></script>
201
+
202
+	</body>
203
+</html>

+ 146
- 0
app_template/www/instagram.html View File

@@ -0,0 +1,146 @@
1
+
2
+<!DOCTYPE html>
3
+<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
4
+<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
5
+<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
6
+<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
7
+	<head>
8
+	<meta charset="utf-8">
9
+	<meta http-equiv="X-UA-Compatible" content="IE=edge">
10
+	<title>dato.pr</title>
11
+	<meta name="viewport" content="width=device-width, initial-scale=1">
12
+	<meta name="description" content="No" />
13
+
14
+  	<!-- Facebook and Twitter integration -->
15
+	<meta property="og:title" content=""/>
16
+	<meta property="og:image" content=""/>
17
+	<meta property="og:url" content=""/>
18
+	<meta property="og:site_name" content=""/>
19
+	<meta property="og:description" content=""/>
20
+	<meta name="twitter:title" content="" />
21
+	<meta name="twitter:image" content="" />
22
+	<meta name="twitter:url" content="" />
23
+	<meta name="twitter:card" content="" />
24
+
25
+	<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
26
+	<link rel="shortcut icon" href="favicon.ico">
27
+
28
+	<link href="https://fonts.googleapis.com/css?family=Inconsolata:400,700" rel="stylesheet">
29
+
30
+	<!-- Animate.css -->
31
+	<link rel="stylesheet" href="css/animate.css">
32
+	<!-- Icomoon Icon Fonts-->
33
+	<link rel="stylesheet" href="css/icomoon.css">
34
+	<!-- Simple Line Icons -->
35
+	<link rel="stylesheet" href="css/simple-line-icons.css">
36
+	<!-- Bootstrap  -->
37
+	<link rel="stylesheet" href="css/bootstrap.css">
38
+	<!-- Style -->
39
+	<link rel="stylesheet" href="css/style.css">
40
+	<link rel="stylesheet" href="css/fancy.css">
41
+	<!-- Spotify Icon -->
42
+	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
43
+<style type="text/css">
44
+	h3 {text-align: center;}
45
+
46
+	#fh5co-services {
47
+    padding-bottom: 0;
48
+    text-align: center;
49
+	}
50
+</style>
51
+
52
+
53
+	<!-- Modernizr JS -->
54
+	<script src="js/modernizr-2.6.2.min.js"></script>
55
+	<!-- FOR IE9 below -->
56
+	<!--[if lt IE 9]>
57
+	<script src="js/respond.min.js"></script>
58
+	<![endif]-->
59
+
60
+	</head>
61
+	<body>
62
+	<header role="banner" id="fh5co-header">
63
+		<div class="fluid-container">
64
+			<nav class="navbar navbar-default navbar-fixed-top js-fullheight">
65
+				<div id="navbar" class="navbar-collapse js-fullheight">
66
+					<ul class="nav navbar-nav navbar-left">
67
+						<li class="active"><a href="#" data-nav-section="home"><span>Home</span></a></li>
68
+						<li><a href="#" data-nav-section="services"><span>Services</span></a></li>
69
+					</ul>
70
+				</div>
71
+			</nav>
72
+	  </div>
73
+	</header>
74
+
75
+	<section id="fh5co-home" data-section="home" style="background-image: url(images/project-5.jpg);">
76
+		<div class="gradient"></div>
77
+		<div class="container">
78
+			<div class="text-wrap">
79
+				<div class="text-inner">
80
+					<div class="row">
81
+						<div class="col-md-8 col-md-offset-2 text-center">
82
+							<h1 style="color :white;" class="to-animate">dato.pr</h1>
83
+							<h2 style="color :white;" class="to-animate">"Estudiando lo ambiguo <br> e investigando lo desconocido."</h2>
84
+						</div>
85
+					</div>
86
+				</div>
87
+			</div>
88
+		</div>
89
+	</section>
90
+
91
+  <section id="fh5co-services" data-section="instagram">
92
+    <div class="container">
93
+      <style type="text/css">
94
+          a img{
95
+            align-items: center;
96
+            position: relative;
97
+            width: 30%;
98
+            padding: 10px;
99
+            padding-left: 10px;
100
+            margin-top: 20px;
101
+            overflow: hidden;
102
+            opacity: 0;
103
+            animation-name: fadeIn;
104
+            animation-delay: 0.6s;
105
+            animation-duration: 0.8s;
106
+            animation-fill-mode: forwards;
107
+            text-decoration: none;
108
+            color: white;
109
+          }
110
+      </style>
111
+      <h1 style="text-align: center">Instagram Feed</h1>
112
+      <div id="instafeed-container"></div>
113
+      <script src="https://cdn.jsdelivr.net/gh/stevenschobert/instafeed.js@2.0.0rc1/src/instafeed.min.js"></script>
114
+      <script type="text/javascript">
115
+        var userFeed = new Instafeed({
116
+          get: 'user',
117
+          target: "instafeed-container",
118
+            resolution: 'low_resolution',
119
+            limit: 9,
120
+          accessToken: 'IGQVJVV0t4b2ZAIdkJPNTl1ZAnZAsWm90TzIzRE5LMGQtR25aRklwYlQ5eVEtcjZAmRmpEbDlNWC1RNjZAhaFJLdXBaLUJlaEM4WkRaamJNcWZACNWx1VThSYUNRLVJHcFNHWHlnWl9FTjBjcl9Vd1pPcFZAHbAZDZD'
121
+        });
122
+        userFeed.run();
123
+      </script>
124
+    </div>
125
+  </section>
126
+
127
+
128
+
129
+
130
+	<!-- jQuery -->
131
+	<script src="js/jquery.min.js"></script>
132
+	<!-- jQuery Easing -->
133
+	<script src="js/jquery.easing.1.3.js"></script>
134
+	<!-- Bootstrap -->
135
+	<script src="js/bootstrap.min.js"></script>
136
+	<!-- Waypoints -->
137
+	<script src="js/jquery.waypoints.min.js"></script>
138
+	<!-- Stellar Parallax -->
139
+	<script src="js/jquery.stellar.min.js"></script>
140
+	<!-- Counters -->
141
+	<script src="js/jquery.countTo.js"></script>
142
+	<!-- Main JS (Do not remove) -->
143
+	<script src="js/main.js"></script>
144
+
145
+	</body>
146
+</html>

+ 25
- 0
app_template/www/sortposts.js View File

@@ -0,0 +1,25 @@
1
+function sort_posts(id) {
2
+    console.log("Executing function.");
3
+    var value = document.getElementById("my-selection").value;
4
+    console.log(value);
5
+
6
+    var parentNode = document.getElementById("rows-parent");
7
+    var instagramRow = document.getElementById("instagram-row");
8
+    var podcastsRow = document.getElementById("podcasts-row");
9
+    var articlesRow = document.getElementById("articles-row");
10
+    if (value == 1) {
11
+        parentNode.appendChild(podcastsRow);
12
+        parentNode.appendChild(instagramRow);
13
+        parentNode.appendChild(articlesRow);
14
+    }
15
+    else if (value == 2) {
16
+        parentNode.appendChild(instagramRow);
17
+        parentNode.append(articlesRow);
18
+        parentNode.appendChild(podcastsRow);
19
+    }
20
+    else if (value == 3) {
21
+        parentNode.append(articlesRow);
22
+        parentNode.appendChild(podcastsRow);
23
+        parentNode.appendChild(instagramRow);
24
+    }
25
+}