Skip to content

Commit

Permalink
Merge pull request #80 from tof-tof/adding-button-lift-on-hover
Browse files Browse the repository at this point in the history
button lift and text shadow
  • Loading branch information
pydanny committed Aug 21, 2021
2 parents 4113c93 + 31201b3 commit 8d9ece2
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 6 deletions.
7 changes: 4 additions & 3 deletions components/HygieneKitsCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ function HygieneKitsCard() {
{'96 Hygiene Kits for $153'}
</a>
</p>
<br />
<h3>{'Ship the kits to:'}</h3>
<p>{'1543 E Palmdale Blvd, Ste E, Palmdale, CA 93550'}</p>
<p className="shaded-text mt-3">
<h3>{'Ship the kits to:'}</h3>
<p>{'1543 E Palmdale Blvd, Ste E, Palmdale, CA 93550'}</p>
</p>
</div>
</div>
);
Expand Down
3 changes: 1 addition & 2 deletions components/LaptopForFamiliesCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ function LaptopForFamiliesCard() {
"Mail us your used or new laptop. We'll set up the donated laptops in our public computer room for the families to use for free. Some of the donated laptops will go to the families who don't have home computers, or who don't have enough computers for all their children to use."
}
</p>
<p>
<br />
<p className="shaded-text">
<h3>{'Ship the laptops to:'}</h3>
<p>{'1543 E Palmdale Blvd, Ste E, Palmdale, CA 93550'}</p>
</p>
Expand Down
3 changes: 2 additions & 1 deletion pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'tailwindcss/tailwind.css';
// import 'tailwindcss/tailwind.css';
import '../styles/global.css';
import PropTypes from 'prop-types';
import React from 'react';

Expand Down
14 changes: 14 additions & 0 deletions styles/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer components {
.btn {
@apply tracking-wider shadow-2xl transform transition hover:-translate-y-0.5;
}

.shaded-text{
@apply bg-black bg-opacity-10 py-2 rounded-lg;
}

}
1 change: 1 addition & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
'./styles/**/*.{scss,css}',
],
options: {
safelist: [/data-theme$/],
Expand Down

0 comments on commit 8d9ece2

Please sign in to comment.