JSFiddle - React, Tailwind, and code Playground

by avryx

HTML

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>GitGames</title>
        <link rel="stylesheet" href="assets/css/styles.css" type="text/css">
        <link href="https://fonts.googleapis.com/css?family=Exo&display=swap" rel="stylesheet">
    </head>
    <body>
        <div class="grid-container">        
            <div class="article news item">
                <div class="grid-66 bodyText">
                    <a class="linkTitle" href="articlePage1.html">
                        <h3 class="titleArt" onclick="">Title would go here and possibly allow for two lines for the article to be taken space</h3>
                    </a>
                    <small class="dateSmall"><i>November 5th, 2019</i></small>
                    <p class="articleText">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
                    <a class="commentsLink" href="articlePage1.html#siteMap"> <!-- # after URL links to specific section from ID made from other html page -->
                        <small class="commentsText">Comments</small>
                    </a>
                </div> <!--/bodytext-->
            </div> <!--/article-->
        </div> <!--/grid container -->
    </body>
</html>

CSS

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

@media screen and (max-width:767px) {
    
    .grid-container {
        padding-top: 15%;
    }
    
    .article {
        padding: 5% 10%;
        height: 1000px;
    }
    

}

.grid-container {
    margin-top: 4%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    padding-left: 10px;
    padding-right: 10px;
    
}

.article {
    background-color: #404040;
    height: 470px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    margin-top: 2%;
    margin-bottom: 2%;
    
}

.bodyText {
    /* border: 1px solid orange; */
    height: inherit;
    padding-top: 2%;
    padding-bottom: 0%;

}

.articleText {
    display: inline;
}

.titleArt {
    margin: 0 0 1% 0;
}

.dateSmall {
    display: block;
    margin: 0 0 2% 0;
}

.linkTitle {
    text-decoration: none;
    color: lawngreen;
}

.linkTitle:hover {
    text-decoration: underline;
}

.commentsLink {
    text-decoration: none;
    display: block;
    clear: left;
    color: white;
}

.commentsText {
    float: right;
    padding: 3%;
}

.commentsText:hover {
    text-decoration: underline;
}