Skip to content

Commit

Permalink
Merge pull request #37 from YorkURobotics/PurveshPatelYu-patch-1
Browse files Browse the repository at this point in the history
History Page test
  • Loading branch information
PurveshPatelYu authored Jan 27, 2024
2 parents f61122b + 9e87896 commit 772c948
Show file tree
Hide file tree
Showing 11 changed files with 9,643 additions and 0 deletions.
156 changes: 156 additions & 0 deletions website/_layouts/timeline.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="{{ site.description }}" />
<meta name="author" content="{{ site.author }}" />
<meta name="keywords" content="{{ site.keywords }}" />
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">

<title>{{ site.title }} {% if page.title %} | {{ page.title }}{% endif %}</title>

<!-- Bootstrap Core CSS -->
<link href="{{ site.baseurl }}/css/bootstrap.min.css" rel="stylesheet">

<!-- Custom CSS -->
<link href="{{ site.baseurl }}/css/grayscale.css" rel="stylesheet">
<link href="{{ site.baseurl }}/css/timeline.css" rel="stylesheet">

<!-- Custom Fonts -->
<link href="{{ site.baseurl }}/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="//fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic" rel="stylesheet" type="text/css">
<link href="//fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->

</head>
<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top">

<header class="intro">
<div class="intro-body">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<h1 class="brand-heading">&nbsp;</h1>
<p class="intro-text">{{ content }}</p>
{% capture title %}{% for page in site.pages | sort: "title" %}{% if forloop.first %}{{ page.title }}{% endif %}{% endfor %}{% endcapture %}
<a href="#{{ title }}" class="btn btn-circle page-scroll">
<i class="fa fa-angle-double-down animated"></i>
</a>
</div>
</div>
</div>
</div>
</header>
<nav class="navbar navbar-custom navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-main-collapse">
<i class="fa fa-bars"></i>
</button>
<a class="navbar-brand page-scroll" href="#page-top">
<i class="fa fa-play-circle"></i> {{ site.title }}
</a>
</div>

<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-right navbar-main-collapse">
<ul class="nav navbar-nav">
<!-- Hidden li included to remove active class from about link when scrolled up past about section -->
<li class="hidden">
<a href="#page-top"></a>
</li>

{% for page in site.pages | sort: "title" %}
{% unless page.url == "/index.html" or page.url == "/" %}
<li>
<a class="page-scroll" href="#{{ page.title }}">{{ page.title }}</a>
</li>
{% endunless %}
{% endfor %}
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>

{% for page in site.pages %}
{% if page.section-type == "default" %}
<!-- {{ page.title }} Section -->
<section id="{{ page.title }}" class="container content-section text-center">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
{{ page.content | markdownify }}
</div>
</div>
</section>
{% elsif page.section-type == "timeline" %}
<!-- {{ page.title }} Section -->
<section id="{{ page.title }}" class="container content-section text-center">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
{{ page.content | markdownify }}
<ul class="timeline">
{% for post in site.posts %}
{% assign loopindex = forloop.index | modulo: 2 %}
{% capture class %}
{% if loopindex == 0 %}
timeline-inverted
{% endif %}
{% endcapture %}

<li class="{{ class }}">
<div class="timeline-image">
<img class="img-circle img-responsive" src="{{ site.baseurl }}/{% if post.image %}{{ post.image }}{% else %}{{site.career-img}}{% endif %}" alt="">
</div>
<div class="timeline-panel">
<div class="timeline-heading">
<h4>{{ post.title }}</h4>
<h4 class="subheading">{{ post.subtitle }}</h4>
</div>
<div class="timeline-body">
<p class="text-muted">{{ post.content }}</p>
</div>
</div>
</li>

{% endfor %}

<li class="timeline-inverted">
<div class="timeline-image">
<img class="img-circle img-responsive" src="{{ site.baseurl }}/{{ site.career-img }}" alt="">
</div>
</li>

</ul>

</div>
</div>
</section>
{% endif %}
{% endfor %}

{% include footer.html %}
<!-- jQuery -->
<script src="{{ site.baseurl }}/js/jquery.js"></script>

<!-- Bootstrap Core JavaScript -->
<script src="{{ site.baseurl }}/js/bootstrap.min.js"></script>

<!-- Plugin JavaScript -->
<script src="{{ site.baseurl }}/js/jquery.easing.min.js"></script>

<!-- Custom Theme JavaScript -->
<script src="{{ site.baseurl }}/js/grayscale.js"></script>

</body>
</html>
Loading

0 comments on commit 772c948

Please sign in to comment.