├── react-code ├── src │ ├── App.css │ ├── App.jsx │ ├── index.css │ └── main.jsx ├── images │ ├── favicon-32x32.png │ ├── icon-sedans.svg │ ├── icon-suvs.svg │ └── icon-luxury.svg ├── vite.config.js ├── .gitignore ├── index.html ├── package.json ├── eslint.config.js └── README.md ├── nextjs-code ├── src │ └── app │ │ ├── page.tsx │ │ ├── layout.tsx │ │ ├── globals.css │ │ └── favicon.ico ├── public │ ├── vercel.svg │ ├── file.svg │ ├── window.svg │ ├── globe.svg │ └── next.svg ├── images │ ├── favicon-32x32.png │ ├── icon-sedans.svg │ ├── icon-suvs.svg │ └── icon-luxury.svg ├── next.config.ts ├── postcss.config.mjs ├── eslint.config.mjs ├── tailwind.config.ts ├── .gitignore ├── package.json ├── tsconfig.json └── README.md ├── design ├── active-states.jpg ├── mobile-design.jpg ├── desktop-design.jpg └── desktop-preview.jpg ├── images ├── favicon-32x32.png ├── icon-sedans.svg ├── icon-suvs.svg └── icon-luxury.svg ├── .gitignore ├── style-guide.md ├── index.html ├── data.json ├── LICENSE ├── script.js ├── style.css └── README.md /react-code/src/App.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /react-code/src/App.jsx: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nextjs-code/src/app/page.tsx: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /react-code/src/index.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nextjs-code/src/app/layout.tsx: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nextjs-code/src/app/globals.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | 5 | -------------------------------------------------------------------------------- /design/active-states.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/Three-column-preview-card_frontend/HEAD/design/active-states.jpg -------------------------------------------------------------------------------- /design/mobile-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/Three-column-preview-card_frontend/HEAD/design/mobile-design.jpg -------------------------------------------------------------------------------- /images/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/Three-column-preview-card_frontend/HEAD/images/favicon-32x32.png -------------------------------------------------------------------------------- /design/desktop-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/Three-column-preview-card_frontend/HEAD/design/desktop-design.jpg -------------------------------------------------------------------------------- /design/desktop-preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/Three-column-preview-card_frontend/HEAD/design/desktop-preview.jpg -------------------------------------------------------------------------------- /nextjs-code/public/vercel.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nextjs-code/src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/Three-column-preview-card_frontend/HEAD/nextjs-code/src/app/favicon.ico -------------------------------------------------------------------------------- /nextjs-code/images/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/Three-column-preview-card_frontend/HEAD/nextjs-code/images/favicon-32x32.png -------------------------------------------------------------------------------- /react-code/images/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/Three-column-preview-card_frontend/HEAD/react-code/images/favicon-32x32.png -------------------------------------------------------------------------------- /nextjs-code/next.config.ts: -------------------------------------------------------------------------------- 1 | import type { NextConfig } from "next"; 2 | 3 | const nextConfig: NextConfig = { 4 | /* config options here */ 5 | }; 6 | 7 | export default nextConfig; 8 | -------------------------------------------------------------------------------- /nextjs-code/postcss.config.mjs: -------------------------------------------------------------------------------- 1 | /** @type {import('postcss-load-config').Config} */ 2 | const config = { 3 | plugins: { 4 | tailwindcss: {}, 5 | }, 6 | }; 7 | 8 | export default config; 9 | -------------------------------------------------------------------------------- /react-code/vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite' 2 | import react from '@vitejs/plugin-react' 3 | 4 | // https://vite.dev/config/ 5 | export default defineConfig({ 6 | plugins: [react()], 7 | }) 8 | -------------------------------------------------------------------------------- /react-code/src/main.jsx: -------------------------------------------------------------------------------- 1 | import { StrictMode } from 'react' 2 | import { createRoot } from 'react-dom/client' 3 | import './index.css' 4 | import App from './App.jsx' 5 | 6 | createRoot(document.getElementById('root')).render( 7 | 8 | 9 | , 10 | ) 11 | -------------------------------------------------------------------------------- /react-code/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | dist 12 | dist-ssr 13 | *.local 14 | 15 | # Editor directories and files 16 | .vscode/* 17 | !.vscode/extensions.json 18 | .idea 19 | .DS_Store 20 | *.suo 21 | *.ntvs* 22 | *.njsproj 23 | *.sln 24 | *.sw? 25 | -------------------------------------------------------------------------------- /nextjs-code/public/file.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nextjs-code/public/window.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /react-code/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Three Column Preview card 8 | 9 | 10 |
11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /nextjs-code/eslint.config.mjs: -------------------------------------------------------------------------------- 1 | import { dirname } from "path"; 2 | import { fileURLToPath } from "url"; 3 | import { FlatCompat } from "@eslint/eslintrc"; 4 | 5 | const __filename = fileURLToPath(import.meta.url); 6 | const __dirname = dirname(__filename); 7 | 8 | const compat = new FlatCompat({ 9 | baseDirectory: __dirname, 10 | }); 11 | 12 | const eslintConfig = [ 13 | ...compat.extends("next/core-web-vitals", "next/typescript"), 14 | ]; 15 | 16 | export default eslintConfig; 17 | -------------------------------------------------------------------------------- /nextjs-code/tailwind.config.ts: -------------------------------------------------------------------------------- 1 | import type { Config } from "tailwindcss"; 2 | 3 | export default { 4 | content: [ 5 | "./src/pages/**/*.{js,ts,jsx,tsx,mdx}", 6 | "./src/components/**/*.{js,ts,jsx,tsx,mdx}", 7 | "./src/app/**/*.{js,ts,jsx,tsx,mdx}", 8 | ], 9 | theme: { 10 | extend: { 11 | colors: { 12 | background: "var(--background)", 13 | foreground: "var(--foreground)", 14 | }, 15 | }, 16 | }, 17 | plugins: [], 18 | } satisfies Config; 19 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Avoid accidental upload of the Sketch and Figma design files 2 | ##################################################### 3 | ## Please do not remove lines 5 and 6 - thanks! 🙂 ## 4 | ##################################################### 5 | *.sketch 6 | *.fig 7 | 8 | # Avoid accidental XD upload if you convert the design file 9 | ############################################### 10 | ## Please do not remove line 12 - thanks! 🙂 ## 11 | ############################################### 12 | *.xd 13 | 14 | # Avoid your project being littered with annoying .DS_Store files! 15 | .DS_Store 16 | .prettierignore -------------------------------------------------------------------------------- /nextjs-code/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.* 7 | .yarn/* 8 | !.yarn/patches 9 | !.yarn/plugins 10 | !.yarn/releases 11 | !.yarn/versions 12 | 13 | # testing 14 | /coverage 15 | 16 | # next.js 17 | /.next/ 18 | /out/ 19 | 20 | # production 21 | /build 22 | 23 | # misc 24 | .DS_Store 25 | *.pem 26 | 27 | # debug 28 | npm-debug.log* 29 | yarn-debug.log* 30 | yarn-error.log* 31 | .pnpm-debug.log* 32 | 33 | # env files (can opt-in for committing if needed) 34 | .env* 35 | 36 | # vercel 37 | .vercel 38 | 39 | # typescript 40 | *.tsbuildinfo 41 | next-env.d.ts 42 | -------------------------------------------------------------------------------- /nextjs-code/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nextjs-code", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "dev": "next dev --turbopack", 7 | "build": "next build", 8 | "start": "next start", 9 | "lint": "next lint" 10 | }, 11 | "dependencies": { 12 | "react": "^19.0.0", 13 | "react-dom": "^19.0.0", 14 | "next": "15.1.3" 15 | }, 16 | "devDependencies": { 17 | "typescript": "^5", 18 | "@types/node": "^20", 19 | "@types/react": "^19", 20 | "@types/react-dom": "^19", 21 | "postcss": "^8", 22 | "tailwindcss": "^3.4.1", 23 | "eslint": "^9", 24 | "eslint-config-next": "15.1.3", 25 | "@eslint/eslintrc": "^3" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /nextjs-code/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES2017", 4 | "lib": ["dom", "dom.iterable", "esnext"], 5 | "allowJs": true, 6 | "skipLibCheck": true, 7 | "strict": true, 8 | "noEmit": true, 9 | "esModuleInterop": true, 10 | "module": "esnext", 11 | "moduleResolution": "bundler", 12 | "resolveJsonModule": true, 13 | "isolatedModules": true, 14 | "jsx": "preserve", 15 | "incremental": true, 16 | "plugins": [ 17 | { 18 | "name": "next" 19 | } 20 | ], 21 | "paths": { 22 | "@/*": ["./src/*"] 23 | } 24 | }, 25 | "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], 26 | "exclude": ["node_modules"] 27 | } 28 | -------------------------------------------------------------------------------- /react-code/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-code", 3 | "private": true, 4 | "version": "0.0.0", 5 | "type": "module", 6 | "scripts": { 7 | "dev": "vite", 8 | "build": "vite build", 9 | "lint": "eslint .", 10 | "preview": "vite preview" 11 | }, 12 | "dependencies": { 13 | "react": "^18.3.1", 14 | "react-dom": "^18.3.1" 15 | }, 16 | "devDependencies": { 17 | "@eslint/js": "^9.17.0", 18 | "@types/react": "^18.3.18", 19 | "@types/react-dom": "^18.3.5", 20 | "@vitejs/plugin-react": "^4.3.4", 21 | "eslint": "^9.17.0", 22 | "eslint-plugin-react": "^7.37.2", 23 | "eslint-plugin-react-hooks": "^5.0.0", 24 | "eslint-plugin-react-refresh": "^0.4.16", 25 | "globals": "^15.14.0", 26 | "vite": "^6.0.5" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /style-guide.md: -------------------------------------------------------------------------------- 1 | # Front-end Style Guide 2 | 3 | ## Layout 4 | 5 | The designs were created to the following widths: 6 | 7 | - Mobile: 375px 8 | - Desktop: 1440px 9 | 10 | ## Colors 11 | 12 | ### Primary 13 | 14 | Bright orange: hsl(31, 77%, 52%) 15 | Dark cyan: hsl(184, 100%, 22%) 16 | Very dark cyan: hsl(179, 100%, 13%) 17 | 18 | ### Neutral 19 | 20 | Transparent white (paragraphs): hsla(0, 0%, 100%, 0.75) 21 | Very light gray (background, headings, buttons): hsl(0, 0%, 95%) 22 | 23 | ## Typography 24 | 25 | ### Body Copy 26 | 27 | - Font size: 15px 28 | 29 | ### Font 30 | 31 | - Family: [Lexend Deca](https://fonts.google.com/specimen/Lexend+Deca) 32 | - Weights: 400 33 | 34 | - Family: [Big Shoulders Display](https://fonts.google.com/specimen/Big+Shoulders+Display) 35 | - Weights: 700 36 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12 | 3-column preview card component 13 | 14 | 15 | 16 | 17 |
18 |
19 |
20 | 21 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /data.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "icon": "./images/icon-sedans.svg", 4 | "heading": "Sedans", 5 | "paragraph": "Choose a sedan for its affordability and excellent fuel economy. Ideal for cruising in the city or on your next road trip.", 6 | "color": "hsl(31, 77%, 52%)", 7 | "backgroundColor": "hsl(31, 77%, 52%)" 8 | }, 9 | { 10 | "icon": "./images/icon-suvs.svg", 11 | "heading": "Suvs", 12 | "paragraph": "Take an SUV for its spacious interior, power, and versatility. Perfect for your next family vacation and off-road adventures.", 13 | "color": "hsl(184, 100%, 22%)", 14 | "backgroundColor": "hsl(184, 100%, 22%)" 15 | }, 16 | { 17 | "icon": "./images/icon-luxury.svg", 18 | "heading": "Luxury", 19 | "paragraph": "Cruise in the best car brands without the bloated prices. Enjoy the enhanced comfort of a luxury rental and arrive in style.", 20 | "color": "hsl(179, 100%, 13%)", 21 | "backgroundColor": "hsl(179, 100%, 13%)" 22 | } 23 | ] -------------------------------------------------------------------------------- /nextjs-code/public/globe.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/icon-sedans.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /react-code/images/icon-sedans.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nextjs-code/images/icon-sedans.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Sarthak Sachdev 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 | -------------------------------------------------------------------------------- /react-code/eslint.config.js: -------------------------------------------------------------------------------- 1 | import js from '@eslint/js' 2 | import globals from 'globals' 3 | import react from 'eslint-plugin-react' 4 | import reactHooks from 'eslint-plugin-react-hooks' 5 | import reactRefresh from 'eslint-plugin-react-refresh' 6 | 7 | export default [ 8 | { ignores: ['dist'] }, 9 | { 10 | files: ['**/*.{js,jsx}'], 11 | languageOptions: { 12 | ecmaVersion: 2020, 13 | globals: globals.browser, 14 | parserOptions: { 15 | ecmaVersion: 'latest', 16 | ecmaFeatures: { jsx: true }, 17 | sourceType: 'module', 18 | }, 19 | }, 20 | settings: { react: { version: '18.3' } }, 21 | plugins: { 22 | react, 23 | 'react-hooks': reactHooks, 24 | 'react-refresh': reactRefresh, 25 | }, 26 | rules: { 27 | ...js.configs.recommended.rules, 28 | ...react.configs.recommended.rules, 29 | ...react.configs['jsx-runtime'].rules, 30 | ...reactHooks.configs.recommended.rules, 31 | 'react/jsx-no-target-blank': 'off', 32 | 'react-refresh/only-export-components': [ 33 | 'warn', 34 | { allowConstantExport: true }, 35 | ], 36 | }, 37 | }, 38 | ] 39 | -------------------------------------------------------------------------------- /images/icon-suvs.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/icon-luxury.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nextjs-code/images/icon-suvs.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /react-code/images/icon-suvs.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nextjs-code/images/icon-luxury.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /react-code/images/icon-luxury.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nextjs-code/public/next.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /script.js: -------------------------------------------------------------------------------- 1 | const featureSectionEl = document.querySelector('.feature'); 2 | 3 | fetch('data.json') 4 | .then(res => res.json()) 5 | .then(cards => createCards(cards)); 6 | 7 | const createCards = cards => { 8 | cards.forEach((card, i) => { 9 | const article = document.createElement('article'); 10 | article.classList.add('feature__content'); 11 | article.style.background = card.backgroundColor; 12 | 13 | const headingId = `feature-heading-${i}`; 14 | 15 | const divIconContainer = document.createElement('div'); 16 | divIconContainer.classList.add('feature__icon-container'); 17 | 18 | const iconImage = document.createElement('img'); 19 | iconImage.src = card.icon; 20 | iconImage.alt = ''; 21 | iconImage.setAttribute('aria-hidden', 'true'); 22 | divIconContainer.appendChild(iconImage); 23 | 24 | const headerEl = document.createElement('header'); 25 | headerEl.classList.add('feature__header'); 26 | 27 | const headingH1 = document.createElement('h1'); 28 | headingH1.classList.add('feature__heading'); 29 | headingH1.textContent = card.heading; 30 | headingH1.id = headingId; 31 | 32 | headerEl.appendChild(headingH1); 33 | 34 | const paragraphEl = document.createElement('p'); 35 | paragraphEl.classList.add('feature__text'); 36 | paragraphEl.textContent = card.paragraph; 37 | 38 | const btn = document.createElement('button'); 39 | btn.classList.add('feature__btn'); 40 | btn.style.color = card.color; 41 | btn.textContent = 'Learn More'; 42 | btn.setAttribute('aria-label', `Learn more about ${card.heading}`); 43 | btn.setAttribute('title', `Learn more about ${card.heading}`); 44 | 45 | btn.addEventListener('mouseenter', () => { 46 | btn.style.color = 'hsl(0, 0%, 95%)'; 47 | }); 48 | 49 | btn.addEventListener('mouseleave', () => { 50 | btn.style.color = card.color; 51 | }); 52 | 53 | article.setAttribute('aria-labelledby', headingId); 54 | 55 | article.append(divIconContainer, headerEl, paragraphEl, btn); 56 | featureSectionEl.appendChild(article); 57 | }); 58 | }; -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | @import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700&family=Lexend+Deca&display=swap'); 2 | 3 | :root { 4 | /* Primary */ 5 | --bright-orange: hsl(31, 77%, 52%); 6 | --dark-cyan: hsl(184, 100%, 22%); 7 | --very-dark-cyan: hsl(179, 100%, 13%); 8 | /* Neutral */ 9 | --transparent-white-paragraphs: hsla(0, 0%, 100%, 0.75); 10 | --very-light-gray-background-headings-buttons: hsl(0, 0%, 95%); 11 | --main-font-family: 'Lexend Deca', sans-serif; 12 | --secondary-font-family: 'Big Shoulders Display', sans-serif; 13 | } 14 | 15 | html { 16 | font-size: 62.5%; 17 | } 18 | 19 | *, 20 | ::before, 21 | ::after { 22 | margin: 0; 23 | padding: 0; 24 | box-sizing: border-box; 25 | } 26 | 27 | .body { 28 | position: relative; 29 | background: var(--very-light-gray-background-headings-buttons); 30 | height: 100vh; 31 | font-family: var(--main-font-family); 32 | overflow: hidden; 33 | background-color: rgb(139, 206, 105); 34 | } 35 | 36 | .main { 37 | width: 100%; 38 | height: 100%; 39 | display: flex; 40 | justify-content: center; 41 | align-items: center; 42 | margin-top: 2.2rem; 43 | } 44 | 45 | .feature { 46 | display: flex; 47 | width: 920px; 48 | border-radius: 0.8em; 49 | overflow: hidden; 50 | } 51 | 52 | .feature__content { 53 | position: relative; 54 | padding: 4.7em; 55 | flex: 1; 56 | } 57 | 58 | .feature__header { 59 | margin-top: 3.2rem; 60 | text-transform: uppercase; 61 | font-family: var(--secondary-font-family); 62 | font-size: 3.48rem; 63 | color: var(--very-light-gray-background-headings-buttons); 64 | } 65 | 66 | .feature__text { 67 | margin-top: 2.6rem; 68 | font-size: 1.54rem; 69 | letter-spacing: -0.1px; 70 | line-height: 1.6; 71 | color: var(--transparent-white-paragraphs); 72 | } 73 | 74 | .feature__btn { 75 | cursor: pointer; 76 | margin-top: 8.2rem; 77 | margin-left: 0.15rem; 78 | font-size: 1.57rem; 79 | padding: 1.5rem 3rem; 80 | border-radius: 10rem; 81 | border: none; 82 | background: var(--very-light-gray-background-headings-buttons); 83 | font-weight: 600; 84 | transition: all 0.15s ease; 85 | } 86 | 87 | .feature__btn:hover { 88 | background: transparent; 89 | outline: 1px solid var(--very-light-gray-background-headings-buttons); 90 | } 91 | 92 | .attribution { 93 | position: absolute; 94 | bottom: 4rem; 95 | left: 50%; 96 | transform: translateX(-50%); 97 | font-size: 1.1rem; 98 | text-align: center; 99 | } 100 | 101 | .attribution a { 102 | color: hsl(0, 0%, 0%); 103 | } 104 | 105 | @media only screen and (max-width: 935px) { 106 | .feature { 107 | width: 97%; 108 | } 109 | 110 | .feature__content { 111 | padding: 4.7em 2em; 112 | } 113 | } 114 | 115 | @media only screen and (max-width: 910px) { 116 | .feature__content { 117 | padding: 4.7em 1em; 118 | } 119 | .feature__text { 120 | font-size: 1.5rem; 121 | } 122 | } 123 | 124 | @media only screen and (max-width: 830px) { 125 | .body { 126 | display: flex; 127 | flex-direction: column; 128 | overflow: auto; 129 | } 130 | 131 | .main { 132 | display: block; 133 | height: auto; 134 | margin-bottom: 2rem; 135 | } 136 | 137 | .feature { 138 | width: 500px; 139 | flex-direction: column; 140 | margin: 0 auto; 141 | } 142 | 143 | .feature__content { 144 | padding: 4.7em; 145 | } 146 | .feature__text { 147 | font-size: 1.7rem; 148 | } 149 | 150 | .attribution { 151 | position: static; 152 | bottom: auto; 153 | left: auto; 154 | transform: none; 155 | margin-top: auto; 156 | align-self: center; 157 | padding-bottom: 2rem; 158 | } 159 | } 160 | 161 | @media only screen and (max-width: 550px) { 162 | .feature { 163 | width: 90%; 164 | } 165 | 166 | .feature__content { 167 | padding: 4.7em; 168 | } 169 | .feature__text { 170 | font-size: 1.6rem; 171 | } 172 | 173 | .feature__btn { 174 | margin-top: 3rem; 175 | /* margin-left: 0.15rem; */ 176 | } 177 | } 178 | 179 | @media only screen and (max-width: 350px) { 180 | .feature__content { 181 | padding: 4.7em; 182 | text-align: center; 183 | } 184 | 185 | .feature__text { 186 | font-size: 1.55rem; 187 | } 188 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Three Column Preview Card Component 2 | 3 | ## Explore the options for your next ride with the Three Column Preview Card Component. Whether it's a sedan, SUV, or luxury car, find the perfect match for your journey. 4 | 5 | ## Table of Contents 6 | 7 | - [Overview](#overview) 8 | - [The Challenge](#the-challenge) 9 | - [Screenshot](#screenshot) 10 | - [Links](#links) 11 | - [My Process](#my-process) 12 | - [Built With](#built-with) 13 | - [What I Learned](#what-i-learned) 14 | - [Continued Development](#continued-development) 15 | - [Useful Resources](#useful-resources) 16 | - [Author](#author) 17 | - [Acknowledgments](#acknowledgments) 18 | - [Got Feedback for Me?](#got-feedback-for-me) 19 | 20 | ## Overview 21 | 22 | ### The Challenge 23 | 24 | Explore the options for your next ride with the Three Column Preview Card Component. Whether it's a sedan, SUV, or luxury car, find the perfect match for your journey. 25 | 26 | ### Screenshot 27 | 28 | ![Design Preview](./design/active-states.jpg) 29 | 30 | ### Links 31 | 32 | - Solution URL: [GitHub Repository](https://github.com/SartHak-0-Sach/Three-column-preview-card_frontend) 33 | - Live Site URL: [Live Site](https://three-column-card-frontend.netlify.app/) 34 | 35 | ## My Process 36 | 37 | ### Built With 38 | 39 | - HTML5 40 | - CSS3 41 | - JavaScript 42 | 43 | You will find all the required assets in the `/design` folder. The assets are already optimized. 44 | 45 | There is also a `style-guide.md` file containing the information you'll need, such as color palette and fonts. 46 | 47 | ### What I Learned 48 | 49 | - Designing a visually appealing card layout for showcasing different options 50 | - Implementing hover effects for interactive elements to enhance user experience 51 | - Creating a responsive design for seamless viewing on various devices 52 | 53 | code snippet I am proud of- 54 | ```css 55 | .feature__btn { 56 | cursor: pointer; 57 | margin-top: 8.2rem; 58 | margin-left: 0.15rem; 59 | font-size: 1.57rem; 60 | padding: 1.5rem 3rem; 61 | border-radius: 10rem; 62 | border: none; 63 | background: var(--very-light-gray-background-headings-buttons); 64 | font-weight: 600; 65 | transition: all 0.15s ease; 66 | } 67 | 68 | .feature__btn:hover { 69 | background: transparent; 70 | outline: 1px solid var(--very-light-gray-background-headings-buttons); 71 | } 72 | ``` 73 | 74 | ### Continued Development 75 | 76 | - Adding additional features such as filtering and sorting options for improved user navigation 77 | - Integrating backend functionality to enable dynamic content loading based on user preferences 78 | - Enhancing accessibility features to ensure a smooth experience for all users 79 | 80 | The continuously learning journey of a programmer never ends. This project made me realize that there are many concepts that I need to work upon including fundamentals like flex-box and its properties, to more complex concepts like working with fetch and async await in JavaScript. These areas are some that I think I need to work more upon in the upcoming future as they highlight some of the most significant regions of web development that are important for every developer to know of. 81 | 82 | These key points mentioned here will help me grow accountable and consistent towards improving at writing good quality code and be a successful full stack developer one day. 83 | 84 | ### Useful Resources 85 | 86 | - [MDN Web Docs](https://developer.mozilla.org/) - Comprehensive documentation for web development technologies 87 | - [CSS-Tricks](https://css-tricks.com/) - Helpful tips and tricks for CSS and web design 88 | - [JavaScript.info](https://javascript.info/) - In-depth tutorials and resources for learning JavaScript 89 | - [Harkirat Singh course notes](https://github.com/SartHak-0-Sach/harkirat-singh-course_code_and_notes) - I have added notes of all lectures along with code and lecture insights of all weeks along with bonus lectures to help you all as much as I can. 90 | - [My development code and notes](https://github.com/SartHak-0-Sach/cwh-web-dev-playlist_code_and_notes) - These are my notes that I made while working on my development skills in initial days and did these courses. Make sure to star the repository if you like it.✨💫 91 | - [MDN documentation hover state for CSS](https://developer.mozilla.org/en-US/docs/Web/CSS/:hover) - This is an amazing article which helped me finally understand hover states. I'd recommend it to anyone still learning this concept. 92 | 93 | ## Author 94 | 95 | Sarthak Sachdev 96 | - Website - [Sarthak Sachdev](https://itsmesarthak.netlify.app/) 97 | - LeetCode - [@sarthak_sachdev](https://leetcode.com/u/sarthak_sachdev/) 98 | - Twitter - [@sarthak_sach69](https://www.twitter.com/sarthak_sach69) 99 | 100 | ## Acknowledgments 101 | 102 | I feel like the solutions provided on the website and the continuous doubt solving by industry experts on discord for free is something that is unmatched by anyone else and need to be acknowledged for their efforts in improving me as a developer by suggesting the best practices in your respective tech stack. 103 | 104 | ## Got feedback for me? 105 | 106 | I love receiving feedback! I am always looking to improve my code and take up new innovative ideas to work upon. So if you have anything you'd like to mention, please email 'hi' at saarsaach30[at]gmail[dot]com. 107 | 108 | If you liked this project make sure to spread the word and share it with all your friends. 109 | 110 | **Explore the options for your next ride with the Three Column Preview Card Component.** 🚗🛣️✨ 111 | -------------------------------------------------------------------------------- /nextjs-code/README.md: -------------------------------------------------------------------------------- 1 | # Three Column Preview Card Component 2 | 3 | ## Explore the options for your next ride with the Three Column Preview Card Component. Whether it's a sedan, SUV, or luxury car, find the perfect match for your journey. 4 | 5 | ## Table of Contents 6 | 7 | - [Overview](#overview) 8 | - [The Challenge](#the-challenge) 9 | - [Screenshot](#screenshot) 10 | - [Links](#links) 11 | - [My Process](#my-process) 12 | - [Built With](#built-with) 13 | - [What I Learned](#what-i-learned) 14 | - [Continued Development](#continued-development) 15 | - [Useful Resources](#useful-resources) 16 | - [Author](#author) 17 | - [Acknowledgments](#acknowledgments) 18 | - [Got Feedback for Me?](#got-feedback-for-me) 19 | 20 | ## Overview 21 | 22 | ### The Challenge 23 | 24 | Explore the options for your next ride with the Three Column Preview Card Component. Whether it's a sedan, SUV, or luxury car, find the perfect match for your journey. 25 | 26 | ### Screenshot 27 | 28 | ![Design Preview](./design/active-states.jpg) 29 | 30 | ### Links 31 | 32 | - Solution URL: [GitHub Repository](https://github.com/SartHak-0-Sach/Three-column-preview-card_frontend) 33 | - Live Site URL: [Live Site](https://three-column-card-frontend.netlify.app/) 34 | 35 | ## My Process 36 | 37 | ### Built With 38 | 39 | - HTML5 40 | - CSS3 41 | - JavaScript 42 | 43 | You will find all the required assets in the `/design` folder. The assets are already optimized. 44 | 45 | There is also a `style-guide.md` file containing the information you'll need, such as color palette and fonts. 46 | 47 | ### What I Learned 48 | 49 | - Designing a visually appealing card layout for showcasing different options 50 | - Implementing hover effects for interactive elements to enhance user experience 51 | - Creating a responsive design for seamless viewing on various devices 52 | 53 | code snippet I am proud of- 54 | ```css 55 | .feature__btn { 56 | cursor: pointer; 57 | margin-top: 8.2rem; 58 | margin-left: 0.15rem; 59 | font-size: 1.57rem; 60 | padding: 1.5rem 3rem; 61 | border-radius: 10rem; 62 | border: none; 63 | background: var(--very-light-gray-background-headings-buttons); 64 | font-weight: 600; 65 | transition: all 0.15s ease; 66 | } 67 | 68 | .feature__btn:hover { 69 | background: transparent; 70 | outline: 1px solid var(--very-light-gray-background-headings-buttons); 71 | } 72 | ``` 73 | 74 | ### Continued Development 75 | 76 | - Adding additional features such as filtering and sorting options for improved user navigation 77 | - Integrating backend functionality to enable dynamic content loading based on user preferences 78 | - Enhancing accessibility features to ensure a smooth experience for all users 79 | 80 | The continuously learning journey of a programmer never ends. This project made me realize that there are many concepts that I need to work upon including fundamentals like flex-box and its properties, to more complex concepts like working with fetch and async await in JavaScript. These areas are some that I think I need to work more upon in the upcoming future as they highlight some of the most significant regions of web development that are important for every developer to know of. 81 | 82 | These key points mentioned here will help me grow accountable and consistent towards improving at writing good quality code and be a successful full stack developer one day. 83 | 84 | ### Useful Resources 85 | 86 | - [MDN Web Docs](https://developer.mozilla.org/) - Comprehensive documentation for web development technologies 87 | - [CSS-Tricks](https://css-tricks.com/) - Helpful tips and tricks for CSS and web design 88 | - [JavaScript.info](https://javascript.info/) - In-depth tutorials and resources for learning JavaScript 89 | - [Harkirat Singh course notes](https://github.com/SartHak-0-Sach/harkirat-singh-course_code_and_notes) - I have added notes of all lectures along with code and lecture insights of all weeks along with bonus lectures to help you all as much as I can. 90 | - [My development code and notes](https://github.com/SartHak-0-Sach/cwh-web-dev-playlist_code_and_notes) - These are my notes that I made while working on my development skills in initial days and did these courses. Make sure to star the repository if you like it.✨💫 91 | - [MDN documentation hover state for CSS](https://developer.mozilla.org/en-US/docs/Web/CSS/:hover) - This is an amazing article which helped me finally understand hover states. I'd recommend it to anyone still learning this concept. 92 | 93 | ## Author 94 | 95 | Sarthak Sachdev 96 | - Website - [Sarthak Sachdev](https://itsmesarthak.netlify.app/) 97 | - LeetCode - [@sarthak_sachdev](https://leetcode.com/u/sarthak_sachdev/) 98 | - Twitter - [@sarthak_sach69](https://www.twitter.com/sarthak_sach69) 99 | 100 | ## Acknowledgments 101 | 102 | I feel like the solutions provided on the website and the continuous doubt solving by industry experts on discord for free is something that is unmatched by anyone else and need to be acknowledged for their efforts in improving me as a developer by suggesting the best practices in your respective tech stack. 103 | 104 | ## Got feedback for me? 105 | 106 | I love receiving feedback! I am always looking to improve my code and take up new innovative ideas to work upon. So if you have anything you'd like to mention, please email 'hi' at saarsaach30[at]gmail[dot]com. 107 | 108 | If you liked this project make sure to spread the word and share it with all your friends. 109 | 110 | **Explore the options for your next ride with the Three Column Preview Card Component.** 🚗🛣️✨ 111 | -------------------------------------------------------------------------------- /react-code/README.md: -------------------------------------------------------------------------------- 1 | # Three Column Preview Card Component 2 | 3 | ## Explore the options for your next ride with the Three Column Preview Card Component. Whether it's a sedan, SUV, or luxury car, find the perfect match for your journey. 4 | 5 | ## Table of Contents 6 | 7 | - [Overview](#overview) 8 | - [The Challenge](#the-challenge) 9 | - [Screenshot](#screenshot) 10 | - [Links](#links) 11 | - [My Process](#my-process) 12 | - [Built With](#built-with) 13 | - [What I Learned](#what-i-learned) 14 | - [Continued Development](#continued-development) 15 | - [Useful Resources](#useful-resources) 16 | - [Author](#author) 17 | - [Acknowledgments](#acknowledgments) 18 | - [Got Feedback for Me?](#got-feedback-for-me) 19 | 20 | ## Overview 21 | 22 | ### The Challenge 23 | 24 | Explore the options for your next ride with the Three Column Preview Card Component. Whether it's a sedan, SUV, or luxury car, find the perfect match for your journey. 25 | 26 | ### Screenshot 27 | 28 | ![Design Preview](./design/active-states.jpg) 29 | 30 | ### Links 31 | 32 | - Solution URL: [GitHub Repository](https://github.com/SartHak-0-Sach/Three-column-preview-card_frontend) 33 | - Live Site URL: [Live Site](https://three-column-card-frontend.netlify.app/) 34 | 35 | ## My Process 36 | 37 | ### Built With 38 | 39 | - HTML5 40 | - CSS3 41 | - JavaScript 42 | 43 | You will find all the required assets in the `/design` folder. The assets are already optimized. 44 | 45 | There is also a `style-guide.md` file containing the information you'll need, such as color palette and fonts. 46 | 47 | ### What I Learned 48 | 49 | - Designing a visually appealing card layout for showcasing different options 50 | - Implementing hover effects for interactive elements to enhance user experience 51 | - Creating a responsive design for seamless viewing on various devices 52 | 53 | code snippet I am proud of- 54 | ```css 55 | .feature__btn { 56 | cursor: pointer; 57 | margin-top: 8.2rem; 58 | margin-left: 0.15rem; 59 | font-size: 1.57rem; 60 | padding: 1.5rem 3rem; 61 | border-radius: 10rem; 62 | border: none; 63 | background: var(--very-light-gray-background-headings-buttons); 64 | font-weight: 600; 65 | transition: all 0.15s ease; 66 | } 67 | 68 | .feature__btn:hover { 69 | background: transparent; 70 | outline: 1px solid var(--very-light-gray-background-headings-buttons); 71 | } 72 | ``` 73 | 74 | ### Continued Development 75 | 76 | - Adding additional features such as filtering and sorting options for improved user navigation 77 | - Integrating backend functionality to enable dynamic content loading based on user preferences 78 | - Enhancing accessibility features to ensure a smooth experience for all users 79 | 80 | The continuously learning journey of a programmer never ends. This project made me realize that there are many concepts that I need to work upon including fundamentals like flex-box and its properties, to more complex concepts like working with fetch and async await in JavaScript. These areas are some that I think I need to work more upon in the upcoming future as they highlight some of the most significant regions of web development that are important for every developer to know of. 81 | 82 | These key points mentioned here will help me grow accountable and consistent towards improving at writing good quality code and be a successful full stack developer one day. 83 | 84 | ### Useful Resources 85 | 86 | - [MDN Web Docs](https://developer.mozilla.org/) - Comprehensive documentation for web development technologies 87 | - [CSS-Tricks](https://css-tricks.com/) - Helpful tips and tricks for CSS and web design 88 | - [JavaScript.info](https://javascript.info/) - In-depth tutorials and resources for learning JavaScript 89 | - [Harkirat Singh course notes](https://github.com/SartHak-0-Sach/harkirat-singh-course_code_and_notes) - I have added notes of all lectures along with code and lecture insights of all weeks along with bonus lectures to help you all as much as I can. 90 | - [My development code and notes](https://github.com/SartHak-0-Sach/cwh-web-dev-playlist_code_and_notes) - These are my notes that I made while working on my development skills in initial days and did these courses. Make sure to star the repository if you like it.✨💫 91 | - [MDN documentation hover state for CSS](https://developer.mozilla.org/en-US/docs/Web/CSS/:hover) - This is an amazing article which helped me finally understand hover states. I'd recommend it to anyone still learning this concept. 92 | 93 | ## Author 94 | 95 | Sarthak Sachdev 96 | - Website - [Sarthak Sachdev](https://itsmesarthak.netlify.app/) 97 | - LeetCode - [@sarthak_sachdev](https://leetcode.com/u/sarthak_sachdev/) 98 | - Twitter - [@sarthak_sach69](https://www.twitter.com/sarthak_sach69) 99 | 100 | ## Acknowledgments 101 | 102 | I feel like the solutions provided on the website and the continuous doubt solving by industry experts on discord for free is something that is unmatched by anyone else and need to be acknowledged for their efforts in improving me as a developer by suggesting the best practices in your respective tech stack. 103 | 104 | ## Got feedback for me? 105 | 106 | I love receiving feedback! I am always looking to improve my code and take up new innovative ideas to work upon. So if you have anything you'd like to mention, please email 'hi' at saarsaach30[at]gmail[dot]com. 107 | 108 | If you liked this project make sure to spread the word and share it with all your friends. 109 | 110 | **Explore the options for your next ride with the Three Column Preview Card Component.** 🚗🛣️✨ 111 | --------------------------------------------------------------------------------