Skip to content

Commit f341dfc

Browse files
committed
style fix footer and container, build
add tailwind purging from future footer not fixed otherwise overlaps add container to create pages Signed-off-by: Lakshya Singh <[email protected]>
1 parent 6ec4385 commit f341dfc

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

components/footer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { motion } from "framer-motion";
33
export default function Footer() {
44
return (
55
<motion.footer
6-
className="text-sm md:text-base flex md:flex-row flex-col justify-around items-center bg- h-14 md:h-12 text-white fixed bottom-0 w-full border-white border-t-2"
6+
className="text-sm md:text-base flex md:flex-row flex-col justify-around items-center h-14 md:h-12 text-white border-white border-t-2 container mx-auto"
77
initial={{ opacity: 0 }}
88
animate={{ opacity: 1 }}
99
>

pages/create.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Footer from "components/footer";
44
import GitHubNav from "components/githubNav";
55
import Loader from "components/loader";
66
import { IBook } from "graphql/book";
7-
import Head from 'next/head';
7+
import Head from "next/head";
88
import { FormEvent, useState } from "react";
99

1010
export interface IBookLite extends Omit<IBook, "images"> {
@@ -53,7 +53,7 @@ export default function Create() {
5353
<title>Add Book</title>
5454
</Head>
5555
<GitHubNav />
56-
<div className="flex md:flex-row flex-col container mx-auto md:justify-around items-center px-auto">
56+
<div className="flex md:flex-row flex-col container mx-auto md:justify-around items-center container">
5757
<div className="md:order-2 lg:max-w-lg md:max-w-sm max-w-xs">
5858
<img
5959
src="/images/bookart.jpg"

postcss.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ module.exports = {
33
tailwindcss: {},
44
autoprefixer: {},
55
},
6-
}
6+
};

tailwind.config.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
const colors = require('tailwindcss/colors')
1+
const colors = require("tailwindcss/colors");
22

33
module.exports = {
44
purge: [
55
"./components/**/*.{js,ts,jsx,tsx}",
66
"./pages/**/*.{js,ts,jsx,tsx}",
77
"./hooks/**/*.{js,ts,jsx,tsx}",
88
],
9+
future: {
10+
purgeLayersByDefault: true,
11+
},
912
presets: [],
1013
darkMode: "class", // or 'media' or 'class'
1114
theme: {
@@ -33,7 +36,7 @@ module.exports = {
3336
amber: colors.amber,
3437
rose: colors.rose,
3538
blue: colors.blue,
36-
cyan: colors.cyan
39+
cyan: colors.cyan,
3740
},
3841
spacing: {
3942
px: "1px",

0 commit comments

Comments
 (0)