From 10eefa2753fc93e3b4270e45ddd011713573e5a8 Mon Sep 17 00:00:00 2001 From: timurgordon Date: Wed, 16 Feb 2022 05:46:55 +0300 Subject: [PATCH] cleaned shortcodes, automized header creation --- .DS_Store | Bin 6148 -> 6148 bytes content/_index.md | 28 ++- content/blog/2018/10/post-1/index.md | 6 - content/blog/2018/10/post-2/index.md | 2 - content/blog/_index.md | 2 +- content/blog/featured/_index.md | 6 - content/careers/_index.md | 97 +++++++++ content/header/_index.md | 98 +++++++++ css/index.css | 39 ++++ templates/.DS_Store | Bin 0 -> 6148 bytes templates/_default/base.html | 3 + templates/index copy.html | 31 +++ templates/index.html | 5 +- templates/page.html | 2 +- templates/pages/defaultPage.html | 7 + templates/partials/header.html | 304 ++++----------------------- templates/shortcodes/imgc.html | 23 -- templates/shortcodes/row.html | 14 ++ 18 files changed, 356 insertions(+), 311 deletions(-) create mode 100644 content/careers/_index.md create mode 100644 content/header/_index.md create mode 100644 templates/.DS_Store create mode 100644 templates/index copy.html create mode 100644 templates/pages/defaultPage.html delete mode 100644 templates/shortcodes/imgc.html create mode 100644 templates/shortcodes/row.html diff --git a/.DS_Store b/.DS_Store index 5a82b6bee09bc4b87e60b249a861eb5c82222bbf..0f6655cad0a538276947610ab36458c6ab9019bb 100644 GIT binary patch delta 334 zcmZoMXfc=|#>B)qu~2NHo+2a5!~pA!7aACWj2`oPPKFYOREAuJ0)`xhL@>KJsl2!# zDJMUPfq`L1QbA5;afyM!HAW_87FITP4t5T1j@aOg{PN(E#FEltr^KRY5HBP@KPL&s zPD~2ROf8QW5OL1WD@n}EODzIx$V^EEDv1ft%uC5Hcgio#ODT@7N0Q;-AvvYFu^1FbJ0|G`y2+hC?rD0Szkb%W( zWx+*xIr(|%Kv{^+jmM6$Y-Z=+=KzM!#)IFPC-aNwihv9ONjE@fu*%ILA{&?|Hn0Ey DWR_F4 delta 74 zcmZoMXfc=|#>CJzu~2NHo+2aD!~pBb1|lqz`I$^MyD%SS*&M*!$h4WAgP#MaXtN{p ccjn3bBD$Q63=9khfS6&j4UhEZ7?CB+0OI!&Y5)KL diff --git a/content/_index.md b/content/_index.md index 4ed4f9f..9ee12c1 100644 --- a/content/_index.md +++ b/content/_index.md @@ -10,6 +10,32 @@ extra: #subtitle: --- -# Together, we create the future +{% row() %} + +## Together, we create the future Together we expand and create this OurWorld platform, with the purpose to give a better digital life to billions of people. Anyone is invited to build solutions (experiences on top). OurWorld can provide the alternative to the current too centralized, unsustainable and abused internet. Let's go back to what the internet was supposed to be. + +||| + +![Image](/images/threefold_globe.png#medium) + +{% end %} + +{% row() %} + +![Image](/images/threefold_img2.png) + +{% end %} + +{% row() %} + +## A world for and by the people + +Together we expand and create this OurWorld platform, with the purpose to give a better digital life to billions of people. OurWorld can provide the alternative to the current too centralized, unsustainable and abused internet. Let's go back to what the internet was supposed to be. + +||| + +![Image](/images/threefold_globe.png) + +{% end %} diff --git a/content/blog/2018/10/post-1/index.md b/content/blog/2018/10/post-1/index.md index 82bfd88..9255e93 100644 --- a/content/blog/2018/10/post-1/index.md +++ b/content/blog/2018/10/post-1/index.md @@ -26,10 +26,4 @@ Text here. And here are some examples of how to use the `imgc` shortcode in `/templates/shortcodes`: -{{ imgc(path="blog//2018/10/post-1/Typography-scr-cap-2-2018-10-16.jpg", alt="Thin and dim text that is hard to read", width=1344, height=200) }} - -{{ imgc(path="blog//2018/10/post-1/Typography-scr-cap-3-2018-10-16.jpg", alt="More thin and dim text that is hard to read", width=1398, height=252) }} - -{{ imgc(path="blog//2018/10/post-1/Typography-scr-cap-4-2018-10-16.jpg", alt="Still more thin and dim text that is hard to read", width=1398, height=164) }} - Closing text. That ends Post 1! diff --git a/content/blog/2018/10/post-2/index.md b/content/blog/2018/10/post-2/index.md index 990e930..699852a 100644 --- a/content/blog/2018/10/post-2/index.md +++ b/content/blog/2018/10/post-2/index.md @@ -26,6 +26,4 @@ Text here. And here's an example of how to use the `imgc` shortcode in `/templates/shortcodes`: -{{ imgc(path="blog//2018/10/post-2/Early-Web-font-grfx-1-2018-10-16_1218x1296.jpg", alt="Image from Apple Web site in 1999 showing graphic elements as text", width=1218, height=1296) }} - Closing text. That ends Post 2! diff --git a/content/blog/_index.md b/content/blog/_index.md index 644f7d2..9bedfdf 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -10,5 +10,5 @@ insert_anchor_links: "left" template: "blog/blog.html" #transparent: true extra: - imgPath: images/threefold_img2.png + imgPath: /images/threefold_img2.png --- diff --git a/content/blog/featured/_index.md b/content/blog/featured/_index.md index 3f5664a..1e0f7b3 100644 --- a/content/blog/featured/_index.md +++ b/content/blog/featured/_index.md @@ -28,10 +28,4 @@ Text here. And here are some examples of how to use the `imgc` shortcode in `/templates/shortcodes`: -{{ imgc(path="blog//2018/10/post-1/Typography-scr-cap-2-2018-10-16.jpg", alt="Thin and dim text that is hard to read", width=1344, height=200) }} - -{{ imgc(path="blog//2018/10/post-1/Typography-scr-cap-3-2018-10-16.jpg", alt="More thin and dim text that is hard to read", width=1398, height=252) }} - -{{ imgc(path="blog//2018/10/post-1/Typography-scr-cap-4-2018-10-16.jpg", alt="Still more thin and dim text that is hard to read", width=1398, height=164) }} - Closing text. That ends Post 1! diff --git a/content/careers/_index.md b/content/careers/_index.md new file mode 100644 index 0000000..5f67985 --- /dev/null +++ b/content/careers/_index.md @@ -0,0 +1,97 @@ +--- +title: "Careers" +description: "NEAR is on a mission to empower everyone to take back control of their money, their data, and their identity. Join us." +insert_anchor_links: "left" +template: "index.html" +extra: + imgPath: "/images/careers-hero.jpg" +--- + +{% rowWithBackground(imagePath="/images/careers-hero.jpg") %} + +# Rebuild the web + +![Image](/images/tf_logo.png#bg) + +NEAR is on a mission to empower everyone to take back control of their money, their data, and their identity. Join us. + +[View Current Openings](https://near.org/careers/#openings) + +{% end %} + +{% row() %} + +## Who is building NEAR? + +NEAR Protocol is built by a global, world-class, cross-organizational group of contributors called the NEAR Collective. Its teams are creating the technical groundwork for the applications and companies of the future while solving some of the hardest problems that exist in decentralized and distributed systems. + +||| + +{% end %} + +{% row() %} + +## Well Vetted + +Work with people who have built world-changing companies. + +||| + +![Image](/images/tf_logo.png) +![Image](/images/tf_logo.png) +![Image](/images/tf_logo.png) + +||| + +![Image](/images/tf_logo.png) +![Image](/images/tf_logo.png) +![Image](/images/tf_logo.png) + +||| + +![Image](/images/tf_logo.png) +![Image](/images/tf_logo.png) + +{% end %} + +{% row() %} + +## Ecosystem Values + +The NEAR Collective has unashamedly high standards. We’re looking for people at the top of their game who share our values of building a future that is open, inclusive and fair. + +{% end %} + +{% row() %} + +![Image](/images/tf_icon.png#small) + +### Fast-learner + +We’re building technology that has never been seen before. We learn each day and build on this new knowledge as we go. + +||| + +![Image](/images/tf_icon.png#small) + +### Fast-learner + +We’re building technology that has never been seen before. We learn each day and build on this new knowledge as we go. + +||| + +![Image](/images/tf_icon.png#small) + +### Fast-learner + +We’re building technology that has never been seen before. We learn each day and build on this new knowledge as we go. + +||| + +![Image](/images/tf_icon.png#small) + +### Fast-learner + +We’re building technology that has never been seen before. We learn each day and build on this new knowledge as we go. + +{% end %} diff --git a/content/header/_index.md b/content/header/_index.md new file mode 100644 index 0000000..d65acc0 --- /dev/null +++ b/content/header/_index.md @@ -0,0 +1,98 @@ +--- +title: "Header" +description: "NEAR is on a mission to empower everyone to take back control of their money, their data, and their identity. Join us." +insert_anchor_links: "left" +template: "partials/header.html" +extra: + logoPath: "" + imgPath: "" +--- + +- Learn + +{% row(isLean="true") %} + +### BASICS + +
+
+ +#### The Platform + +NEAR in a nutshell + +
+ +#### The Blog + +Official news & updates + +||| + +### USE CASES + +
+
+ +#### DeFi + +Decentralized finance + +
+ +#### NFTs + +Non-fungible tokens + +#### DAOs + +Decentralized autonomous organizations + +||| + +Use Cases + +DeFi: Decentralized finance +NFTs: Non-fungible tokens +DAOs: Decentralized autonomous organizations + +||| + +Featured + +Nightshade Sharding Launches: Paving the Way for Mass Adoption + +{% end %} + +- Learn + +{% row() %} + +Basics + +The Platform: NEAR in a nutshell +The Blog: Official news & updates + +||| + +Use Cases + +DeFi: Decentralized finance +NFTs: Non-fungible tokens +DAOs: Decentralized autonomous organizations + +||| + +Use Cases + +DeFi: Decentralized finance +NFTs: Non-fungible tokens +DAOs: Decentralized autonomous organizations + +||| + +Featured + +Nightshade Sharding Launches: Paving the Way for Mass Adoption + +{% end %} diff --git a/css/index.css b/css/index.css index 6b86aeb..8e989bf 100644 --- a/css/index.css +++ b/css/index.css @@ -16,3 +16,42 @@ .bg-semi-white { background-color: rgba(255, 255, 255, 0.75); } + +/* Custom css allowing image styling in markdown */ +img[src*="#small"] { + width: 38px; +} + +img[src*="#medium"] { + width: 400px; + margin: auto; +} + +h1 { + font-size: 3rem; + font-weight: 400; + line-height: 1.3; +} + +h2 { + font-size: 2.2rem; + font-weight: 500; + line-height: 1.3; + margin: 20px 0px; +} + +h3 { + font-size: 1em; + font-style: normal; + font-weight: 600; + color: rgba(0, 0, 0, 0.5); +} + +h4 { + font-size: 1.3em; + font-weight: 500; +} + +p { + font-size: 15px; +} diff --git a/templates/.DS_Store b/templates/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5446c6f644b8d97e4176225d147a299974fc9982 GIT binary patch literal 6148 zcmeHKOHRWu5PgOSMP<_^OJ9K-L{&LK4*;}*P${abBxRkW^Jd0HjmR1mG$Yw>JRg6a z6gvYTtWNbKumn)D2?kMSM9j0Un;d*c3_8avPG~XI{jQyv=o(G3_Y%*j@rHL??0=h* zo}s{&M@neqP-o);JH`&oY3S;(r`BHvlsGb=W5}M^PMr(%_|Uw8^CVq+l06&nx#|wj0cYTw0l6O{n_!i3G}Nnuot6N^f@T%! zQcFlq%vfa{4e6l-OC?%r$R$RwblPK%t1^y;mX45%kC0bB7cW6q=loH_5h_FPodIWH z%D}A+m-7BU@spV?@~0_2at54%f5t#4)|>T;hstm3kK@T(8`)miL?mt$g+hJu6TpGo gBM<5{e-xc@RmRa!W)Zul6a7a(3GvPu_yq>O09y$*$N&HU literal 0 HcmV?d00001 diff --git a/templates/_default/base.html b/templates/_default/base.html index 3168f16..81e81b4 100644 --- a/templates/_default/base.html +++ b/templates/_default/base.html @@ -1,8 +1,11 @@ {% include "partials/head.html" %} + + {%- set section = get_section(path="header/_index.md") %} {% include "partials/header.html" %} + {%- set section = get_section(path="_index.md") %}
diff --git a/templates/index copy.html b/templates/index copy.html new file mode 100644 index 0000000..d00bdc5 --- /dev/null +++ b/templates/index copy.html @@ -0,0 +1,31 @@ +{% extends "_default/base.html" %} +{% block content %} + + +
+ + + {% include "partials/splitRow.html" %} + + + +
+ + {%- set section = get_section(path="about/community/_index.md") %} + {% include "partials/splitRow.html" %} +
+ + + {%- set section = get_section(path="about/sustainability/_index.md") %} + {% include "partials/splitRow.html" %} +
+ + + {%- set section = get_section(path="about/creators/_index.md") %} + {% include "partials/splitRow.html" %} + + + + +
+{% endblock content %} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index d00bdc5..3b6343f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4,6 +4,8 @@
+ {{section.content | safe}} + {% include "partials/splitRow.html" %} @@ -24,8 +26,5 @@ {%- set section = get_section(path="about/creators/_index.md") %} {% include "partials/splitRow.html" %} - - -
{% endblock content %} \ No newline at end of file diff --git a/templates/page.html b/templates/page.html index c425913..4e71edd 100644 --- a/templates/page.html +++ b/templates/page.html @@ -8,7 +8,7 @@

- {{ page.title }} + {{ page.title }}

diff --git a/templates/pages/defaultPage.html b/templates/pages/defaultPage.html new file mode 100644 index 0000000..e74c2ed --- /dev/null +++ b/templates/pages/defaultPage.html @@ -0,0 +1,7 @@ +{% extends "_default/base.html" %} + +{% block content %} + +
+ {{section.content | safe}} +
{% endblock content %} diff --git a/templates/partials/header.html b/templates/partials/header.html index c7254e2..d3d0ad1 100644 --- a/templates/partials/header.html +++ b/templates/partials/header.html @@ -30,6 +30,10 @@ +{% set header_items = section.content | safe | split(pat="
  • ") %} + + +
    @@ -49,10 +53,15 @@
  • ") %} + {% set header_label = header_arr[0] %}
    - - - Developers - - - Founders & Creators - - - Community - - - Career - Blog - + + {% endif %} + {% endfor %} + + + + + + English + + +
    - - - -