cfahlgren1 HF staff commited on
Commit
c773750
1 Parent(s): f3219d4

more mobile friendly

Browse files
components/Footer.tsx CHANGED
@@ -4,14 +4,14 @@ import { categories } from '../lib/categories';
4
 
5
  const Footer: React.FC = () => {
6
  return (
7
- <footer className="bg-emerald-400/80 p-20 relative overflow-hidden rounded-xl">
8
  <div className="max-w-7xl mx-auto relative z-10">
9
- <div className="flex flex-wrap justify-between items-center gap-y-4 mb-12">
10
  {categories.map((category) => (
11
  <Link
12
  key={category.slug}
13
  href={`/category/${category.slug}`}
14
- className="text-lg font-bold text-emerald-800 hover:text-emerald-900 transition-colors duration-300 ease-in-out relative group"
15
  >
16
  {category.title}
17
  <span className="absolute left-0 right-0 bottom-0 h-0.5 bg-emerald-800 transform scale-x-0 group-hover:scale-x-100 transition-transform duration-300 ease-in-out"></span>
@@ -20,14 +20,14 @@ const Footer: React.FC = () => {
20
  </div>
21
  </div>
22
 
23
- <div className="absolute inset-x-0 bottom-0 text-center py-4">
24
- <h1 className="text-6xl md:text-8xl font-black text-red-500 tracking-tighter transform -skew-x-6">
25
  TRANSFORMERS.JS
26
  </h1>
27
  </div>
28
 
29
  <div className="absolute inset-0 flex items-center justify-center opacity-5">
30
- <div className="w-96 h-96 bg-black rounded-full"></div>
31
  </div>
32
  </footer>
33
  );
 
4
 
5
  const Footer: React.FC = () => {
6
  return (
7
+ <footer className="bg-emerald-400/80 p-6 sm:p-10 md:p-20 relative overflow-hidden rounded-xl">
8
  <div className="max-w-7xl mx-auto relative z-10">
9
+ <div className="grid grid-cols-2 sm:grid-cols-3 md:flex md:flex-wrap justify-between items-center gap-4 mb-8 md:mb-12">
10
  {categories.map((category) => (
11
  <Link
12
  key={category.slug}
13
  href={`/category/${category.slug}`}
14
+ className="text-base sm:text-lg font-bold text-emerald-800 hover:text-emerald-900 transition-colors duration-300 ease-in-out relative group"
15
  >
16
  {category.title}
17
  <span className="absolute left-0 right-0 bottom-0 h-0.5 bg-emerald-800 transform scale-x-0 group-hover:scale-x-100 transition-transform duration-300 ease-in-out"></span>
 
20
  </div>
21
  </div>
22
 
23
+ <div className="absolute inset-x-0 bottom-0 text-center py-2 sm:py-4">
24
+ <h1 className="text-4xl sm:text-5xl md:text-6xl lg:text-8xl font-black text-red-500 tracking-tighter transform -skew-x-6">
25
  TRANSFORMERS.JS
26
  </h1>
27
  </div>
28
 
29
  <div className="absolute inset-0 flex items-center justify-center opacity-5">
30
+ <div className="w-48 h-48 sm:w-64 sm:h-64 md:w-96 md:h-96 bg-black rounded-full"></div>
31
  </div>
32
  </footer>
33
  );
components/category/CategoryCard.tsx CHANGED
@@ -40,7 +40,7 @@ const CategoryCard: React.FC<CategoryCardProps> = ({
40
  );
41
 
42
  return (
43
- <div className={`rounded-xl max-w-sm mx-auto p-6 text-white w-92 h-72 flex flex-col relative shadow-lg transition-transform duration-300 ease-in-out hover:scale-105 ${gradient}`}>
44
  {isComingSoon ? (
45
  <>
46
  <CardContent />
 
40
  );
41
 
42
  return (
43
+ <div className={`rounded-xl max-w-xs mx-auto p-6 text-white w-92 h-72 flex flex-col relative shadow-lg transition-transform duration-300 ease-in-out hover:scale-105 ${gradient}`}>
44
  {isComingSoon ? (
45
  <>
46
  <CardContent />