From eeaa837c29c174fe7e07573a23d965d2aa8ffb5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Mon, 16 Jul 2018 23:00:45 +0200 Subject: [PATCH] added some icons, small cleaning, create table page stub, table controller --- app/Http/Controllers/HomeController.php | 4 +- app/Http/Controllers/TableController.php | 18 ++++ app/Models/Concerns/Reportable.php | 2 +- app/Models/User.php | 10 +++ public/fonts/fa-dtbl-1.css | 47 ++++++++++ public/fonts/fa-dtbl-1.eot | Bin 0 -> 3772 bytes public/fonts/fa-dtbl-1.svg | 55 ++++++++++++ public/fonts/fa-dtbl-1.ttf | Bin 0 -> 3592 bytes public/fonts/fa-dtbl-1.woff2 | Bin 0 -> 1772 bytes resources/assets/sass/_variables.scss | 9 +- resources/assets/sass/app.scss | 17 +++- resources/views/about/privacy.blade.php | 27 ++++++ resources/views/{ => about}/terms.blade.php | 0 resources/views/auth/login.blade.php | 19 ++-- resources/views/auth/register.blade.php | 7 +- resources/views/home.blade.php | 59 ++++++++---- resources/views/layouts/app.blade.php | 94 ++++---------------- resources/views/layouts/footer.blade.php | 13 +++ resources/views/layouts/main-nav.blade.php | 57 ++++++++++++ resources/views/privacy.blade.php | 37 -------- resources/views/table/create.blade.php | 12 +++ routes/login.php | 67 ++++++++++++++ routes/web.php | 69 +------------- 23 files changed, 410 insertions(+), 213 deletions(-) create mode 100644 app/Http/Controllers/TableController.php create mode 100644 public/fonts/fa-dtbl-1.css create mode 100644 public/fonts/fa-dtbl-1.eot create mode 100644 public/fonts/fa-dtbl-1.svg create mode 100644 public/fonts/fa-dtbl-1.ttf create mode 100644 public/fonts/fa-dtbl-1.woff2 create mode 100644 resources/views/about/privacy.blade.php rename resources/views/{ => about}/terms.blade.php (100%) create mode 100644 resources/views/layouts/footer.blade.php create mode 100644 resources/views/layouts/main-nav.blade.php delete mode 100644 resources/views/privacy.blade.php create mode 100644 resources/views/table/create.blade.php create mode 100644 routes/login.php diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index a3af7dd..b8df8bc 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -23,6 +23,8 @@ class HomeController extends Controller */ public function index() { - return view('home'); + $tables = \Auth::user()->tables()->paginate(10); + + return view('home')->with(compact('tables')); } } diff --git a/app/Http/Controllers/TableController.php b/app/Http/Controllers/TableController.php new file mode 100644 index 0000000..576478c --- /dev/null +++ b/app/Http/Controllers/TableController.php @@ -0,0 +1,18 @@ +reportsOf()->delete(); diff --git a/app/Models/User.php b/app/Models/User.php index b23188a..1ade1b6 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -7,6 +7,7 @@ use App\Models\Concerns\Reportable; use Illuminate\Database\Eloquent\Collection; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; +use Illuminate\Notifications\Notification; /** * A user in the application @@ -126,4 +127,13 @@ class User extends Authenticatable { $this->followedDiscussions()->detach($table); } + + public function fakeTables() + { + return [ + (object)['title' => 'Table 1'], + (object)['title' => 'Table 2'], + (object)['title' => 'Table 3'] + ]; + } } diff --git a/public/fonts/fa-dtbl-1.css b/public/fonts/fa-dtbl-1.css new file mode 100644 index 0000000..fe8f918 --- /dev/null +++ b/public/fonts/fa-dtbl-1.css @@ -0,0 +1,47 @@ +/*! + * Based on Fork Awesome 1.1.0, originaly by Dave Gandy - http://forkawesome.github.io/Fork-Awesome/ + * License - http://forkawesome.github.io/Fork-Awesome//license (Font: SIL OFL 1.1, CSS: MIT License) + */ +@font-face { + font-family: 'fa-dtbl-1'; + src: url('./fa-dtbl-1.eot?v=1.1.0'); + src: url('./fa-dtbl-1.eot?#iefix&v=1.1.0') format('embedded-opentype'), + url('./fa-dtbl-1.woff2?v=1.1.0') format('woff2'), + url('./fa-dtbl-1.ttf?v=1.1.0') format('truetype'), + url('./fa-dtbl-1.svg?v=1.1.0#fa-dtbl-1') format('svg'); + font-weight: normal; + font-style: normal; +} + +@media screen and (-webkit-min-device-pixel-ratio:0) { + @font-face { + font-family: "fa-dtbl-1"; + src: url("./fa-dtbl-1.svg#fa-dtbl-1") format("svg"); + } +} + +[data-icon]::before { content: attr(data-icon); } + +[data-icon]::before, [class^="fa-"]::before, [class*=" fa-"]::before { + display: inline-block; + font-family: "fa-dtbl-1"; + font-style: normal; + font-weight: normal; + font-variant: normal; + line-height: 1; + text-decoration: inherit; + font-size: inherit; + text-rendering: optimizeLegibility; + text-transform: none; + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-smoothing: antialiased; +} + +.fa-facebook-square::before { content: "\f100"; } +.fa-github::before { content: "\f101"; } +.fa-google::before { content: "\f102"; } +.fa-sign-in::before { content: "\f103"; } +.fa-sign-out::before { content: "\f104"; } +.fa-user-circle-o::before { content: "\f105"; } +.fa-user-plus::before { content: "\f106"; } diff --git a/public/fonts/fa-dtbl-1.eot b/public/fonts/fa-dtbl-1.eot new file mode 100644 index 0000000000000000000000000000000000000000..1aedfbad9f4e1df318d4f345685fe527a444896e GIT binary patch literal 3772 zcmds4YfM|$9si&E@&gP8{6Lh@;}8riu>oUD0)!I6NZXMSEw5Ec2?h*!0ZeQYmrPpS zq^i0{Xq&BzHl=FTY?J6?RidnWs2`$z*wRU*%A~4W6DdKZ=X)2(nlLkZh-y~ z@Siq(19#QgIsd-mj(<~u1!SU+l5e^1_A6v1O`ukD*&v=kftx?G3OX2uBm*`-1qP*n zzAKn`#DX(})`hT(M^S&rUL+O350rlbznSahz4Qe8;Pbfw9=nqcK(>v3b%e6SZ)iCi zG(&9e1GacLG3omvPLQ(`pYy`rTvHcKm=g(abLNRPFvt*os4y;xAqhe1UiVZz^BlIPh5(@gifwEsWI$ah+2zC$d`rrCnDPWp~?9TCBr zNN(kIMAt&W(~KHA&R7)sG;~^1FLj)eC4h8V7GzbB&sa2eyW7Gn)Jeb9vk@t=3O1;nFhntr4%sd#C>bTI&~FSGCp> zZU&@*Ej6&$Sad}7u@z6E>;=)e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vCuIT6#^5Z_>E!=6y>#sgRQ|vJ~YdFq6cGqOLS^vHpsUok})2i8cp!TRNfxQN^_w* z1?56$G-r2kES?^p84AYX(*y1+qtU=fdT1hmtIIw2m^?ARZlV|2A)+5LSE~*1{USMH zEpjh{3sEat$hhv{P9Xe3M8{%01eeyBy0vYJu!pp7o_7 + + + + +Created by FontForge 20170805 at Mon Jul 16 22:14:13 2018 + By ondra +The Fork Awesome font is licensed under the SIL OFL 1.1 (http://scripts.sil.org/OFL). Fork Awesome is a fork based of off Font Awesome 4.7.0 by Dave Gandy. More info on licenses at https://forkawesome.github.io + + + + + + + + + + + + + + + diff --git a/public/fonts/fa-dtbl-1.ttf b/public/fonts/fa-dtbl-1.ttf new file mode 100644 index 0000000000000000000000000000000000000000..cf3fd691c866352df20ab3384b419208f4902e0b GIT binary patch literal 3592 zcmds4`%hcf9si#D@&gP8{6Lh@V;+Vqu>oUD0wg7bk+vfvT0*iaDZzjNF9s9a#3hqf zH>s-b5xQpUqD`rqHQOZmSd}R29@-CRKWyowQe{%rt%;PNWmA4=Gy21%DhZc;&h;fr zny!Dq?)ACf@Aq@g`M%EgoO?}-h#Zt7nRfN|?%Db5i~BbM_y}la|L(@n(Bh$oiP+a6 z4~PpyWCr_gloRbU_m^li)%mzc>6tc!vMqNu-R-zOD*eNXu( zkXv~wAD}1Ldt!o$Jee1Bu5qBd#=bmCIpUvac^@=GZT?{nR#u&&v{6 zIwuQQ74UhB#_n{UM>;U<@>4)&oQWuy9O<+a;;I}}m*Nc(C|BQ;005JDbz ziA&qSN?O`#TEmf+wpM>lwYHAcxS^uj-&z7pxt5)u&;I^TRsU%0Ir>QY`Lh=Z0(@~G)jjkO-Jb%J&!)F zl)7DH(flym8m`}};1Q|!YsJi8Z3#*i&8xXxRkByJ6tQZ5eULS>YORVr%#0>K!dxD= zORM)&Yq+!wv@PQGc<<8Bi1mKa>#EUO!!6)6bW4rwRTf>;FW-2mf`vElk8WGvUl*wS zM!o;ZKR)SfO;rZ!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)6Sfc9H=n3R}xmqJ2JGiJ_o zaanoP!(-t^Sq=>qWC&|Ql;=deGkAvUEVtP%GozKM@iW#|H)|d_v+UDvh z9_Dq;%;EhzGJ>R~tFI&Cy!rEI?;7SCgcX&5Yq4sU&Zef^Q@<)*> zkLt}T8N!-{R8G~J)=>saCF1%X40#3X$GlS4glZ-KSSYhCrH3N@aZ-1cSX`dI*W~99+8jQ;?`%YN4c-s0iFV8e|cJ%fL_$DlC zeeq)JtAB!~yr{Kewj+&c*=@4MHg#*AoL47olwn|3m z4+lK-stq)RiMe&Pp#NE8+i42Qe--3Kbc$V_nBelW#X+O7$?93NPTnuIDL}(^AuuwI zvsb*R6*T3~)r+m!hGOd286iQ_X6&h&Ycd+hcO&v?w?-bkq}Pjx?N=p|(?`voNxieqsYXFD`>h;Jp{3R-s#^<--R{<*uDIl`y$- zQV*ua`;V52ZkE}qMA|#!!tVux!x%j{?F9r?^n%}PwfvHgqegb~Fdx_4&w2Q86_P&- z1~qeAx7G#dj->vo-{wJXQe|Zl-WSGq>@s-j#KFm&(Yc>ryX2O|1;)^9r?@&cPmSpf-s_uSm-BnwF2-rJvR5HnG=sKnZg8+c>M$3W5%Fzz* zTFR~{0U=rP>E07edv&AqW`uDdL3zA$JJXsKODUjGN=H(q#RyP_XG&s`Lj+R?P8fhS z&azAf$c&7ukS?k4Qc|)&*1D9QKW`O+3A8V zs#OPeqyeLhc!G$;I*`hPGOE#Y;3g|0*dHB9k^XrNt(@NN4z}9o{S&<2qzWd6flRIW zm9c465Z@gul9@vyO6jE<;2Nr4-3u?eGW%4D7qliV5$8V(2?V?SDIxT!B>KzsHIUX+ zUmQ)Yw6>H6; z&xC+x9Oa163jRg%f_d^#B<;WumT*Kx)OO;jKw0000{@I5*J literal 0 HcmV?d00001 diff --git a/resources/assets/sass/_variables.scss b/resources/assets/sass/_variables.scss index 845f780..45bc727 100644 --- a/resources/assets/sass/_variables.scss +++ b/resources/assets/sass/_variables.scss @@ -1,6 +1,6 @@ // Body -$body-bg: #f5f8fa; +$body-bg: white;//$gray-300; // Typography $font-family-sans-serif: "IBM Plex Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif; @@ -12,3 +12,10 @@ $link-decoration: none; $link-hover-color: darken($link-color, 15%); $link-hover-decoration: underline; +$card-cap-bg: lighten($primary, 5); +$card-border-color: $primary; +//$card-border-width: 2px; +$card-border-radius: 5px; +$card-inner-border-radius: 2px; + +$list-group-hover-bg: rgba($primary, .1); diff --git a/resources/assets/sass/app.scss b/resources/assets/sass/app.scss index 4580278..82008a1 100644 --- a/resources/assets/sass/app.scss +++ b/resources/assets/sass/app.scss @@ -1,6 +1,6 @@ // Fonts -@import url("https://fonts.googleapis.com/css?family=Raleway:300,400,600"); +//@import url("https://fonts.googleapis.com/css?family=Raleway:300,400,600"); // Variables @import "bst-base"; @@ -9,11 +9,22 @@ .page-navbar { background: white; - border-bottom: 1px solid $gray-400; + border-bottom: 1px solid $primary; + + box-shadow: 0 -3px 8px rgba(black, 1); } .page-footer { font-size: 95%; background: $body-bg; - border-top: 2px solid white; + border-top: 2px dotted $gray-200; +} + +.card-header { + color: white; + font-weight: bold; +} + +.card { + box-shadow: 0 2px 3px rgba(black, .3); } diff --git a/resources/views/about/privacy.blade.php b/resources/views/about/privacy.blade.php new file mode 100644 index 0000000..74da31f --- /dev/null +++ b/resources/views/about/privacy.blade.php @@ -0,0 +1,27 @@ +@extends('layouts.app') + +@section('content') +
+
+
+
+
Privacy Statement
+ +
+

+ datatable.directory does not collect anything beyond what users + themselves enter in the application, plus limited data from OAuth providers + when a social login is used. User IP addresses and other data, such as the + user agent, are briefly stored in the web server log as a byproduct of the + server operation, and serve debugging purposes only. +

+ +

+ We do not share private data with any third parties. +

+
+
+
+
+
+@endsection diff --git a/resources/views/terms.blade.php b/resources/views/about/terms.blade.php similarity index 100% rename from resources/views/terms.blade.php rename to resources/views/about/terms.blade.php diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index 5642e51..6f62a57 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -53,10 +53,14 @@ @@ -65,29 +69,26 @@