Skip to content

Commit 7047f9c

Browse files
authored
Merge pull request #151 from numpy/feature/84-nutshell
section2 2x2 tiles
2 parents 83162f4 + 9193616 commit 7047f9c

File tree

8 files changed

+87
-242
lines changed

8 files changed

+87
-242
lines changed

config.yaml

+1-5
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,16 @@ params:
2727
# Customizable navbar. For a dropdown, add a "sublinks" list.
2828

2929
section2:
30-
title: In a Nutshell
30+
title: KEY FEATURES
3131
features:
3232
- title: Powerful N-dimensional arrays
33-
icon: cartesian
3433
subtitle: Fast, versatile and easy to use
3534
text: Fast, versatile and easy to use, the NumPy vectorization, indexing and broadcasting concepts are the de-facto standards of array computing today.
3635
- title: Numerical computing tools
37-
icon: chip
3836
text: Fundamental package for scientific computing, NumPy offers comprehensive mathematical functions, random number generators, linear algebra routines, Fourier transforms and more.
3937
- title: Interoperable
40-
icon: computer
4138
text: Works on your choice of computing platform, whether your code fits in memory and runs on a CPU or requires a GPU. NumPy supports a wide range of computing platforms and works well with all major distributed arrays and sparse arrays libraries.
4239
- title: Open source
43-
icon: web-programming
4440
text: Distributed under a liberal [BSD license](https://github.com/numpy/numpy/blob/master/LICENSE.txt), NumPy is developed and maintained publicly on GitHub by a vibrant, responsive and diverse community.
4541
tabs:
4642
title: Ecosystem

layouts/partials/css.html

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<!-- Custom CSS -->
1818
<link rel="stylesheet" type="text/css" href="{{ "css/styles.css" | relURL }}" />
1919
<link rel="stylesheet" type="text/css" href="{{ "css/shell.css" | relURL }}" />
20+
<link rel="stylesheet" type="text/css" href="{{ "css/section2.css" | relURL }}" />
2021
<!-- Numpy Favicon -->
2122
<link rel="icon" type="image/png" href="{{ "images/favicon.png" | relURL }}" />
2223
<!-- Google Fonts - Ubuntu -->

layouts/partials/section2.html

+12-28
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,18 @@
11
{{- $section2 := .Site.Params.section2 }}
22
{{- $title := index $section2 "title" }}
3-
{{- $subtitle := index $section2 "subtitle" }}
43
{{- $features := index $section2 "features" }}
5-
<section class="section is-medium">
6-
<div class="container">
7-
<div class="columns is-centered">
8-
<div class="column is-8">
9-
<h1 class="title section-title">{{ $title }}</h1>
10-
<h3 class="subtitle is-muted">{{ $subtitle }}</h3>
11-
<div class="divider"></div>
12-
<div class="mt-30"></div>
13-
{{- range $features }}
14-
<article class="media icon-box">
15-
<figure class="media-left">
16-
<p id="section2-image" class="image">
17-
<img src="{{ printf "/images/illustrations/icons/%s.svg" .icon | relURL }}">
18-
</p>
19-
</figure>
20-
<div class="media-content mt-50">
21-
<div class="content">
22-
<p>
23-
<span class="icon-box-title">{{ .title }}</span>
24-
25-
<span class="icon-box-text">{{ .text | markdownify }}</span>
26-
</p>
4+
<section class="section2">
5+
<div class="container">
6+
<h1 class="section2-title">{{ $title }}</h1>
7+
<div class="section2-box-container">
8+
{{- range $features }}
9+
<div class="section2-box-content section2-underline">
10+
<p>
11+
<div class="section2-box-title">{{ .title }}</div>
12+
<div class="section2-box-text">{{ .text | markdownify }}</div>
13+
</p>
2714
</div>
28-
</div>
29-
</article>
30-
{{- end }}
31-
</div>
15+
{{- end }}
16+
</div>
3217
</div>
33-
</div>
3418
</section>

static/css/section2.css

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
.section2 {
2+
padding: 30px;
3+
margin: 35px 0 0 0;
4+
}
5+
6+
.section2-title {
7+
display: flex;
8+
justify-content: center;
9+
font-size: 30px;
10+
}
11+
12+
.section2-box-container {
13+
display: flex;
14+
flex-wrap: wrap;
15+
justify-content: center;
16+
}
17+
18+
.section2-box-content {
19+
height: 250px;
20+
width: 30vw;
21+
margin: 30px;
22+
border-radius: 5px;
23+
}
24+
25+
.section2-box-title {
26+
margin: 15px;
27+
font-size: 19px;
28+
}
29+
30+
.section2-box-text {
31+
margin: 30px 15px;
32+
}
33+
34+
@media only screen and (max-width: 900px) {
35+
.section2-box-container {
36+
flex-direction: column;
37+
}
38+
39+
.section2-box-content {
40+
width: 80vw;
41+
}
42+
}
43+
44+
.section2-underline {
45+
display: inline-block;
46+
vertical-align: middle;
47+
-webkit-transform: perspective(1px) translateZ(0);
48+
transform: perspective(1px) translateZ(0);
49+
box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
50+
position: relative;
51+
overflow: hidden;
52+
}
53+
54+
.section2-underline:before {
55+
content: "";
56+
position: absolute;
57+
z-index: -1;
58+
left: 0;
59+
right: 100%;
60+
bottom: 0;
61+
background: #013243;
62+
height: 4px;
63+
-webkit-transition-property: right;
64+
transition-property: right;
65+
-webkit-transition-duration: 0.3s;
66+
transition-duration: 0.3s;
67+
-webkit-transition-timing-function: ease-out;
68+
transition-timing-function: ease-out;
69+
}
70+
71+
.section2-underline:hover:before, .section2-underline:focus:before, .section2-underline:active:before {
72+
right: 0;
73+
}

static/images/illustrations/icons/cartesian.svg

-63
This file was deleted.

static/images/illustrations/icons/chip.svg

-136
This file was deleted.

0 commit comments

Comments
 (0)