Skip to content

Commit 4b190c6

Browse files
committed
initialize-theme
0 parents  commit 4b190c6

85 files changed

Lines changed: 16890 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.stackbit/images/demo-1024x768.png

205 KB
Loading

.stackbit/images/demo-256x192.png

19 KB
Loading

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Reflex
2+
3+
A multipage theme with posts for Stackbit. [Live Demo](https://themes.stackbit.com/demos/reflex)
4+
5+
[![Create with Stackbit](https://assets.stackbit.com/badge/create-with-stackbit.svg)](https://app.stackbit.com/create?theme=https://github.com/stackbithq/stackbit-theme-reflex)
6+
7+
### Turn themes into CMS-powered websites
8+
9+
[Stackbit](https://www.stackbit.com/) provisions your theme's content model with a growing selection of headless CMS and pulls the content for you in the format your static site generator expects it. This is powered by a single config file, [stackbit.yaml](https://docs.stackbit.com/uniform/stackbit-yaml/), which defines a [Uniform theme model](https://docs.stackbit.com/uniform/) and enables integration with CMS like Contentful, DatoCMS, Forestry, NetlifyCMS, etc.
10+
11+
### One theme codebase converts to multiple Static Site Generators
12+
13+
This theme in particular is written in [Unibit](https://docs.stackbit.com/unibit/), a superset of static site generators. Unibit's powerful transpiling engine enables you to write once and stay SSG agnostic. Themes will automatically work with new generators as they are added and can currently convert to Jekyll, Hugo & Gatsby.
14+
15+
## Quickstart
16+
17+
### Unibit CLI
18+
19+
Develop locally using the Unibit CLI.
20+
21+
```
22+
npm install -g @stackbit/unibit
23+
```
24+
25+
Start the local development server.
26+
27+
```
28+
unibit develop
29+
```
30+
31+
Compile a production build into the `public` folder.
32+
33+
```
34+
unibit build
35+
```
36+
37+
### CodeSandbox
38+
39+
Develop this theme in the browser using CodeSandbox.
40+
41+
[Fork in CodeSandbox](https://codesandbox.io/s/github/stackbithq/stackbit-theme-reflex)

components/contact.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<section>
2+
<form method="post" action="#" id="contactForm">
3+
<div class="fields">
4+
<div class="field half"><input type="text" name="name" id="name" placeholder="Name" /></div>
5+
<div class="field half"><input type="email" name="email" id="email" placeholder="Email" /></div>
6+
<div class="field"><textarea name="message" id="message" placeholder="Message" rows="4"></textarea></div>
7+
</div>
8+
<ul class="actions">
9+
<li><input type="submit" value="Send Message" /></li>
10+
</ul>
11+
</form>
12+
</section>

components/features.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!-- One -->
2+
<section class="wrapper style2 special">
3+
<div class="inner">
4+
<header>
5+
<h2>{{ include_dict.section.title }}</h2>
6+
{{ include_dict.section.subtitle | markdownify }}
7+
</header>
8+
<ul class="icons major style2">
9+
{% for symbol in include_dict.section.symbol_display %}
10+
<li><span class="icon {{ symbol.icon }}"><span class="label">{{ symbol.title }}</span></span></li>
11+
{%- endfor %}
12+
</ul>
13+
{{ include_dict.section.content | markdownify }}
14+
{% if include_dict.section.actions %}
15+
<footer>
16+
<ul class="actions special">
17+
{% for action in include_dict.section.actions %}
18+
<li><a href="{% if action.url | starts_with('#') %}{{ action.url }}{% else %}{{ action.url | link | relative_url }}{% endif %}" {{ classNames("button", {"primary": action.is_primary}, {"scrolly": action.is_scrolly}) }}>{{ action.label }}</a></li>
19+
{% endfor %}
20+
</ul>
21+
</footer>
22+
{% endif %}
23+
</div>
24+
</section>

components/footer.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!-- Footer -->
2+
<section id="footer" class="wrapper split style2">
3+
<div class="inner">
4+
{% if site.data.social.enabled %}
5+
{% include "social.html" %}
6+
{% endif %}
7+
{% if site.data.footer.enable_contact_section %}
8+
{% include "contact.html" %}
9+
{% endif %}
10+
</div>
11+
<div class="copyright">
12+
<p>
13+
{{ site.data.footer.copyright | safe }}
14+
&nbsp;
15+
{% for link in site.data.footer.links %}
16+
<a href="{{ link.url }}" {% if link.new_window %}target="_blank" rel="noopener"
17+
{% endif %}>{{ link.text }}</a>.
18+
{% endfor %}
19+
</p>
20+
</div>
21+
</section>

components/header.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<!-- Header -->
2+
<header id="header">
3+
<nav>
4+
<ul>
5+
<li><a href="#menu">Menu</a></li>
6+
</ul>
7+
</nav>
8+
</header>

components/html_head.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
2+
<meta charset="utf-8" />
3+
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
4+
<link rel="stylesheet" href="{{ 'assets/css/main.css' | relative_url }}" />
5+
<link rel="stylesheet" href="{{ 'assets/css/markdown-images.css' | relative_url }}" />

components/intro.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!-- Intro -->
2+
<section id="intro" class="wrapper featured style1">
3+
<div class="inner">
4+
<span class="image"><img src="{{ include_dict.section.img_path | relative_url }}" alt="" /></span>
5+
<div class="content">
6+
<header>
7+
<h1>{{ include_dict.section.title }}</h1>
8+
{{ include_dict.section.content | markdownify }}
9+
</header>
10+
{% if include_dict.section.actions %}
11+
<footer>
12+
<ul class="actions">
13+
{% for action in include_dict.section.actions %}
14+
<li><a href="{% if action.url | starts_with('#') %}{{ action.url }}{% else %}{{ action.url | link | relative_url }}{% endif %}" {{ classNames("button", "big", {"primary": action.is_primary}, {"scrolly": action.is_scrolly}) }}>{{ action.label }}</a></li>
15+
{% endfor %}
16+
</ul>
17+
</footer>
18+
{% endif %}
19+
</div>
20+
</div>
21+
</section>

components/menu.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!-- Menu -->
2+
<nav id="menu">
3+
<div class="inner">
4+
<h2>Menu</h2>
5+
<ul class="links">
6+
{% for item in site.menus.main %}
7+
<li><a href="{{ item.url | relative_url }}">{{ item.title }}</a></li>
8+
{% endfor %}
9+
</ul>
10+
{% if site.params.menu.actions %}
11+
<ul class="actions stacked">
12+
{% for action in site.params.menu.actions %}
13+
<li><a href="{% if action.url | starts_with('#') %}{{ action.url }}{% else %}{{ action.url | link | relative_url }}{% endif %}" {{ classNames("button", "fit", {"primary": action.is_primary}, {"scrolly": action.is_scrolly}) }}>{{ action.label }}</a></li>
14+
{% endfor %}
15+
</ul>
16+
{% endif %}
17+
</div>
18+
<a class="close" href="#menu">Close</a>
19+
</nav>

0 commit comments

Comments
 (0)