updated tailwind, added menu & button shortcodes
This commit is contained in:
		@@ -14,39 +14,52 @@ extra:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
##### PURPOSE
 | 
					##### PURPOSE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					{% button() %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
###### [The Internot](/apage)
 | 
					###### [The Internot](/apage)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Whats wrong with the [internet](/apage)
 | 
					Whats wrong with the [internet](/apage)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<br>
 | 
					<br>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					{%% end %%}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					{% button() %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
###### Our Internet
 | 
					###### Our Internet
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Vision for the new internet
 | 
					Vision for the new internet
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					{%% end %%}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
|||
 | 
					|||
 | 
				
			||||||
 | 
					
 | 
				
			||||||
##### ECOSYSTEM
 | 
					##### ECOSYSTEM
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<br>
 | 
					{% button() %}
 | 
				
			||||||
<br>
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
#### OurWorld DAO
 | 
					#### OurWorld DAO
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Be a part of governance
 | 
					Be a part of governance
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<br>
 | 
					{%% end %%}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					{% button() %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#### Communities
 | 
					#### Communities
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Explore communities in OurWorld
 | 
					Explore communities in OurWorld
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<br>
 | 
					{%% end %%}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					{% button() %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#### DAOs
 | 
					#### DAOs
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Decentralized autonomous organizations
 | 
					Decentralized autonomous organizations
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					{%% end %%}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
|||
 | 
					|||
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### APPLICATIONS
 | 
					### APPLICATIONS
 | 
				
			||||||
@@ -75,7 +88,7 @@ Projects in OurWorld
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Be a part of the new internet
 | 
					Be a part of the new internet
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					{% end %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- [Join us]("/join-us")
 | 
					- [Join us]("/join-us")
 | 
				
			||||||
- [Blog]("/blog")
 | 
					- [Blog]("/blog")
 | 
				
			||||||
 | 
					 | 
				
			||||||
{% end %}
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										745
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										745
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -21,16 +21,17 @@
 | 
				
			|||||||
    "maintained node versions"
 | 
					    "maintained node versions"
 | 
				
			||||||
  ],
 | 
					  ],
 | 
				
			||||||
  "devDependencies": {
 | 
					  "devDependencies": {
 | 
				
			||||||
    "autoprefixer": "^10.2.6",
 | 
					    "autoprefixer": "^10.4.2",
 | 
				
			||||||
    "glob": "^7.1.7",
 | 
					    "glob": "^7.1.7",
 | 
				
			||||||
    "glob-all": "^3.2.1",
 | 
					    "glob-all": "^3.2.1",
 | 
				
			||||||
    "npm-run-all": "^4.1.5",
 | 
					    "npm-run-all": "^4.1.5",
 | 
				
			||||||
 | 
					    "postcss": "^8.4.8",
 | 
				
			||||||
    "postcss-cli": "^8.3.1",
 | 
					    "postcss-cli": "^8.3.1",
 | 
				
			||||||
    "postcss-csso": "^5.0.1",
 | 
					    "postcss-csso": "^5.0.1",
 | 
				
			||||||
    "postcss-import": "^14.0.2",
 | 
					    "postcss-import": "^14.0.2",
 | 
				
			||||||
    "postcss-nesting": "^8.0.1",
 | 
					    "postcss-nesting": "^8.0.1",
 | 
				
			||||||
    "rimraf": "^3.0.2",
 | 
					    "rimraf": "^3.0.2",
 | 
				
			||||||
    "tailwindcss": "^2.2.19",
 | 
					    "tailwindcss": "^3.0.23",
 | 
				
			||||||
    "ts-rmb-http-client": "^1.0.3",
 | 
					    "ts-rmb-http-client": "^1.0.3",
 | 
				
			||||||
    "typescript": "^4.5.5"
 | 
					    "typescript": "^4.5.5"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,7 +14,10 @@ module.exports = {
 | 
				
			|||||||
      white: '#ffffff',
 | 
					      white: '#ffffff',
 | 
				
			||||||
      black: '#000000',
 | 
					      black: '#000000',
 | 
				
			||||||
      gray: colors.gray,
 | 
					      gray: colors.gray,
 | 
				
			||||||
 | 
					      slate: colors.slate,
 | 
				
			||||||
 | 
					      stone: colors.stone,
 | 
				
			||||||
      yellow: colors.yellow,
 | 
					      yellow: colors.yellow,
 | 
				
			||||||
 | 
					      orange: colors.orange,
 | 
				
			||||||
      blue: {
 | 
					      blue: {
 | 
				
			||||||
        '100': '#bbeeff',
 | 
					        '100': '#bbeeff',
 | 
				
			||||||
        '200': '#00aaff',
 | 
					        '200': '#00aaff',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -91,7 +91,7 @@
 | 
				
			|||||||
<header id="header-container">
 | 
					<header id="header-container">
 | 
				
			||||||
    <div class="z-10 bg-white fixed w-screen">
 | 
					    <div class="z-10 bg-white fixed w-screen">
 | 
				
			||||||
        <div class="relative z-50 shadow">
 | 
					        <div class="relative z-50 shadow">
 | 
				
			||||||
        <div class="mx-auto flex z-50 shadow justify-between items-center px-6 py-5 sm:px-8 sm:py-6 lg:px-12 lg:justify-start lg:space-x-20">
 | 
					        <div class="mx-auto flex z-50 shadow justify-between items-center px-6 py-5 sm:px-8 md:px-12 sm:py-6 lg:px-20 lg:justify-start lg:space-x-20">
 | 
				
			||||||
            <div>
 | 
					            <div>
 | 
				
			||||||
                <a href="/" class="flex">
 | 
					                <a href="/" class="flex">
 | 
				
			||||||
                    <img class="w-20 h-auto sm:w-32" src="{{section.extra.logoPath}}" alt="Ourworld Logo" />
 | 
					                    <img class="w-20 h-auto sm:w-32" src="{{section.extra.logoPath}}" alt="Ourworld Logo" />
 | 
				
			||||||
@@ -121,13 +121,13 @@
 | 
				
			|||||||
    {% if '<a' in header_label %}
 | 
					    {% if '<a' in header_label %}
 | 
				
			||||||
        {% set link_label = header_label | striptags %}
 | 
					        {% set link_label = header_label | striptags %}
 | 
				
			||||||
        {% set link_path = header_label | split(pat="%22") | safe%}
 | 
					        {% set link_path = header_label | split(pat="%22") | safe%}
 | 
				
			||||||
        <a href="{{link_path[1]}}" class="text-md leading-6 font-medium text-gray-900 focus:outline-none focus:text-gray-900 transition ease-in-out duration-150 mt-0">
 | 
					        <a href="{{link_path[1]}}" class="text-lg leading-6 font-medium text-gray-900 focus:outline-none focus:text-gray-900 transition ease-in-out duration-150 mt-0">
 | 
				
			||||||
            {{link_label}}
 | 
					            {{link_label}}
 | 
				
			||||||
        </a>
 | 
					        </a>
 | 
				
			||||||
    {% else %}
 | 
					    {% else %}
 | 
				
			||||||
        <div class="relative">
 | 
					        <div class="relative">
 | 
				
			||||||
            {% set button_id = header_label ~ "-menu-btn" | slugify %}
 | 
					            {% set button_id = header_label ~ "-menu-btn" | slugify %}
 | 
				
			||||||
        <button type="button" id="{{button_id}}" class="font-medium text-gray-900 group inline-flex items-center space-x-2 text-md leading-6 font-normal hover:text-blue-300 focus:outline-none transition ease-in-out duration-150">
 | 
					        <button type="button" id="{{button_id}}" class="font-medium text-gray-900 group inline-flex items-center space-x-2 text-lg leading-6 font-normal hover:text-blue-300 focus:outline-none transition ease-in-out duration-150">
 | 
				
			||||||
            <span>{{ header_label }}</span>
 | 
					            <span>{{ header_label }}</span>
 | 
				
			||||||
            <!--
 | 
					            <!--
 | 
				
			||||||
            Heroicon name: chevron-down
 | 
					            Heroicon name: chevron-down
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,10 +7,10 @@
 | 
				
			|||||||
{% set admonition = parsed_first_line | first %}
 | 
					{% set admonition = parsed_first_line | first %}
 | 
				
			||||||
{% set style = "" %}
 | 
					{% set style = "" %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
{% set content = body | split(pat="\n") | slice(start=2) | join(sep="\n") %}
 | 
					{% set content = body | split(pat="\n") | slice(start=2) | join(sep="\n") %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<!-- hides content if doesn't adhere to admonition formatting -->
 | 
					<!-- sets admonition type depending on qualifiers and modifiers 
 | 
				
			||||||
 | 
					    hides content if doesn't adhere to admonition formatting -->
 | 
				
			||||||
{% if admonition == "!!!" %}
 | 
					{% if admonition == "!!!" %}
 | 
				
			||||||
    {% set classes = "admonition" %}
 | 
					    {% set classes = "admonition" %}
 | 
				
			||||||
{% elif admonition == "???" %}
 | 
					{% elif admonition == "???" %}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										3
									
								
								templates/shortcodes/button.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								templates/shortcodes/button.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
				
			|||||||
 | 
					<button class="border-transparent flex flex-col border-2 w-80 items-start rounded h-24 transition hover:first:text-gray-500 hover:border-stone-200 hover:bg-stone-100 p-2">
 | 
				
			||||||
 | 
					    {{ body | trim_start_matches(pat="<p></p>") | safe}}
 | 
				
			||||||
 | 
					</button>
 | 
				
			||||||
@@ -27,19 +27,28 @@ Parameters:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
<div class="{{classes}}" style="{{styles}}">
 | 
					<div class="{{classes}}" style="{{styles}}">
 | 
				
			||||||
    {% for column in columns%} 
 | 
					    {% for column in columns%} 
 | 
				
			||||||
 | 
					 | 
				
			||||||
        <!-- Hides empty columns if displayed vertically in small screen -->
 | 
					        <!-- Hides empty columns if displayed vertically in small screen -->
 | 
				
			||||||
        {% if column | as_str | length < 10 %} 
 | 
					        {% if column | as_str | length < 10 %} 
 | 
				
			||||||
            <div class="hidden md:block flex-1 md:mb-0 md:mx-8 sm:flex-1">
 | 
					            <div class="hidden md:block flex-1 md:mb-0 md:mx-8 sm:flex-1">
 | 
				
			||||||
                {{ column | safe }}
 | 
					                {{column | split(pat="{% button() %}") | slice(end=1)}}
 | 
				
			||||||
 | 
					                {% for button in column | split(pat="{% button() %}") | slice(start=1) | join(sep="") | split(pat="{%% end %%}") | slice(end=-1) %}
 | 
				
			||||||
 | 
					                    {% set body = button %}
 | 
				
			||||||
 | 
					                    {% include "shortcodes/button.html" %}               
 | 
				
			||||||
 | 
					                {% endfor %}
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        {% else %}
 | 
					        {% else %}
 | 
				
			||||||
            <div class="{{column_classes}}">
 | 
					            <div class="{{column_classes}}">
 | 
				
			||||||
                <!-- handles mermaid markdown content display -->
 | 
					                {{column | split(pat="{% button() %}") | slice(end=1) | first | safe}}
 | 
				
			||||||
                {{ column | safe }}
 | 
					                <hr>
 | 
				
			||||||
            </div>
 | 
					                <br/>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                <!-- handles mermaid markdown content display -->
 | 
				
			||||||
 | 
					                {% for button in column | split(pat="{% button() %}") | slice(start=1) | join(sep="") | split(pat="{%% end %%}") | slice(end=-1) %}
 | 
				
			||||||
 | 
					                    {% set body = button %}
 | 
				
			||||||
 | 
					                    {% include "shortcodes/button.html" %}               
 | 
				
			||||||
 | 
					                {% endfor %}
 | 
				
			||||||
 | 
					            </div>
 | 
				
			||||||
        {% endif %}
 | 
					        {% endif %}
 | 
				
			||||||
    {% endfor %}
 | 
					    {% endfor %}
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
		Reference in New Issue
	
	Block a user