-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved to using tailwind and a dedicated css file rather than inline t…
…ailwind
- Loading branch information
Showing
8 changed files
with
151 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"plugins": { | ||
"tailwindcss": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* custom.css */ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@layer components { | ||
/* main { */ | ||
/* @apply mx-2; */ | ||
/* } */ | ||
.main-background { | ||
@apply bg-gray-200; | ||
} | ||
.header-body { | ||
@apply bg-white relative flex items-center shadow-md justify-center mt-2 rounded-lg; | ||
} | ||
.header-text { | ||
@apply text-3xl lg:text-3xl font-bold mb-2 text-center; | ||
} | ||
.button { | ||
@apply block py-2 px-10 text-white justify-center shadow-md rounded hover:shadow-lg; | ||
} | ||
.yelp-link { | ||
@apply button bg-green-300 my-2; | ||
} | ||
.join-button { | ||
@apply button bg-blue-100 my-2 text-black | ||
} | ||
.image-frame { | ||
@apply py-5 flex flex-col items-center justify-center; | ||
} | ||
.image { | ||
@apply is-cropped rounded overflow-hidden shadow-lg | ||
} | ||
.qr-main { | ||
@apply flex flex-col items-center justify-center; | ||
} | ||
.loading-main { | ||
@apply flex flex-col items-center justify-center ; | ||
} | ||
.footer-body { | ||
@apply bg-white py-2 shadow-lg px-2 rounded-lg mx-2; | ||
} | ||
.footer-content { | ||
@apply grid grid-rows-1 grid-cols-3 items-center rounded; | ||
} /* ... */ | ||
.footer-item { | ||
@apply flex justify-center | ||
} | ||
.centered { | ||
@apply py-5 flex flex-col items-center justify-center pt-3; | ||
} | ||
} | ||
.is-cropped { | ||
width: auto; | ||
height: 600px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,20 +3,15 @@ | |
<head> | ||
<meta charset="UTF-8" /> | ||
<title>Halogen Project</title> | ||
<style> | ||
.is-cropped { | ||
width: auto; | ||
height: 600px; | ||
} | ||
</style> | ||
<!-- <link --> | ||
<!-- rel="stylesheet" --> | ||
<!-- href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css" --> | ||
<!-- /> --> | ||
<link | ||
rel="stylesheet" | ||
href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" | ||
/> | ||
<!-- <link | ||
rel="stylesheet" | ||
href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" | ||
/> --> | ||
<link href="./app.css" rel="stylesheet" > | ||
</head> | ||
<body> | ||
<script src="./app.js"></script> | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
{ | ||
"scripts": { | ||
"build:css": "postcss ./assets/style.css -o ./assets/app.css" | ||
}, | ||
"devDependencies": { | ||
"parcel": "^2.9.3" | ||
"parcel": "^2.9.3", | ||
"postcss": "^8.4.27", | ||
"tailwindcss": "^3.3.3" | ||
}, | ||
"dependencies": { | ||
"big-integer": "^1.6.51" | ||
"big-integer": "^1.6.51", | ||
"postcss-cli": "^10.1.0", | ||
"postcss-import": "^15.1.0", | ||
"postcss-preset-env": "^9.1.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
plugins: { | ||
"tailwindcss": {} | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
// tailwind.config.js | ||
module.exports = { | ||
experimental: { | ||
applyComplexClasses: true, | ||
}, | ||
content: [ | ||
"./assets/**/*.{html,js,ts,jsx,tsx,css}", | ||
], | ||
theme: { | ||
extend: {}, | ||
}, | ||
plugins: [], | ||
} |