@page "/"

@using Website.Data

<div class="page">
    <div class="title">
        <div><b>Jonathan McCaffrey</b></div>
        @foreach (var part in Overview.Get().Parts.OrderBy(a => a.Order))
        {
            @if (part.IsVisible)
            {
                <div>@part.Description</div>
            }
        }
    </div>

    <div class="side">
        @foreach (var info in PersonalInfo.Get().Info)
        {
            @if (info.IsVisible)
            {
                <div><i>@info.Name</i></div>
                <div>@info.Value</div>
                <br />
            }
        }
        <br />
        <i>Skills:</i>
        @foreach (var skill in Skills.Get().Skills)
        {
            @if (skill.IsVisible)
            {
                <div>@skill.Name</div>
            }
        }
    </div>

    <div class="experience">
        @foreach (var experience in WorkExperience.Get().Experiences)
        {
            <div><b>@experience.Role</b></div>
            <div>@experience.Location</div>
            <div>@experience.DateRange</div>
            <ul>
                @foreach (var point in experience.Points)
                {
                    @if (point.IsVisible)
                    {
                        <li>@point.Description</li>
                    }
                }
            </ul>
        }
    </div>
</div>
