Introduction
Tailnews is Tailwind css news template with simple design and fast loading. This template is perfect for make awesome newspapper and magazine site.
Quick start
Looking to quickly add Tailnews to your project? Use css, js and starter page from this package.
CSS
Copy the Tailwind stylesheets <link>
and paste to your <head>
.
<!-- Styles -->
<link rel="stylesheet" href="src/css/style.css">
JS
Copy-paste the Plugins and Theme js <script>
place the following near the end of your pages, right before the closing </body>
tag.
<!-- plugins js -->
<script src="src/vendors/hc-sticky/dist/hc-sticky.js"></script>
<script src="src/vendors/glightbox/dist/js/glightbox.min.js"></script>
<script src="src/vendors/splidejs/dist/js/splide.min.js"></script>
<script src="src/vendors/splide-video/dist/js/splide-extension-video.min.js"></script>
<!-- theme js -->
<script src="src/js/theme.js"></script>
Development starter template
Be sure to have your pages set up with the latest design and development standards. That means using an HTML5 doctype and including a viewport meta tag for proper responsive behaviors. Put it all together and your pages should look like this:
<!doctype html>
<html lang="en">
<head>
<!-- Title -->
<title>Hello, world!</title>
<!-- Required meta tags -->
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Favicon -->
<link rel="icon" href="src/img/favicon.png">
<!--Google Fonts-->
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;600;700&display=swap" rel="stylesheet">
<!--Styles-->
<link rel="stylesheet" href="src/css/style.css">
</head>
<body class="text-gray-700 pt-9 sm:pt-10">
<h1>Hello, world!</h1>
<!-- =========={ JAVASCRIPT }========== -->
<!-- plugins js -->
<script src="src/vendors/hc-sticky/dist/hc-sticky.js"></script>
<script src="src/vendors/glightbox/dist/js/glightbox.min.js"></script>
<script src="src/vendors/splidejs/dist/js/splide.min.js"></script>
<script src="src/vendors/splide-video/dist/js/splide-extension-video.min.js"></script>
<!-- theme js -->
<script src="src/js/theme.js"></script>
</body>
</html>