# Folded corner note card

> A note card with a paper-like folded corner that grows on hover and reveals a hidden “Archive” button.

- Category: [Cards](https://library.aimran.es/components/cards)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/uv-card-fold
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

It brings a bit of paper into digital notes. Picture a journaling app, the idea board of a small studio or the saved quotes in a reading app: each card has a folded corner, and hovering lifts the fold and reveals a quick action. A note card in HTML and CSS with a soft paper tone.

Hidden actions are easy to miss, so keep the important ones visible and hide only a secondary one, like archiving. On touch devices there is no hover; show the button all the time there, or people will never find it.

## Code

### HTML

```html
<article class="uv-cfold"><i></i><small>IDEA · 08:42</small><h3>Private note</h3><p>La simplicidad no es quitar cosas; es dejar solo lo que sostiene la experiencia.</p><footer><span>AM</span><button>Archive</button></footer></article>
```

### CSS

```css
.uv-cfold {
  --c1: #0071e3;
  --c2: #8ec5ff;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uv-cfold {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  position: relative;
  width: 16em;
  min-height: 18em;
  overflow: hidden;
  padding: 1.5em;
  border-radius: 1.4em;
  font-size: var(--s);
  color: var(--fg);
  background: color-mix(in srgb,var(--c2) 12%,var(--bg));
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--fg) 8%,transparent),0 20px 45px -35px #000;
}

.uv-cfold>i {
  position: absolute;
  right: 0;
  top: 0;
  width: 3.5em;
  height: 3.5em;
  background: linear-gradient(225deg,var(--bg) 50%,color-mix(in srgb,var(--c1) 25%,var(--bg)) 51%);
  filter: drop-shadow(-3px 3px 4px rgba(0,0,0,.08));
  transform-origin: top right;
  transition: transform calc(0.5s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uv-cfold small {
  font-size: .62em;
  color: var(--c1);
}

.uv-cfold h3 {
  margin: 3em 0 .6em;
  font-size: 1.45em;
}

.uv-cfold p {
  margin: 0;
  font-size: .82em;
  line-height: 1.65;
  opacity: .65;
}

.uv-cfold footer {
  position: absolute;
  left: 1.5em;
  right: 1.5em;
  bottom: 1.4em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.uv-cfold footer span {
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  font-size: .66em;
  font-weight: 700;
  color: #fff;
  background: var(--c1);
}

.uv-cfold footer button {
  border: 0;
  font: inherit;
  font-size: .7em;
  color: var(--c1);
  background: transparent;
  opacity: 0;
  transform: translateX(1em);
  transition: all calc(0.4s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uv-cfold:hover>i {
  transform: scale(1.35);
}

.uv-cfold:hover footer button {
  opacity: 1;
  transform: none;
}
```

### React

```tsx
import type { CSSProperties } from "react";

const css = `
.uv-cfold {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  position: relative;
  width: 16em;
  min-height: 18em;
  overflow: hidden;
  padding: 1.5em;
  border-radius: 1.4em;
  font-size: var(--s);
  color: var(--fg);
  background: color-mix(in srgb,var(--c2) 12%,var(--bg));
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--fg) 8%,transparent),0 20px 45px -35px #000;
}

.uv-cfold>i {
  position: absolute;
  right: 0;
  top: 0;
  width: 3.5em;
  height: 3.5em;
  background: linear-gradient(225deg,var(--bg) 50%,color-mix(in srgb,var(--c1) 25%,var(--bg)) 51%);
  filter: drop-shadow(-3px 3px 4px rgba(0,0,0,.08));
  transform-origin: top right;
  transition: transform calc(0.5s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uv-cfold small {
  font-size: .62em;
  color: var(--c1);
}

.uv-cfold h3 {
  margin: 3em 0 .6em;
  font-size: 1.45em;
}

.uv-cfold p {
  margin: 0;
  font-size: .82em;
  line-height: 1.65;
  opacity: .65;
}

.uv-cfold footer {
  position: absolute;
  left: 1.5em;
  right: 1.5em;
  bottom: 1.4em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.uv-cfold footer span {
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  font-size: .66em;
  font-weight: 700;
  color: #fff;
  background: var(--c1);
}

.uv-cfold footer button {
  border: 0;
  font: inherit;
  font-size: .7em;
  color: var(--c1);
  background: transparent;
  opacity: 0;
  transform: translateX(1em);
  transition: all calc(0.4s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uv-cfold:hover>i {
  transform: scale(1.35);
}

.uv-cfold:hover footer button {
  opacity: 1;
  transform: none;
}
`;

export default function CardFold() {
  return (
    <>
      <style>{css}</style>
      <div
        style={{
          "--c1": "#0071e3",
          "--c2": "#8ec5ff",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <article className="uv-cfold"><i></i><small>IDEA · 08:42</small><h3>Private note</h3><p>La simplicidad no es quitar cosas; es dejar solo lo que sostiene la experiencia.</p><footer><span>AM</span><button>Archive</button></footer></article>
      </div>
    </>
  );
}
```

## Prompt for AI assistants

Paste this into ChatGPT, Claude, Cursor, v0 or Lovable to adapt the block to your stack (Tailwind, Vue, Svelte…):

````text
I want to add the “Folded corner note card” block (Cards) from AIMRAN Library to my project.

## What it is
A note card with a paper-like folded corner that grows on hover and reveals a hidden “Archive” button.

## Chosen settings
- Main color: #0071e3
- Secondary color: #8ec5ff
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Private note"

## What I need
1. Add it to my project with the same look and animation as the reference code: same sizes, colours, radii, shadows, timings and easing.
2. It is built with plain HTML and CSS (the reference wraps it in a React component with its CSS). If my project uses something else (Vue, Svelte, Astro, plain HTML…), translate it without losing any behaviour. If I use Tailwind, turn the styles into classes; if not, keep the CSS in its own file.
3. Expose the settings above as props (or CSS variables) with those values as defaults.
4. Make it work well on phones: nothing that depends only on hover, touch targets of at least 44 px and no overflow on 320 px screens.
5. Make it look right in light and dark mode.
6. Keep it accessible: semantic HTML, roles and aria-* where needed, visible focus and keyboard support.
7. Respect prefers-reduced-motion: with reduced motion, no big animations but the same end result.

## Reference code
```tsx
import type { CSSProperties } from "react";

const css = `
.uv-cfold {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  position: relative;
  width: 16em;
  min-height: 18em;
  overflow: hidden;
  padding: 1.5em;
  border-radius: 1.4em;
  font-size: var(--s);
  color: var(--fg);
  background: color-mix(in srgb,var(--c2) 12%,var(--bg));
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--fg) 8%,transparent),0 20px 45px -35px #000;
}

.uv-cfold>i {
  position: absolute;
  right: 0;
  top: 0;
  width: 3.5em;
  height: 3.5em;
  background: linear-gradient(225deg,var(--bg) 50%,color-mix(in srgb,var(--c1) 25%,var(--bg)) 51%);
  filter: drop-shadow(-3px 3px 4px rgba(0,0,0,.08));
  transform-origin: top right;
  transition: transform calc(0.5s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uv-cfold small {
  font-size: .62em;
  color: var(--c1);
}

.uv-cfold h3 {
  margin: 3em 0 .6em;
  font-size: 1.45em;
}

.uv-cfold p {
  margin: 0;
  font-size: .82em;
  line-height: 1.65;
  opacity: .65;
}

.uv-cfold footer {
  position: absolute;
  left: 1.5em;
  right: 1.5em;
  bottom: 1.4em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.uv-cfold footer span {
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  font-size: .66em;
  font-weight: 700;
  color: #fff;
  background: var(--c1);
}

.uv-cfold footer button {
  border: 0;
  font: inherit;
  font-size: .7em;
  color: var(--c1);
  background: transparent;
  opacity: 0;
  transform: translateX(1em);
  transition: all calc(0.4s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uv-cfold:hover>i {
  transform: scale(1.35);
}

.uv-cfold:hover footer button {
  opacity: 1;
  transform: none;
}
`;

export default function CardFold() {
  return (
    <>
      <style>{css}</style>
      <div
        style={{
          "--c1": "#0071e3",
          "--c2": "#8ec5ff",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <article className="uv-cfold"><i></i><small>IDEA · 08:42</small><h3>Private note</h3><p>La simplicidad no es quitar cosas; es dejar solo lo que sostiene la experiencia.</p><footer><span>AM</span><button>Archive</button></footer></article>
      </div>
    </>
  );
}
```

Give me the complete final code, ready to paste, and tell me in one line where to put it in my project.
````
