Skip to content

Commit

Permalink
style adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
atakantepe committed May 22, 2024
1 parent 02bb08e commit 07baa01
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
5 changes: 5 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Tailwind CSS Cheat Sheet is a reference guide for Tailwind CSS utility classes."/>
<meta name="keywords" content="Tailwind CSS, tailwind, css, tailwindcss, tailwind cheatsheet" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap"
rel="stylesheet"
/>

<title>Tailwind CSS Cheat Sheet</title>
</head>
<body>
Expand Down
3 changes: 3 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
text-align: center;
width: 100%;
min-height: 100vh;


}

body {
Expand Down Expand Up @@ -47,3 +49,4 @@ body {
border-radius: 2px;
outline: 1px solid rgba(255, 255, 255, 0.1);
}

12 changes: 6 additions & 6 deletions src/Topbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ const Topbar: React.FC<TopbarProps> = ({ isDarkMode, toggleTheme }) => {
style={{ background: isDarkMode ? 'linear-gradient(0deg, rgba(1, 6, 29, 0.12) 0%, rgba(0, 87, 255, 0.05) 0.01%, rgba(0, 117, 255, 0.07) 100%)':'#fff' }}
>
<div className="flex items-center gap-2 relative">
<div className="text-zinc-950 dark:text-white text-lg leading-[normal] font-light">Tailwind CSS Cheat Sheet</div>
<div className="text-start text-zinc-950 dark:text-white text-lg leading-[normal] font-light">Tailwind CSS Cheat Sheet</div>
<span
className="absolute top-[20px] right-[-13px] px-2 py-[0.18rem] rounded-[0.75rem] backdrop-blur-[5px] text-sm leading-[0.625rem] text-white/80 bg-black border border-zinc-300 dark:border-white/10"
className="absolute hidden md:flex top-[20px] right-[-13px] px-2 py-[0.18rem] rounded-[0.75rem] backdrop-blur-[5px] text-sm leading-[0.625rem] text-white/80 bg-black border border-zinc-300 dark:border-white/10"
style={{ background: isDarkMode ? 'linear-gradient(0deg, rgba(0, 45, 113, 0.22) 0%, rgba(0, 71, 176, 0.41) 100%)':'rgb(34 122 255)' }}
>
v 0.1.0
Expand All @@ -26,7 +26,7 @@ const Topbar: React.FC<TopbarProps> = ({ isDarkMode, toggleTheme }) => {
href="https://github.com/atakantepe/tailwind-cheat-sheet"
target="_blank"
rel="noreferrer"
className="flex items-center py-2 px-4 gap-2 border border-zinc-300 dark:border-white/10 rounded-[0.85rem] backdrop-blur-[2px] hover:border-blue-700 dark:hover:border-white/40 transition-all duration-200"
className="flex items-center justify-center md:py-2 md:px-4 w-[42px] h-[42px] md:w-auto md:h-auto gap-2 border border-zinc-300 dark:border-white/10 rounded-full md:rounded-[0.85rem] backdrop-blur-[2px] hover:border-blue-700 dark:hover:border-white/40 transition-all duration-200"
style={{ background: isDarkMode ? 'linear-gradient(2deg, #022055 -48.06%, #021337 98.2%)':'rgb(34 122 255)' }}
>
<span className="text-white font-light md:flex hidden">Give a Star</span>
Expand All @@ -44,7 +44,7 @@ const Topbar: React.FC<TopbarProps> = ({ isDarkMode, toggleTheme }) => {
href="https://x.com/atkntepe"
target="_blank"
rel="noreferrer"
className="flex items-center py-2 px-4 gap-2 border border-zinc-300 dark:border-white/10 rounded-[0.85rem] backdrop-blur-[2px] hover:border-blue-700 dark:hover:border-white/40 transition-all duration-200"
className="flex items-center justify-center md:py-2 md:px-4 w-[42px] h-[42px] md:w-auto md:h-auto gap-2 border border-zinc-300 dark:border-white/10 rounded-full md:rounded-[0.85rem] backdrop-blur-[2px] hover:border-blue-700 dark:hover:border-white/40 transition-all duration-200"
style={{ background: isDarkMode ? 'linear-gradient(2deg, #022055 -48.06%, #021337 98.2%)':'rgb(34 122 255)' }}
>
<span className="text-white font-light md:flex hidden">Follow Me</span>
Expand All @@ -59,11 +59,11 @@ const Topbar: React.FC<TopbarProps> = ({ isDarkMode, toggleTheme }) => {
style={{ background: isDarkMode ? 'linear-gradient(2deg, #022055 -48.06%, #021337 98.2%)':'rgb(34 122 255)' }}
>
{isDarkMode ? (
<svg xmlns="http://www.w3.org/2000/svg" className="fill-white w-4" viewBox="0 0 512 512">
<svg xmlns="http://www.w3.org/2000/svg" className="fill-white h-4" viewBox="0 0 512 512">
<path d="M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z" />
</svg>
) : (
<svg xmlns="http://www.w3.org/2000/svg" className="fill-white w-4" viewBox="0 0 512 512">
<svg xmlns="http://www.w3.org/2000/svg" className="fill-white h-4" viewBox="0 0 512 512">
<path d="M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM160 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z" />
</svg>
)}
Expand Down
1 change: 0 additions & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
:root {
font-family: Inter;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
Expand Down

0 comments on commit 07baa01

Please sign in to comment.