Skip to content

Added case studies section #159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Feb 16, 2020
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@ params:
image: logos/numpy.svg
# Customizable navbar. For a dropdown, add a "sublinks" list.

section3:
title: Case Studies
features:
- title: First Image of Black Hole
text: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore.
img: images/content_images/case_studies/blackhole.png
url: /
- title: Detection of Gravitional Waves
text: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore.
img: images/content_images/case_studies/gravitional.png
url: /
- title: Sports Analytics
text: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore.
img: images/content_images/case_studies/sports.jpg
url: /
section2:
title: KEY FEATURES
features:
Expand Down
3 changes: 2 additions & 1 deletion layouts/partials/css.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<!-- Custom CSS -->
<link rel="stylesheet" type="text/css" href="{{ "css/styles.css" | relURL }}" />
<link rel="stylesheet" type="text/css" href="{{ "css/shell.css" | relURL }}" />
<link rel="stylesheet" type="text/css" href="{{ "css/section3.css" | relURL }}" />
<link rel="stylesheet" type="text/css" href="{{ "css/section2.css" | relURL }}" />
<!-- Numpy Favicon -->
<link rel="icon" type="image/png" href="{{ "images/favicon.png" | relURL }}" />
Expand All @@ -26,4 +27,4 @@
<link href="https://fonts.googleapis.com/css?family=Lato:400,900&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro&display=swap" rel="stylesheet">
<!-- Tabs CSS -->
<link rel="stylesheet" type="text/css" href="{{ "css/tabs.css" | relURL }}" />
<link rel="stylesheet" type="text/css" href="{{ "css/tabs.css" | relURL }}" />
21 changes: 21 additions & 0 deletions layouts/partials/section3.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{- $section3 := .Site.Params.section3 }}
{{- $title := index $section3 "title" }}
{{- $features := index $section3 "features" }}
<section class="section3">
<div class="container">
<h1 class="section3-title">{{ $title }}</h1>
<div class="section3-box-container">
{{- range $features }}
<div class="section3-box-content section3-underline">
<a href="" class="section3-box-text">
<p>
<div class="section3-box-title">{{ .title }}</div>
<img src="{{ .img }}">
<div class="section3-box-text">{{ .text | markdownify }}</div>
</p>
</a>
</div>
{{- end }}
</div>
</div>
</section>
73 changes: 73 additions & 0 deletions static/css/section3.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
.section3 {
padding: 30px;
margin: 35px 0 0 0;
}

.section3-title {
display: flex;
justify-content: center;
font-size: 30px;
}

.section3-box-container {
display: flex;
flex-wrap: wrap;
}

.section3-box-content {
height: 950px;
width: 30vw;
margin: 30px 15px 30px 15px;
border-radius: 10px;
}

.section3-box-title {
margin: 15px;
font-size: 16px;
}

.section3-box-text {
margin: 30px 15px;
color: red;
}

@media only screen and (max-width: 900px) {
.section3-box-container {
flex-direction: column;
}

.section3-box-content {
width: 80vw;
}
}

.section3-underline {
display: inline-block;
vertical-align: middle;
-webkit-transform: perspective(1px) translateZ(0);
transform: perspective(1px) translateZ(0);
box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
position: relative;
overflow: hidden;
}

.section3-underline:before {
content: "";
position: absolute;
z-index: -1;
left: 0;
right: 100%;
bottom: 0;
background: #013343;
height: 4px;
-webkit-transition-property: right;
transition-property: right;
-webkit-transition-duration: 0.3s;
transition-duration: 0.3s;
-webkit-transition-timing-function: ease-out;
transition-timing-function: ease-out;
}

.section3-underline:hover:before, .section3-underline:focus:before, .section3-underline:active:before {
right: 0;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.