<template>
    <Card class="bezeless dark">
        <div v-if="title" class="header">
            <i :class="icon"></i>
            <h5>{{ title }}</h5>
        </div>

        <div class="content">
            <slot></slot>
        </div>
    </Card>
</template>

<script>
import Card from './Card';

export default {
    name: 'DashboardCard',
    components: { Card },
    props: {
        title: {
            type: String,
            default: '',
        },
        icon: {
            type: String,
            default: '',
        },
    },
};
</script>

<style lang="scss" scoped>
@import 'utils.scss';

.header {
    background-color: lighten($bg-color-2, 4%);
    padding: $xs-space $grid-gutter-part;
    font-size: 0;

    i,
    h5 {
        @extend %align-middle;
    }

    i {
        padding-right: $xs-space;

        &:before {
            font-size: $p-font-size;
        }
    }

    h5 {
        text-transform: uppercase;
    }
}
</style>

<template>
    <Card class="bezeless dark">
        <div v-if="title" class="header">
            <i :class="icon"></i>
            <h5>{{ title }}</h5>
        </div>

        <div class="content">
            <slot></slot>
        </div>
    </Card>
</template>

<script>
import Card from './Card';

export default {
    name: 'DashboardCard',
    components: { Card },
    props: {
        title: {
            type: String,
            default: '',
        },
        icon: {
            type: String,
            default: '',
        },
    },
};
</script>

<style lang="scss" scoped>
@import 'utils.scss';

.header {
    background-color: lighten($bg-color-2, 4%);
    padding: $xs-space $grid-gutter-part;
    font-size: 0;

    i,
    h5 {
        @extend %align-middle;
    }

    i {
        padding-right: $xs-space;

        &:before {
            font-size: $p-font-size;
        }
    }

    h5 {
        text-transform: uppercase;
    }
}

.content {
    max-height: 300px;
    overflow-y: auto;
}
</style>

Add overflow scroll on upcoming games
Add overflow scroll on upcoming games
