Git Product home page Git Product logo

kittty0520 / responsive-site Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7.38 MB

๐Ÿ˜Š์›น์Šคํ† ๋ฆฌ๋ณด์ด๋‹˜์˜ ๋ฐ˜์‘ํ˜• ์‚ฌ์ดํŠธ ๋งŒ๋“ค๊ธฐ๋ฅผ ํด๋ก ์ฝ”๋”ฉํ•œ ์‚ฌ์ดํŠธ์ž…๋‹ˆ๋‹ค!

Home Page: https://kittty0520.github.io/Responsive-Site/

CSS 43.79% HTML 50.03% JavaScript 6.18%

responsive-site's Introduction

webstoryboy - responsive site (by ์›น์Šคํ† ๋ฆฌ๋ณด์ด)

๐ŸŽฏ๋ชฉ์ 

HTML์˜ ๊ธฐ๋ณธ์š”์†Œ๋“ค๊ณผ ์‹œ๋ฉ˜ํ‹ฑ ํƒœ๊ทธ๋ฅผ ์“ฐ๋Š” ๋ฐฉ๋ฒ•, ๋ฐ˜์‘ํ˜• ์‚ฌ์ดํŠธ๋ฅผ ๋งŒ๋“ค์–ด ๋ณด๋Š” ์—ฐ์Šต์„ ํ•˜๊ธฐ ์œ„ํ•ด ํด๋ก ์ฝ”๋”ฉํ–ˆ์Šต๋‹ˆ๋‹ค!๐Ÿ˜€


๐Ÿ“–์ˆœ์„œ

  1. Header ์˜์—ญ -๋ฐ˜์‘ํ˜•
  2. ์ „์ฒด ๋ฉ”๋‰ด
  3. ์ปจํ…์ธ  ๋ ˆ์ด์•„์›ƒ, ์ปจํ…์ธ  ํƒ€์ดํ‹€
  4. ๋ฉ”๋‰ด, ๋ฉ”๋‰ด ๋ฐ˜์‘ํ˜•
  5. ๊ฒŒ์‹œํŒ ํ•œ์ค„ ํšจ๊ณผ, ๋‘์ค„ ํšจ๊ณผ
  6. ๋ธ”๋กœ๊ทธ ์˜์—ญ ๊ณ ํ•ด์ƒ๋„ ์ด๋ฏธ์ง€
  7. ์ด๋ฏธ์ง€ ์Šฌ๋ผ์ด๋“œ
  8. ๋ผ์ดํŠธ ๋ฐ•์Šค -lightGallery plugin
  9. ํ•„ํ„ฐ ์ด๋ฒคํŠธ
  10. ๋น„๋””์˜ค
  11. Side ์ปจํ…์ธ 
  12. Footer ์˜์—ญ
  13. ์ ‘๊ธฐ/ํŽผ์น˜๊ธฐ ์Šคํฌ๋ฆฝํŠธ
  14. ์‚ฌ์ด๋“œ ์ดํŽ™ํŠธ - hover effect

๐Ÿ“๋ฐฐ์šด์ 


  • HTML์š”์†Œ

  • CSS์š”์†Œ


    • box-shadow ์†์„ฑ์„ inset์œผ๋กœ ์„ค์ •ํ•˜์—ฌ mouseover์‹œ ๋ฐฐ๊ฒฝ์ƒ‰์ด ๋ณ€ํ•˜๋Š” hover effect๋ฅผ ์ค€๋‹ค.

    • ํ•œ์ค„ ํšจ๊ณผ

      .ํด๋ž˜์Šค์ด๋ฆ„ {
      	overflow: hidden;
      	text-overflow: ellipsis;
      	white-space: nowrap;
      }

    • ๋‘์ค„ ํšจ๊ณผ

       {
      	overflow: hidden;
      	text-overflow: ellipsis;
      	display: -webkit-box;
      	-webkit-box-orient: vertical;
      	-webkit-line-clamp: 2;
      }

    • ๋””์Šคํ”Œ๋ ˆ์ด ํ•ด์ƒ๋„์— ๋”ฐ๋ฅธ ์ด๋ฏธ์ง€ ํ‘œํ˜„

      • img์˜ sreset ์†์„ฑ

        <img
        	src="img/[email protected]"
        	srcset="img/[email protected] 1x, img/[email protected] 2x, img/[email protected] 3x"
        	alt="์ด๋ฏธ์ง€"
        	width="100%"
        />

      • ๋ฏธ๋””์–ด ์ฟผ๋ฆฌ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ํ•ด์ƒ๋„์— ๋”ฐ๋ผ ๋ฐฐ๊ฒฝ ์ด๋ฏธ์ง€ ๊ฒฝ๋กœ๋ฅผ ๋ฐ”๊ฟˆ

        .blog2 .img_retina {
        	background-image: url('../img/[email protected]');
        	background-size: cover;
        }
        @media only screen and (-webkit-min-device-pixel-ratio: 2),
        	only screen and (min-device-pixel-ratio: 2),
        	only screen and (min-resolution: 2dppx) {
        	.blog2 .img_retina {
        		background-image: url('../img/[email protected]');
        	}
        }
        @media only screen and (-webkit-min-device-pixel-ratio: 3),
        	only screen and (min-device-pixel-ratio: 3),
        	only screen and (min-resolution: 3dppx) {
        	.blog2 .img_retina {
        		background-image: url('../img/blog3*@3.jpg');
        	}
        }

      • CSS Filter ์†์„ฑ์„ ์ด์šฉํ•˜์—ฌ ๋ฐฐ๊ฒฝ ์ด๋ฏธ์ง€์— ํšจ๊ณผ๋ฅผ ์คŒ


      • ์นด๋“œ ๋’ค์ง‘๊ธฐ (3D CSS ์†์„ฑ)

        • perspective: ์š”์†Œ์— ์›๊ทผ๊ฐ์„ ๋ถ€์—ฌ (600px)

        • transform-style: preserve-3D => ์š”์†Œ๋ฅผ 3D ๊ณต๊ฐ„์— ๋ฐฐ์น˜

        • backface-visivility: ์š”์†Œ์˜ ๋’ท๋ฉด์ด ์‚ฌ์šฉ์ž๋ฅผ ํ–ฅํ•  ๋•Œ ๋ณด์—ฌ์•ผ ํ•˜๋Š”์ง€ ์ง€์ • (hidden)

        • transform: rotateY() ์†์„ฑ์„ ์ด์šฉํ•˜์—ฌ ๋’ค์ง‘๋Š” ์›€์ง์ž„์„ ๊ตฌํ˜„ (0 => 180deg, -180deg => 0)


  • JavaScript(jQuery)

    • ์ด๋ฏธ์ง€ ๊ณต์œ ํ•˜๊ธฐ

      • facebook : http://www.facebook.com/sharer.php?u={ํŽ˜์ด์ง€ ๋งํฌ}&t={ํŽ˜์ด์ง€์ œ๋ชฉ}

      • ํŽ˜์ด์Šค๋ถ ์•„์ด์ฝ˜์„ ํด๋ฆญํ–ˆ์„ ๋•Œ

        $('.facebook').click(function (e) {
        	e.preventDefault();
        	window.open(
        		'https://www.facebook.com/sharer/sharer.php?u=' +
        			encodeURIComponent(document.URL) +
        			'&t=' +
        			encodeURIComponent(document.title),
        		'facebooksharedialog',
        		'menubar=no, toolbar=no, resizable=yes, scrollbars=yes, height=300, width=600'
        	);
        });

      • encodeURIComponent() : ๋ฌธ์ž์—ด์„ ์ธ์ฝ”๋”ฉํ•˜์—ฌ URI๋กœ ๋ฐ์ดํ„ฐ๋ฅผ ์ „์†ก


    • ์ ‘๊ธฐ/ํŽผ์น˜๊ธฐ

      $('.btn').click(function (e) {
      	e.preventDefault();
      	$('.nav').slideToggle();
      	$('.btn').toggleClass('open');
      
      	if ($('.btn').hasClass('open')) {
      		//open์ด ์žˆ์„ ๋•Œ
      		$('.btn').find('i').attr('class', 'fa fa-angle-up');
      	} else {
      		//open์ด ์—†์„ ๋•Œ
      		$('.btn').find('i').attr('class', 'fa fa-angle-down');
      	}
      });

responsive-site's People

Contributors

kittty0520 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.