-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve styling. Add about & how it works content
- Loading branch information
Showing
10 changed files
with
66 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
(ns ethlance.ui.page.about | ||
(:require | ||
[district.ui.component.page :refer [page]] | ||
[ethlance.ui.component.main-layout :refer [c-main-layout]])) | ||
[ethlance.ui.component.main-layout :refer [c-main-layout]] | ||
[ethlance.ui.util.content-helpers :refer [page-with-title]])) | ||
|
||
|
||
(def description | ||
"The district0x network is a collective of decentralized marketplaces and communities known as ‘Districts’. Districts exist on top of a modular framework of Ethereum smart contracts and frontend libraries referred to as d0xINFRA. | ||
The district0x network solves a number of coordination issues and inefficiencies commonly found within distributed community marketplaces. This is accomplished by providing tools that can better align incentives and decision making among the market participants themselves. The end goal is to create a self sustaining ecosystem that can flourish without the need for a central authority.") | ||
|
||
(defmethod page :route.misc/about [] | ||
(fn [] | ||
[c-main-layout {:container-opts {:class :about-main-container}} | ||
"About"])) | ||
(page-with-title "About" description)])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
(ns ethlance.ui.page.how-it-works | ||
(:require | ||
[district.ui.component.page :refer [page]] | ||
[ethlance.ui.component.main-layout :refer [c-main-layout]])) | ||
[ethlance.ui.component.main-layout :refer [c-main-layout]] | ||
[ethlance.ui.util.content-helpers :refer [page-with-title]])) | ||
|
||
|
||
(def description | ||
(str | ||
"The free market is an economic system where the prices of goods and services are determined by unrestricted competition between privately owned businesses. In this system, supply and demand dictate production decisions and pricing, allowing consumers and producers to engage freely without significant government intervention. Businesses respond to consumer preferences, leading to an efficient allocation of resources as they strive to meet market needs. | ||
Competition is a cornerstone of the free market, driving innovation and quality improvement. Companies compete to offer better products and services at lower prices to attract consumers. This competitive environment encourages efficiency and technological advancements, which can lead to overall economic growth and increased standards of living. Entrepreneurs have the freedom to enter markets, fostering diversity and choice for consumers. | ||
However, for a free market to function effectively, certain legal frameworks must be in place, such as property rights and contract enforcement. While the free market promotes efficiency and innovation, it can also result in challenges like income inequality and market failures if left entirely unchecked. Therefore, some level of regulation is often considered necessary to address issues like monopolies, externalities, and to protect consumers and workers, balancing freedom with societal welfare.")) | ||
|
||
|
||
(defmethod page :route.misc/how-it-works [] | ||
(fn [] | ||
[c-main-layout {:container-opts {:class :how-it-works-main-container}} | ||
"How It Works"])) | ||
(page-with-title "How It Works" description)])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
(ns ethlance.ui.util.content-helpers | ||
(:require | ||
[clojure.string])) | ||
|
||
(defn str->paragraphs [s] | ||
(clojure.string/split-lines s)) | ||
|
||
(defn page-with-title [title content-str] | ||
[:div | ||
[:h2 {:class :title} title] | ||
(into [:div {:class :description :style {:white-space "pre-wrap"}}] | ||
(->> content-str | ||
str->paragraphs | ||
(map clojure.string/trim ,,,) | ||
(map #(conj [:p] %) ,,,)))]) |