@extends('layouts.app')

@section('page-title', 'Submit - ' . config('app.name'))

@section('content')

{{ \Diglactic\Breadcrumbs\Breadcrumbs::render() }}
<div class="page-title">Submit content</div>

<div class="submit-body">

    <div class="submit-section-label">Entries</div>

    <div class="submit-grid">

        @foreach($entryTypes as $type)
            <a href="{{ route('submit.create', ['section' => $type['slug']]) }}"
               class="submit-card"
               style="--card-color: {{ $type['color'] }}; --card-bg: {{ $type['bg'] }}; --card-border: {{ $type['border'] }}">
                <div class="submit-card-top">
                    <div class="submit-card-icon">
                        <i data-lucide="{{ $type['icon'] }}" size="17"></i>
                    </div>
                    <div class="submit-card-info">
                        <div class="submit-card-title">{{ $type['label'] }}</div>
                    </div>
                </div>
                <div class="submit-card-bottom">
                    <span class="submit-card-cta">
                        Submit <i data-lucide="arrow-right" size="11"></i>
                    </span>
                </div>
            </a>
        @endforeach

    </div>

    <div class="submit-section-label">News</div>

    <div class="submit-news-row" style="display:flex;align-items: center;justify-content: center">
        <a href="{{ route('news.create') }}" class="submit-news-card">
            <div class="submit-news-icon">
                <i data-lucide="newspaper" size="17"></i>
            </div>
            <div class="submit-news-info">
                <div class="submit-news-title">News article</div>
            </div>
            <span class="submit-news-cta">
                Submit <i data-lucide="arrow-right" size="11"></i>
            </span>
        </a>
    </div>

    <div class="submit-section-label">Rules</div>

    <div class="submit-rules">
        <div class="submit-rule">
            <span class="submit-rule-num">1</span>
            <p><strong>ROM files are not allowed</strong> Only patches (does not apply to homebrews).</p>
        </div>
        <div class="submit-rule">
            <span class="submit-rule-num">2</span>
            <p>Always search before adding something, it might already be on the site.</p>
        </div>
        <div class="submit-rule">
            <span class="submit-rule-num">3</span>
            <p>When typing game titles make sure to use "Title Case", when unsure copy GameFAQs title.</p>
        </div>
        <div class="submit-rule">
            <span class="submit-rule-num">4</span>
            <p>Descriptions must be in English. For non-English hacks you can have both versions: one in the hack language and one in English</p>
        </div>
        <div class="submit-rule">
            <span class="submit-rule-num">5</span>
            <p>Try to put screenshots that showcase the work, if the work is not graphical use original screenshots. Mobygames is a great source for them.</p>
        </div>
        <div class="submit-rule">
            <span class="submit-rule-num">...</span>
            <p>All rules and guidelines are available <a href="{{ xfRoute('misc/terms') }}">here</a>.</p>
        </div>
    </div>

</div>

@endsection
