Work so far in refactoring front-end
- Mainly getting rid of existing css/js - No longer linking to stuff like a11y.css - Creating a FrontPageController to better deal with the home page
This commit is contained in:
parent
30f9b0f557
commit
5ef23376be
135 changed files with 7461 additions and 100 deletions
3
resources/sass/app.scss
vendored
Normal file
3
resources/sass/app.scss
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
body {
|
||||
font-family: "Comic Sans MS", cursive;
|
||||
}
|
30
resources/views/front-page.blade.php
Normal file
30
resources/views/front-page.blade.php
Normal file
|
@ -0,0 +1,30 @@
|
|||
@extends('master')
|
||||
|
||||
@section('title')Front Page « @stop
|
||||
|
||||
@section('content')
|
||||
<div class="h-feed">
|
||||
<!-- the following span stops microformat parses going haywire
|
||||
generating a name property for the h-feed -->
|
||||
<span class="p-name"></span>
|
||||
|
||||
@foreach ($items as $item)
|
||||
@switch($item)
|
||||
@case($item instanceof \App\Models\Note)
|
||||
<p>This is a note</p>
|
||||
@break
|
||||
@case($item instanceof \App\Models\Article)
|
||||
<p>This is an article</p>
|
||||
@break
|
||||
@case($item instanceof \App\Models\Like)
|
||||
<p>This is a like</p>
|
||||
@break
|
||||
@case($item instanceof \App\Models\Bookmark)
|
||||
<p>This is a bookmark</p>
|
||||
@break
|
||||
@endswitch
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
@include('templates.bio')
|
||||
@stop
|
|
@ -5,8 +5,8 @@
|
|||
<title>@if (App::environment() == 'local'){!! "[testing] -"!!}@endif @yield('title'){{ config('app.display_name') }}</title>
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="stylesheet" href="/assets/frontend/normalize.css">
|
||||
<link rel="stylesheet" id="colourScheme" href="/assets/css/colours/{{ session('css', 'base16-eighties.css') }}">
|
||||
<link rel="stylesheet" href="/assets/css/app.css">
|
||||
<link rel="stylesheet" href="/assets/app.css">
|
||||
<link rel="stylesheet" href="/assets/highlight/zenburn.css">
|
||||
<link rel="stylesheet" href="https://use.typekit.net/csl8adl.css">
|
||||
<link rel="alternate" type="application/rss+xml" title="Blog RSS Feed" href="/blog/feed.rss">
|
||||
<link rel="alternate" type="application/atom+xml" title="Blog Atom Feed" href="/blog/feed.atom">
|
||||
|
@ -45,38 +45,34 @@
|
|||
@show
|
||||
</main>
|
||||
|
||||
<!--scripts go here when needed-->
|
||||
<script src="/assets/js/colours.js" async defer></script>
|
||||
<script src="/assets/js/a11y.js" async defer></script>
|
||||
@section('scripts')
|
||||
@show
|
||||
|
||||
<footer>
|
||||
<form action="search" method="get">
|
||||
<input type="text" name="terms" title="Search"><button type="submit">Search</button>
|
||||
</form>
|
||||
@include('templates.colour-scheme')
|
||||
<p>The code for <code>{{ config('app.longurl') }}</code> can be found on <a href="https://github.com/jonnybarnes/jonnybarnes.uk">GitHub</a>.</p>
|
||||
<p><label for="a11y.css"><code>a11y.css</code></label>: <input type="checkbox" name="a11y.css" id="a11y.css"></p>
|
||||
<p>Built with love: <a href="/colophon">Colophon</a></p>
|
||||
<p><a href="https://indieweb.org"><img src="/assets/img/iwc.svg" alt="Indie Web Camp logo"></a></p>
|
||||
</footer>
|
||||
|
||||
<!--scripts go here when needed-->
|
||||
@section('scripts')
|
||||
@show
|
||||
@if(config('fathom.id'))
|
||||
<!-- Fathom - simple website analytics - https://github.com/usefathom/fathom -->
|
||||
<script>
|
||||
(function(f, a, t, h, o, m){
|
||||
a[h]=a[h]||function(){
|
||||
(a[h].q=a[h].q||[]).push(arguments)
|
||||
};
|
||||
o=f.createElement('script'),
|
||||
m=f.getElementsByTagName('script')[0];
|
||||
o.async=1; o.src=t; o.id='fathom-script';
|
||||
m.parentNode.insertBefore(o,m)
|
||||
})(document, window, '//fathom.jonnybarnes.uk/tracker.js', 'fathom');
|
||||
fathom('set', 'siteId', '{{ config('fathom.id') }}');
|
||||
fathom('trackPageview');
|
||||
</script>
|
||||
<!-- / Fathom -->
|
||||
<!-- Fathom - simple website analytics - https://github.com/usefathom/fathom -->
|
||||
<script>
|
||||
(function(f, a, t, h, o, m){
|
||||
a[h]=a[h]||function(){
|
||||
(a[h].q=a[h].q||[]).push(arguments)
|
||||
};
|
||||
o=f.createElement('script'),
|
||||
m=f.getElementsByTagName('script')[0];
|
||||
o.async=1; o.src=t; o.id='fathom-script';
|
||||
m.parentNode.insertBefore(o,m)
|
||||
})(document, window, '//fathom.jonnybarnes.uk/tracker.js', 'fathom');
|
||||
fathom('set', 'siteId', '{{ config('fathom.id') }}');
|
||||
fathom('trackPageview');
|
||||
</script>
|
||||
<!-- / Fathom -->
|
||||
@endif
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -16,10 +16,6 @@
|
|||
{!! $notes->render() !!}
|
||||
@stop
|
||||
|
||||
@if (Request::path() == '/')@include('templates.bio')@endif
|
||||
|
||||
@section('scripts')
|
||||
<link rel="stylesheet" href="/assets/highlight/zenburn.css">
|
||||
<script defer src="/assets/js/links.js"></script>
|
||||
@include('templates.mapbox-links')
|
||||
@stop
|
||||
|
|
|
@ -10,4 +10,3 @@
|
|||
crossorigin="anonymous"
|
||||
defer
|
||||
></script>
|
||||
<script defer src="/assets/js/maps.js"></script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue