Skip to content

Commit 6fc0837

Browse files
committed
new logo sketch + small style updates
- updated logo sketch + added static image for preload - updated styling of basil.js typo treatment - updated download.md - tweets styling - nav menu spacing - removed 10mb unused gif - changed order of JS events for faster overall loading (tweets last)
1 parent c9a247a commit 6fc0837

File tree

9 files changed

+118
-138
lines changed

9 files changed

+118
-138
lines changed

_source/_includes/aside-left.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,12 @@
2525

2626
</ul>
2727
<div class="tweet">
28-
<p>Latest Tweets:</p>
2928
<div class="message"></div>
3029
<div class="tweettime"></div>
3130
<div class="twitter-link"><a href="https://twitter.com/basil_js" class="textgrow menu-link">@basil_js</a></div>
3231
</div>
3332
<div class="sponsors-text">
34-
<p>Generously sponsored by</p>
33+
Sponsors
3534
</div>
3635
<div class="logo">
3736
<a href="https://www.fhnw.ch/hgk/ivk"><img src="/assets/images/fhnw-logo.svg" alt="FHNW logo and link"></a>

_source/assets/css/styles.scss

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ body {
9797

9898
span {
9999
position: relative;
100-
padding: 0px 4px;
100+
padding: 0px 3px;
101101
font-size: 30px;
102102
border-bottom: 1px solid $textColor;
103103
}
@@ -212,6 +212,12 @@ p {
212212
}
213213
}
214214

215+
#logo {
216+
background-image:url('/assets/images/p5-static.png');
217+
width:180px !important;
218+
height:130px !important;
219+
}
220+
215221
.fhnw-logo,
216222
.sponsor-logo {
217223
// padding-left: 25px;
@@ -443,16 +449,18 @@ pre {
443449
// @Son Please merge this so we don't have
444450
// double definitions
445451
.tweet {
446-
font-size: 14px;
452+
max-width:200px;
447453
padding-left: 25px;
448-
.message,
449-
.tweettime {
450-
}
451-
.message,
452-
.tweettime,
453-
.twitter-link {
454-
}
455-
margin-bottom: 0.75em;
454+
margin-bottom: 25px;
455+
}
456+
.message, .tweettime{
457+
font-size: 9pt;
458+
line-height:1.3em;
459+
font-style:italic;
460+
}
461+
.twitter-link {
462+
margin-top:10px;
463+
margin-left:-25px;
456464
}
457465
.sponsors-text {
458466
font-size: 14px;
@@ -468,7 +476,7 @@ a.textgrow {
468476

469477
span {
470478
position: relative;
471-
padding: 0px 4px;
479+
padding: 0px 1px;
472480
font-size: 30px;
473481
border-bottom: 1px solid $textColor;
474482
}
@@ -482,7 +490,7 @@ a.textgrow {
482490
font-weight: 700;
483491
span {
484492
// position: relative;
485-
// padding: 0px 4px;
493+
// padding: 0px 1px;
486494
border-bottom: 1px solid $textColor;
487495
}
488496
}

_source/assets/images/out.gif

-9.79 MB
Binary file not shown.

_source/assets/images/p5-static.png

17.8 KB
Loading

_source/assets/js/src/decoration.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export function specialChars() {
77
const chars = element.innerText.split('');
88
element.innerHTML = null;
99
chars.forEach((char, i) => {
10-
const fontSize = 30 - (2 * i);
11-
const style = `border-bottom-width: ${(i + 1)}px; font-size: ${fontSize}px; top: -${(i + (2 * i))}px;`;
10+
const fontSize = 30 - (1.2 * i);
11+
const style = `border-bottom-width: ${(i + 1)}px; font-size: ${fontSize}px; top: -${(i + (2 * i))}px; padding:0px ${(i + 1)*.7}px;`;
1212
const node = document.createElement('span');
1313
node.style.cssText = style;
1414
const content = document.createTextNode(char);

_source/assets/js/src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import { specialChars, createGuideLines } from "./decoration";
66
let p5sketch;
77
document.addEventListener("DOMContentLoaded", () => {
88
// console.log("hello main");
9-
tweets();
109
specialChars();
1110
createGuideLines();
1211
mobileNav();
1312
p5sketch = new p5(sketch);
13+
tweets();
1414
});
1515

1616
window.onblur = function() {

_source/assets/js/src/p5sketch.js

Lines changed: 39 additions & 69 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_source/download/index.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,26 @@ order: 1
1010

1111
## Download basil.js
1212

13-
The basil.js latest stable release:
14-
[basil.js relase on GitHub](https://github.com/basiljs/basil.js/releases/latest)
13+
This website is based on the in-progress [basil.js *develop* branch](https://github.com/basiljs/basil.js/tree/develop)
14+
In the future, this will link to the:
15+
[basil.js latest release](https://github.com/basiljs/basil.js/releases/latest)
1516

1617
Download the bundle above and follow
1718
the steps in our [installation guide](/tutorials/01-getting-started) at our tutorials section.
1819

1920
## Cheatsheets and References
2021

2122
The basil.js cheatsheet:
22-
[basiljs_cheatsheet_v2_02.pdf](/assets/files/basiljs_cheatsheet_v2_02.pdf)
23+
[basiljs\_cheatsheet\_v2\_02.pdf](/assets/files/basiljs_cheatsheet_v2_02.pdf)
24+
25+
The basil.js b.typo cheatsheet:
26+
[basiljs\_typo\_cheatsheet\_v2\_01.pdf](/assets/files/basiljs_typo_cheatsheet_v2_01.pdf)
2327

2428
The basil.js InDesign Object Model:
2529
[basiljs-IOM-0.2.pdf](/assets/files/basiljs-IOM-0.2.pdf)
2630

27-
The basil.js b.typo cheatsheet:
28-
[basiljs_typo_cheatsheet_v2_01.pdf](/assets/files/basiljs_typo_cheatsheet_v2_01.pdf)
29-
31+
InDesign Scripting Reference:
32+
[InDesign\_Skripting\_Kurzreferenz.pdf](https://www.indesignjs.de/auflage2/wp-content/uploads/2015/04/InDesign_Skripting_Kurzreferenz.pdf)
3033
## Source code
3134

3235
Please note that basil.js is provided as open-source under the [MIT License](https://opensource.org/licenses/MIT).

0 commit comments

Comments
 (0)