Skip to content

Commit

Permalink
set skills to two columns for some screen sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hatchibombotar committed Sep 30, 2024
1 parent d2d7dfa commit 9ecea17
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ const postCollectionInOrder = await Promise.all(
<hr class="my-5" />

<h2 class="text-2xl font-bold my-3">Skills</h2>
<div class="grid sm:grid-cols-3">
<div class="grid xs:grid-cols-2 sm:grid-cols-3">
{
skills.map((skill) => (
<div class="flex sm:justify-normal justify-center items-center m-2 text-left sm:grayscale sm:brightness-[0.2] hover:filter-none hover:ease-[cubic-bezier(1,1,0,0)] hover:transition duration-[14s]">
<div class="flex xs:justify-normal justify-center items-center m-2 text-left sm:grayscale sm:brightness-[0.2] hover:filter-none hover:ease-[cubic-bezier(1,1,0,0)] hover:transition duration-[14s]">
{skill.iconType == "image" ? (
<div class="mx-2 flex items-center">
<img
Expand Down
29 changes: 16 additions & 13 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {
colors: {
"cool-50": "#fcfcfc",
"cool-100": "#eeeeee",
"cool-200": "#a1a1a1",
},
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {
screens: {
"xs": "340px",
},
colors: {
"cool-50": "#fcfcfc",
"cool-100": "#eeeeee",
"cool-200": "#a1a1a1",
},
typography(theme) {
return {
DEFAULT: {
Expand All @@ -29,11 +32,11 @@ module.exports = {
}
}
}
},
},

},
plugins: [
require('@tailwindcss/typography'),
],
},
plugins: [
require('@tailwindcss/typography'),
],
}

0 comments on commit 9ecea17

Please sign in to comment.