├── .gitignore
├── src
├── env.d.ts
├── icons
│ ├── single.svg
│ ├── landscape.svg
│ ├── portrait.svg
│ ├── multi.svg
│ ├── github.svg
│ ├── favicon.svg
│ └── wind.svg
├── pages
│ ├── test
│ │ └── index.astro
│ └── index.astro
└── scripts
│ └── magic.js
├── tsconfig.json
├── public
├── og.png
└── favicon.svg
├── tailwind.config.cjs
├── astro.config.mjs
├── package.json
├── README.md
└── LICENSE
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .DS_Store
3 | dist
4 | node_modules
--------------------------------------------------------------------------------
/src/env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "astro/tsconfigs/base"
3 | }
4 |
--------------------------------------------------------------------------------
/public/og.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IntToDouble/winded/HEAD/public/og.png
--------------------------------------------------------------------------------
/tailwind.config.cjs:
--------------------------------------------------------------------------------
1 | /** @type {import('tailwindcss').Config} */
2 | module.exports = {
3 | content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
4 | theme: {
5 | extend: {},
6 | },
7 | plugins: [],
8 | }
9 |
--------------------------------------------------------------------------------
/src/icons/single.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/icons/landscape.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/icons/portrait.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/astro.config.mjs:
--------------------------------------------------------------------------------
1 | import { defineConfig } from "astro/config";
2 |
3 | import tailwind from "@astrojs/tailwind";
4 |
5 | // https://astro.build/config
6 | export default defineConfig({
7 | integrations: [tailwind()],
8 | build: {
9 | inlineStylesheets: "always",
10 | },
11 | });
12 |
--------------------------------------------------------------------------------
/src/icons/multi.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "astro",
3 | "type": "module",
4 | "version": "0.0.1",
5 | "scripts": {
6 | "dev": "astro dev",
7 | "start": "astro dev",
8 | "build": "astro build",
9 | "preview": "astro preview",
10 | "astro": "astro"
11 | },
12 | "dependencies": {
13 | "@astrojs/tailwind": "^4.0.0",
14 | "astro": "^2.7.0",
15 | "astro-icon": "^0.8.1",
16 | "tailwindcss": "^3.3.2"
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/icons/github.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/icons/favicon.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/icons/wind.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # WINDED
2 |
3 | [winded.inttodouble.com](https://winded.inttodouble.com/)
4 |
5 | WINDED simplifies responsive design by `iframe`-ing a single page across multiple breakpoints.
6 |
7 | _ChatGPT on why this is useful:_
8 |
9 | > This functionality is highly useful as it enables developers to simultaneously view and assess how their webpage appears on different screen sizes, thus saving time and improving accuracy in creating adaptable, user-friendly designs.
10 |
11 | Though specifically created for Tailwind CSS, the preset breakpoints are valuable for almost any responsive application.
12 |
13 | 
14 |
15 | ## Breakpoints
16 |
17 | https://tailwindcss.com/docs/responsive-design
18 |
19 | | Breakpoint prefix | Minimum width |
20 | | ----------------- | ------------- |
21 | | sm | 640px |
22 | | md | 768px |
23 | | lg | 1024px |
24 | | xl | 1280px |
25 | | 2xl | 1536px |
26 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 IntToDouble
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/public/favicon.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/pages/test/index.astro:
--------------------------------------------------------------------------------
1 | ---
2 | import { Icon } from "astro-icon";
3 | ---
4 |
5 |
6 |
7 |
8 |
9 | Winded Test
10 |
11 |
12 |
13 |
14 |
WINDED
15 |
16 |
17 |
18 |
Reduce the time you spend testing responsive designs with Tailwind.
19 |
20 |
Resolution
21 |
$RESOLUTION
22 |
23 |
24 |
Visible Breakpoints
25 |
26 |
27 |
sm
28 |
md
29 |
lg
30 |
xl
31 |
2xl
32 |
33 |
34 |
35 |
USAGE
36 |
37 | Use the URL input field to enter the URL of the webpage you want to
38 | view.
39 |
40 |
41 |
42 | Breakpoints, viewing mode, and orientation can all be adjusted by the
43 | buttons to the right.
44 |
45 |
46 |
47 |
Troubleshooting
48 |
49 | If the page fails to load, make sure the
50 |
54 | X-Frame-Options
56 | header isn't the cluprit. We recommend using
57 | localhost to avoid this issue.
58 |