From 766f42f802dceeb6b89860f4d3d8531cfe049775 Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Thu, 3 Dec 2015 07:38:07 -0500 Subject: [PATCH] where I was last week --- controller/action/CreditActions.class.php | 2 - view/fund/currentGoal.php | 17 +++ view/fund/header.php | 27 +++++ view/layout/basic.php | 1 + view/nav/footer.php | 3 + view/page/fund-after.php | 21 ++++ view/page/fund.php | 110 +++++++++++--------- view/page/goals.php | 42 ++++++++ view/page/home.php | 57 +++++----- view/page/learn.php | 12 +-- web/js/global.js | 11 +- web/scss/_content.scss | 2 + web/scss/_cover.scss | 20 +++- web/scss/_sale.scss | 120 +++++++++++++++++----- 14 files changed, 327 insertions(+), 118 deletions(-) create mode 100644 view/fund/currentGoal.php create mode 100644 view/fund/header.php create mode 100644 view/page/fund-after.php create mode 100644 view/page/goals.php diff --git a/controller/action/CreditActions.class.php b/controller/action/CreditActions.class.php index 4fe2dc3b..94692977 100644 --- a/controller/action/CreditActions.class.php +++ b/controller/action/CreditActions.class.php @@ -12,8 +12,6 @@ class CreditActions extends Actions $fundStartTime = strtotime('2015-11-15'); $daysActive = floor((time() - $fundStartTime) / (60*60*24)); return ['page/fund', [ - 'totalUSD' => CreditApi::getTotalDollarSales(), - 'totalPeople' => CreditApi::getTotalPeople(), 'creditsPerDollar' => CreditApi::getCreditsPerDollar($daysActive), 'creditsPerDollarTomorrow' => CreditApi::getCreditsPerDollar($daysActive + 1), ]]; diff --git a/view/fund/currentGoal.php b/view/fund/currentGoal.php new file mode 100644 index 00000000..64aa7201 --- /dev/null +++ b/view/fund/currentGoal.php @@ -0,0 +1,17 @@ + + +
+

+ I18n::formatCurrency($goalAmount)]) ?> + See all goals. +

+
+
+
+
+
+
+ % + funded +
+
\ No newline at end of file diff --git a/view/fund/header.php b/view/fund/header.php new file mode 100644 index 00000000..96e269cc --- /dev/null +++ b/view/fund/header.php @@ -0,0 +1,27 @@ + + +
+
+

Fund LBRY

+
+
+
+

+ + people gave + + to + + ', [ + __('build a better future'), + __('eliminate corporate middlemen'), + __('keep art alive'), + __('create a more sustainable internet'), + __('protect freedom of speech'), + __('reduce the cost of education'), + ]) ?> + +

+
+
+
\ No newline at end of file diff --git a/view/layout/basic.php b/view/layout/basic.php index cd4f8f2e..1ea50f0c 100644 --- a/view/layout/basic.php +++ b/view/layout/basic.php @@ -23,6 +23,7 @@ + diff --git a/view/nav/footer.php b/view/nav/footer.php index 9405ef50..c7cfd750 100644 --- a/view/nav/footer.php +++ b/view/nav/footer.php @@ -3,6 +3,9 @@