Skip to content

Commit

Permalink
add events page (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
bharattech authored Jul 25, 2023
1 parent 4d98f94 commit ee25a4c
Show file tree
Hide file tree
Showing 5 changed files with 162 additions and 1 deletion.
11 changes: 11 additions & 0 deletions content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,35 @@ section = "blog"
url = "/blog/"
weight = 20

[[extra.menu.main]]
name = "Events"
section = "events"
url = "/events/"
weight = 20

[[extra.list]]
title = "Rust Resources"
content = 'Get all the resources for you to get started from basics to advanced topics'
url = "#"

[[extra.list]]
title = "Sub Communities"
content = 'Information and PoC of communities near you to take part in and geek out on Rust together'
url = "/docs/sub-communities/details"

[[extra.list]]
title = "Mentorship"
content = "Rust Bridge program and more initiatives to pair new commers with experienced Rustaceans to get the much needed mentorship."
url = "#"

[[extra.list]]
title = "Newsletter"
content = "Timely news on what's happening in the Rust India ecosystem and get a glimpse of what are building"
url = "#"

[[extra.list]]
title = "Events"
content = "Get to know about meetups, events happening across India where you can take part in and exchange knowledge"
url = "/events"

+++
2 changes: 1 addition & 1 deletion content/docs/sub-communities/details.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ toc = true
top = false
+++

##### Want to add your community details? Please create a PR and [add the details to this table!](https://github.com/rustindia/rustindia.github.io/blob/master/content/docs/sub-communities/details.md) or reach out us for help. Maybe use [markdown table generator](https://tablesgenerator.com/markdown_tables#) for ease
##### Want to add your community details? Please create a PR and [add the details to this table!](https://github.com/rustindia/rustindia.github.io/blob/master/content/docs/sub-communities/details.md) or reach out us for help. Maybe use [markdown table generator](https://tablesgenerator.com/markdown_tables#) for ease. Do checkout the latest [events conducted by these communities](/events).

| Location | Events | Community Platform | Social Media Presence | Misc Links |
| ----------------- | ------------------------------------------------ | ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ---------- |
Expand Down
10 changes: 10 additions & 0 deletions content/events/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
+++
title = "Events"
description = "List of Rust India events in 2023"
date = 2023-07-14T08:00:00+00:00
updated = 2023-07-14T08:00:00+00:00
draft = false
template = "events/section.html"
+++

The list of upcoming events.
50 changes: 50 additions & 0 deletions templates/events/section.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{% extends "section.html" %}

{% block body %}
{% set page_class = "Community upcoming events" %}
{% endblock body %}

{% block header %}
{# This value is matched by the config.extra.menu.main->section #}
{% set current_section = "events" %}
{{ macros_header::header(current_section=current_section)}}
{% endblock header %}

{% block content %}
<div class="wrap container" role="document">
<div class="content">
<div class="row justify-content-center">
<div class="col-md-12 col-lg-10 col-xxl-14">
<article>
<h1 class="text-center">{{ section.title }}</h1>
<h3 class="text-center">{{ section.description }}</h3>
</article>
<article class="ifcontainer">
<style>
.ifcontainer {
position: relative;
overflow: hidden;
width: 100%;
padding-top: 56.25%;
/* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

/* Then style the iframe to fit in the container div with full height and width */
.responsive-iframe {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
width: 100%;
height: 100%;
}
</style>
<iframe scrolling="no" class="responsive-iframe"
src="https://serverless-events-zkwagd06.fermyon.app/static/events.html" title="rust-india-events" ></iframe>
</article>
</div>
</div>
</div>
</div>
{% endblock content %}
90 changes: 90 additions & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{% extends "base.html" %}

{% block seo %}
{{ super() }}

{% if config.title %}
{% set title = config.title %}
{% else %}
{% set title = "" %}
{% endif %}

{% if config.extra.title_addition and title %}
{% set title_addition = title_separator ~ config.extra.title_addition %}
{% elif config.extra.title_addition %}
{% set title_addition = config.extra.title_addition %}
{% else %}
{% set title_addition = "" %}
{% endif %}

{% set description = config.description %}

{{ macros_head::seo(title=title, title_addition=title_addition, description=description, is_home=true) }}
{% endblock seo %}

{% block content %}
<div class="wrap container" role="document">
<div class="content">
<section class="section container-fluid mt-n3 pb-3">
<div class="row justify-content-center">
<div class="col-lg-12 text-center">
<h1 class="mt-0">{{ section.title | default(value="Modern Documentation Theme") }}</h1>
</div>
<div class="col-lg-9 col-xl-8 text-center">
<p class="lead">{{ section.extra.lead | default(value="Please start setting config.toml and adding your content.") | safe }}</p>
<a class="btn btn-primary btn-lg px-4 mb-2" href="{{ get_url(path=section.extra.url | default(value="/")) | safe }}" role="button">{{ section.extra.url_button | default(value="Get started") }}</a>
<p class="meta">{{ section.extra.repo_license | default(value="MIT")}} <a href="{{ section.extra.repo_url | default(value="https://github.com/aaranxu/adidoks") | safe }}">{{ section.extra.repo_version | default(value="0.1.0") }}</a></p>
</div>
</div>
</section>
</div>
</div>

<section class="section section-sm">
<div class="container">
<div class="row justify-content-center text-center">
{% if section.extra.list %}
{% for val in section.extra.list %}
<div class="col-lg-5">
<a href="{{ val.url }}">
<h2 class="h4">{{ val.title }}</h2>
</a>
<p>{{ val.content | safe }}</p>
</div>
{% endfor %}
{% else %}
<div class="col-lg-5">
<h2 class="h4">Security aware</h2>
<p>Get A+ scores on <a href="https://observatory.mozilla.org/analyze/doks.netlify.app">Mozilla Observatory</a> out of the box. Easily change the default Security Headers to suit your needs.</p>
</div>
<div class="col-lg-5">
<h2 class="h4">Fast by default ⚡️</h2>
<p>Get 100 scores on <a href="https://googlechrome.github.io/lighthouse/viewer/?gist=7731347bb8ce999eff7428a8e763b637">Google Lighthouse</a> by default. Doks removes unused css, prefetches links, and lazy loads images.</p>
</div>
<div class="col-lg-5">
<h2 class="h4">SEO-ready</h2>
<p>Use sensible defaults for structured data, open graph, and Twitter cards. Or easily change the SEO settings to your liking.</p>
</div>
<div class="col-lg-5">
<h2 class="h4">Full text search</h2>
<p>Search your Doks site with FlexSearch. Easily customize index settings and search options to your liking.</p>
</div>
<div class="col-lg-5">
<h2 class="h4">Page layouts</h2>
<p>Build pages with a landing page, blog, or documentation layout. Add custom sections and components to suit your needs.</p>
</div>
<div class="col-lg-5">
<h2 class="h4">Dark mode</h2>
<p>Switch to a low-light UI with the click of a button. Change colors with variables to match your branding.</p>
</div>
{% endif %}
</div>
</div>
</section>

<section class="section section-sm container-fluid">
<div class="row justify-content-center text-center">
<div class="col-lg-9"></div>
</div>
</section>
{% endblock content %}

0 comments on commit ee25a4c

Please sign in to comment.