├── README.md ├── Text Responsive fruit website.txt ├── assets ├── css │ └── styles.css ├── img │ ├── about-fruits.png │ ├── branch-1.png │ ├── branch-2.png │ ├── enjoy-1.png │ ├── enjoy-2.png │ ├── enjoy-3.png │ ├── favicon.png │ ├── fruit-line-1.png │ ├── fruit-line-2.png │ ├── fruit-line-3.png │ ├── home-fruits.png │ ├── join-bg.png │ ├── leaf.png │ ├── logo.png │ ├── popular-1.png │ ├── popular-2.png │ ├── popular-3.png │ ├── popular-4.png │ ├── popular-5.png │ └── popular-6.png └── js │ ├── main.js │ └── scrollreveal.min.js ├── index.html └── preview.png /README.md: -------------------------------------------------------------------------------- 1 | # Responsive Fruit Website 2 | ## [Watch it on youtube](https://youtu.be/7n7ofxoCAxo) 3 | ### Responsive Fruit Website 4 | 5 | - Responsive Fruit Website Design Using HTML CSS & JavaScript 6 | - Contains animations when scrolling. 7 | - Smooth scrolling in each section. 8 | - Includes a dark & light theme. 9 | - Developed first with the Mobile First methodology, then for desktop. 10 | - Compatible with all mobile devices and with a beautiful and pleasant user interface. 11 | 12 | 💙 Join the channel to see more videos like this. [Bedimcode](https://www.youtube.com/@Bedimcode) 13 | 14 | ![preview img](/preview.png) 15 | -------------------------------------------------------------------------------- /Text Responsive fruit website.txt: -------------------------------------------------------------------------------- 1 | ========== HEADER ========== 2 | .nav__logo 3 | Fruit 4 | 5 | .nav__link 6 | Home - About Us - Popular - Join Us 7 | 8 | 9 | ========== HOME ========== 10 | .home__title 11 | Enjoy The
12 | Best Fresh
13 | Fruits 14 | 15 | .home__description 16 | Enjoy the best organic fruits harvested with 17 | the best possible quality, obtaining unique 18 | and delicious flavors. 19 | 20 | .button 21 | Order Fruit Now 22 | 23 | 24 | ========== ENJOY ========== 25 | .section__title 26 | Eat And Enjoy 27 | 28 | .enjoy__title .enjoy__subtitle 29 | Healthy 30 | Tropical Fruit 31 | 32 | Delicious 33 | Field Fruit 34 | 35 | Organic 36 | Tropical Fruit 37 | 38 | 39 | ========== ABOUT US ========== 40 | .section__title 41 | We Provide
42 | Healthy Fruits 43 | 44 | .about__description 45 | The fruits come to us from the best 46 | harvests, planted with the care required to 47 | obtain the best quality fruit, enjoying its 48 | flavors and taking care of your health. 49 | 50 | .button 51 | Know More 52 | 53 | 54 | ========== POPULAR ========== 55 | .section__title 56 | Popular Fruits 57 | 58 | .popular__title .popular__subtitle .popular__price 59 | Apple 60 | Organic Fruit 61 | $4.00 62 | 63 | Watermelon 64 | Organic Fruit 65 | $7.00 66 | 67 | Pineapple 68 | Organic Fruit 69 | $5.00 70 | 71 | Banana 72 | Organic Fruit 73 | $3.00 74 | 75 | Strawberry 76 | Organic Fruit 77 | $8.00 78 | 79 | Mango 80 | Organic Fruit 81 | $7.00 82 | 83 | 84 | ========== JOIN US ========== 85 | .section__title 86 | Receive The
87 | Best Fruits 88 | 89 | .join__description 90 | Get up to date with the latest fruit 91 | harvests and information from us. 92 | 93 | .join__input placeholder 94 | Enter your email 95 | 96 | .join__button 97 | Subscribe Now 98 | 99 | 100 | ========== FOOTER ========== 101 | .footer__logo 102 | Fruit 103 | 104 | .footer__description 105 | Eat healthy, choose
106 | the best fruits. 107 | 108 | footer__title .footer__link 109 | Company 110 | FAQs 111 | About Us 112 | Contact Us 113 | 114 | News 115 | Features 116 | Testimonial 117 | Videos 118 | 119 | Address 120 | Av. Hacienda 1234
121 | Lima 4321, Perú 122 | 9AM - 11PM 123 | 124 | Social Media 125 | 126 | .footer__social-link 127 | https://www.facebook.com/ 128 | https://www.instagram.com/ 129 | https://www.youtube.com/ 130 | 131 | .footer__copy 132 | © All Rights Reserved By Bedimcode 133 | -------------------------------------------------------------------------------- /assets/css/styles.css: -------------------------------------------------------------------------------- 1 | /*=============== GOOGLE FONTS ===============*/ 2 | @import url("https://fonts.googleapis.com/css2?family=Cherry+Bomb+One&family=Poppins:wght@400;500;600&display=swap"); 3 | 4 | /*=============== VARIABLES CSS ===============*/ 5 | :root { 6 | --header-height: 3.5rem; 7 | 8 | /*========== Colors ==========*/ 9 | /*Color mode HSL(hue, saturation, lightness)*/ 10 | --first-color: hsl(140, 40%, 48%); 11 | --first-color-alt: hsl(140, 40%, 44%); 12 | --title-color: hsl(140, 4%, 12%); 13 | --text-color: hsl(140, 4%, 40%); 14 | --text-color-light: hsl(140, 4%, 64%); 15 | --white-color: hsl(0, 0%, 100%); 16 | --body-color: hsl(0, 0%, 100%); 17 | --container-color: hsl(0, 0%, 95%); 18 | --shadow-img: drop-shadow(0 8px 12px hsla(0, 0%, 0%, .2)); 19 | --filter-img: invert(1); 20 | 21 | /*========== Font and typography ==========*/ 22 | /*.5rem = 8px | 1rem = 16px ...*/ 23 | --body-font: "Poppins", sans-serif; 24 | --second-font: "Cherry Bomb One", cursive; 25 | --biggest-font-size: 3rem; 26 | --big-font-size: 2rem; 27 | --h1-font-size: 1.5rem; 28 | --h2-font-size: 1.25rem; 29 | --h3-font-size: 1rem; 30 | --normal-font-size: .938rem; 31 | --small-font-size: .813rem; 32 | 33 | /*========== Font weight ==========*/ 34 | --font-regular: 400; 35 | --font-medium: 500; 36 | --font-semi-bold: 600; 37 | 38 | /*========== z index ==========*/ 39 | --z-tooltip: 10; 40 | --z-fixed: 100; 41 | } 42 | 43 | /*========== Responsive typography ==========*/ 44 | @media screen and (min-width: 1150px) { 45 | :root { 46 | --biggest-font-size: 5.5rem; 47 | --big-font-size: 3rem; 48 | --h1-font-size: 2.25rem; 49 | --h2-font-size: 1.5rem; 50 | --h3-font-size: 1.25rem; 51 | --normal-font-size: 1rem; 52 | --small-font-size: .875rem; 53 | } 54 | } 55 | 56 | /*=============== BASE ===============*/ 57 | * { 58 | box-sizing: border-box; 59 | padding: 0; 60 | margin: 0; 61 | } 62 | 63 | html { 64 | scroll-behavior: smooth; 65 | } 66 | 67 | body, 68 | input, 69 | button { 70 | font-family: var(--body-font); 71 | font-size: var(--normal-font-size); 72 | } 73 | 74 | body { 75 | background-color: var(--body-color); 76 | color: var(--text-color); 77 | transition: background-color .4s; 78 | } 79 | 80 | input, 81 | button { 82 | border: none; 83 | outline: none; 84 | } 85 | 86 | h1, h2, h3, h4 { 87 | color: var(--title-color); 88 | font-weight: var(--font-medium); 89 | line-height: 100%; 90 | } 91 | 92 | ul { 93 | list-style: none; 94 | } 95 | 96 | a { 97 | text-decoration: none; 98 | } 99 | 100 | img { 101 | display: block; 102 | max-width: 100%; 103 | height: auto; 104 | } 105 | 106 | /*=============== THEME ===============*/ 107 | 108 | 109 | /*========== Variables Dark Theme ==========*/ 110 | 111 | 112 | 113 | /*========== 114 | Color changes in some parts of 115 | the website, in dark theme 116 | ==========*/ 117 | 118 | 119 | /*=============== REUSABLE CSS CLASSES ===============*/ 120 | .container { 121 | max-width: 1120px; 122 | margin-inline: 1.5rem; 123 | } 124 | 125 | .grid { 126 | display: grid; 127 | gap: 1.5rem; 128 | } 129 | 130 | .section { 131 | padding-block: 5rem 1rem; 132 | } 133 | 134 | .section__title { 135 | font-size: var(--big-font-size); 136 | font-family: var(--second-font); 137 | text-align: center; 138 | margin-bottom: 1rem; 139 | } 140 | 141 | .main { 142 | overflow: hidden; /* For animation ScrollReveal */ 143 | } 144 | 145 | /*=============== HEADER & NAV ===============*/ 146 | 147 | 148 | /* Navigation for mobile devices */ 149 | 150 | 151 | /* Show menu */ 152 | 153 | 154 | /* Add shadow header */ 155 | 156 | 157 | /* Active link */ 158 | 159 | 160 | /*=============== HOME ===============*/ 161 | 162 | 163 | /*=============== BUTTON ===============*/ 164 | 165 | 166 | /*=============== ENJOY ===============*/ 167 | 168 | 169 | /*=============== ABOUT ===============*/ 170 | 171 | 172 | /*=============== POPULAR ===============*/ 173 | 174 | 175 | /*=============== JOIN ===============*/ 176 | 177 | 178 | /*=============== FOOTER ===============*/ 179 | 180 | 181 | /*=============== SCROLL BAR ===============*/ 182 | 183 | 184 | /*=============== SCROLL UP ===============*/ 185 | 186 | 187 | /* Show Scroll Up */ 188 | 189 | 190 | /*=============== BREAKPOINTS ===============*/ 191 | /* For small devices */ 192 | 193 | 194 | /* For medium devices */ 195 | 196 | 197 | /* For large devices */ 198 | -------------------------------------------------------------------------------- /assets/img/about-fruits.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bedimcode/responsive-fruit-website/52d78874517a748f5279bb1016c5d03b9e815b81/assets/img/about-fruits.png -------------------------------------------------------------------------------- /assets/img/branch-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bedimcode/responsive-fruit-website/52d78874517a748f5279bb1016c5d03b9e815b81/assets/img/branch-1.png -------------------------------------------------------------------------------- /assets/img/branch-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bedimcode/responsive-fruit-website/52d78874517a748f5279bb1016c5d03b9e815b81/assets/img/branch-2.png -------------------------------------------------------------------------------- /assets/img/enjoy-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bedimcode/responsive-fruit-website/52d78874517a748f5279bb1016c5d03b9e815b81/assets/img/enjoy-1.png -------------------------------------------------------------------------------- /assets/img/enjoy-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bedimcode/responsive-fruit-website/52d78874517a748f5279bb1016c5d03b9e815b81/assets/img/enjoy-2.png -------------------------------------------------------------------------------- /assets/img/enjoy-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bedimcode/responsive-fruit-website/52d78874517a748f5279bb1016c5d03b9e815b81/assets/img/enjoy-3.png -------------------------------------------------------------------------------- /assets/img/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bedimcode/responsive-fruit-website/52d78874517a748f5279bb1016c5d03b9e815b81/assets/img/favicon.png -------------------------------------------------------------------------------- /assets/img/fruit-line-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bedimcode/responsive-fruit-website/52d78874517a748f5279bb1016c5d03b9e815b81/assets/img/fruit-line-1.png -------------------------------------------------------------------------------- /assets/img/fruit-line-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bedimcode/responsive-fruit-website/52d78874517a748f5279bb1016c5d03b9e815b81/assets/img/fruit-line-2.png -------------------------------------------------------------------------------- /assets/img/fruit-line-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bedimcode/responsive-fruit-website/52d78874517a748f5279bb1016c5d03b9e815b81/assets/img/fruit-line-3.png -------------------------------------------------------------------------------- /assets/img/home-fruits.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bedimcode/responsive-fruit-website/52d78874517a748f5279bb1016c5d03b9e815b81/assets/img/home-fruits.png -------------------------------------------------------------------------------- /assets/img/join-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bedimcode/responsive-fruit-website/52d78874517a748f5279bb1016c5d03b9e815b81/assets/img/join-bg.png -------------------------------------------------------------------------------- /assets/img/leaf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bedimcode/responsive-fruit-website/52d78874517a748f5279bb1016c5d03b9e815b81/assets/img/leaf.png -------------------------------------------------------------------------------- /assets/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bedimcode/responsive-fruit-website/52d78874517a748f5279bb1016c5d03b9e815b81/assets/img/logo.png -------------------------------------------------------------------------------- /assets/img/popular-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bedimcode/responsive-fruit-website/52d78874517a748f5279bb1016c5d03b9e815b81/assets/img/popular-1.png -------------------------------------------------------------------------------- /assets/img/popular-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bedimcode/responsive-fruit-website/52d78874517a748f5279bb1016c5d03b9e815b81/assets/img/popular-2.png -------------------------------------------------------------------------------- /assets/img/popular-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bedimcode/responsive-fruit-website/52d78874517a748f5279bb1016c5d03b9e815b81/assets/img/popular-3.png -------------------------------------------------------------------------------- /assets/img/popular-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bedimcode/responsive-fruit-website/52d78874517a748f5279bb1016c5d03b9e815b81/assets/img/popular-4.png -------------------------------------------------------------------------------- /assets/img/popular-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bedimcode/responsive-fruit-website/52d78874517a748f5279bb1016c5d03b9e815b81/assets/img/popular-5.png -------------------------------------------------------------------------------- /assets/img/popular-6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bedimcode/responsive-fruit-website/52d78874517a748f5279bb1016c5d03b9e815b81/assets/img/popular-6.png -------------------------------------------------------------------------------- /assets/js/main.js: -------------------------------------------------------------------------------- 1 | /*=============== SHOW MENU ===============*/ 2 | 3 | 4 | /*=============== REMOVE MENU MOBILE ===============*/ 5 | 6 | 7 | /*=============== SHADOW HEADER ===============*/ 8 | 9 | 10 | /*=============== SHOW SCROLL UP ===============*/ 11 | 12 | 13 | /*=============== SCROLL SECTIONS ACTIVE LINK ===============*/ 14 | 15 | 16 | /*=============== DARK LIGHT THEME ===============*/ 17 | 18 | 19 | /*=============== SCROLL REVEAL ANIMATION ===============*/ 20 | -------------------------------------------------------------------------------- /assets/js/scrollreveal.min.js: -------------------------------------------------------------------------------- 1 | /*! @license ScrollReveal v4.0.9 2 | 3 | Copyright 2021 Fisssion LLC. 4 | 5 | Licensed under the GNU General Public License 3.0 for 6 | compatible open source projects and non-commercial use. 7 | 8 | For commercial sites, themes, projects, and applications, 9 | keep your source code private/proprietary by purchasing 10 | a commercial license from https://scrollrevealjs.org/ 11 | */ 12 | var ScrollReveal=function(){"use strict";var r={delay:0,distance:"0",duration:600,easing:"cubic-bezier(0.5, 0, 0, 1)",interval:0,opacity:0,origin:"bottom",rotate:{x:0,y:0,z:0},scale:1,cleanup:!1,container:document.documentElement,desktop:!0,mobile:!0,reset:!1,useDelay:"always",viewFactor:0,viewOffset:{top:0,right:0,bottom:0,left:0},afterReset:function(){},afterReveal:function(){},beforeReset:function(){},beforeReveal:function(){}};var n={success:function(){document.documentElement.classList.add("sr"),document.body?document.body.style.height="100%":document.addEventListener("DOMContentLoaded",function(){document.body.style.height="100%"})},failure:function(){return document.documentElement.classList.remove("sr"),{clean:function(){},destroy:function(){},reveal:function(){},sync:function(){},get noop(){return!0}}}};function o(e){return"object"==typeof window.Node?e instanceof window.Node:null!==e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName}function u(e,t){if(void 0===t&&(t=document),e instanceof Array)return e.filter(o);if(o(e))return[e];if(n=e,i=Object.prototype.toString.call(n),"object"==typeof window.NodeList?n instanceof window.NodeList:null!==n&&"object"==typeof n&&"number"==typeof n.length&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(i)&&(0===n.length||o(n[0])))return Array.prototype.slice.call(e);var n,i;if("string"==typeof e)try{var r=t.querySelectorAll(e);return Array.prototype.slice.call(r)}catch(e){return[]}return[]}function s(e){return null!==e&&e instanceof Object&&(e.constructor===Object||"[object Object]"===Object.prototype.toString.call(e))}function f(n,i){if(s(n))return Object.keys(n).forEach(function(e){return i(n[e],e,n)});if(n instanceof Array)return n.forEach(function(e,t){return i(e,t,n)});throw new TypeError("Expected either an array or object literal.")}function h(e){for(var t=[],n=arguments.length-1;0=[].concat(r.body).shift())return j.call(this,n,i,-1,t),c.call(this,e,{reveal:!0,pristine:t});if(!n.blocked.foot&&i===[].concat(o.foot).shift()&&i<=[].concat(r.body).pop())return j.call(this,n,i,1,t),c.call(this,e,{reveal:!0,pristine:t})}}function E(e){var t=Math.abs(e);if(isNaN(t))throw new RangeError("Invalid sequence interval.");this.id=b(),this.interval=Math.max(t,16),this.members=[],this.models={},this.blocked={head:!1,foot:!1}}function d(e,i,r){var o=this;this.head=[],this.body=[],this.foot=[],f(e.members,function(e,t){var n=r.elements[e];n&&n[i]&&o.body.push(t)}),this.body.length&&f(e.members,function(e,t){var n=r.elements[e];n&&!n[i]&&(t 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | Responsive fruit website - Bedimcode 17 | 18 | 19 | 20 | 23 | 24 | 25 |
26 | 27 |
28 | 29 |
30 | 31 | 32 |
33 | 34 |
35 | 36 | 37 |
38 | 39 |
40 | 41 | 42 | 45 | 46 | 47 |
48 | 49 |
50 |
51 | 52 | 53 |
54 | 55 |
56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bedimcode/responsive-fruit-website/52d78874517a748f5279bb1016c5d03b9e815b81/preview.png --------------------------------------------------------------------------------