25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

139 lines
5.9 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>Zocial | CSS3 Button Set</title>
  6. <link rel="stylesheet" href="site/core.css" media="screen" charset="utf-8" />
  7. <link rel="stylesheet" href="css/zocial.css" media="screen" charset="utf-8" />
  8. <link href='http://fonts.googleapis.com/css?family=Pompiere' rel='stylesheet'>
  9. <!--[if IE]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
  10. </head>
  11. <body>
  12. <h1>Good buttons <br />make good neighbours.</h1>
  13. <div class="dingbat"></div>
  14. <a href="sample.html">
  15. <section id="button-sample">
  16. <span>Hundred CSS buttons and icons lovingly made for your home.</span>
  17. </section>
  18. </a>
  19. <section id="purchase-area">
  20. <div class="cta">
  21. <a href="http://github.com/samcollins/css-social-buttons/" class="zocial github" target="_blank"><span>Get 'em on Github</span></a>
  22. <p class="subtxt"><a href="http://zocialbuttons.com/" target="_blank">Looking for the SASS framework? Get it here!</a></p>
  23. </div>
  24. <div class="aside">
  25. <span>$24.00</span>
  26. <h2>100 CSS3 font-face <br/>vector icon buttons</h2>
  27. <p>For the obsessive compulsive, <br />precocious designers of the web.</p>
  28. </div>
  29. </section>
  30. <section id="labels">
  31. <article>
  32. <h2>Necessity</h2>
  33. <p>Utilitarian minds amongst you will wonder if such elegant buttons may improve conversions amongst your users. I conservatively assume that these finely crafted treasures will do no such thing—but rather, that they will remove the fickle distractions of inconsistent buttons and clear the way for your creative hands.</p>
  34. </article>
  35. <article>
  36. <h2>Reliability</h2>
  37. <p>Pessimists will argue that the time has not yet arrived to embrace vector methods where image sprites once reigned superior. Perhaps it will be of some comfort to know that the first version of these buttons are used by WordPress and can be found in over 200,000 new blog posts every morning.</p>
  38. </article>
  39. <article>
  40. <h2>Value</h2>
  41. <p>Entrepreneurs will indulge in the principle that all good work will be rewarded and before finishing this sentence, will have already calculated the cost-benefit of purchasing these items. For those more cash-strapped, you will find the first version of these buttons deep inside the <a href="https://github.com/samcollins/css-social-buttons" target="_blank">crypts of github</a>.</p>
  42. </article>
  43. </section>
  44. <div class="dingbat"></div>
  45. <section id="demo-area">
  46. <div id="demo">
  47. <button class="zocial googleplus">Sign in with Google+</button>
  48. <form action="">
  49. <input type="range" id="font-size-range" value="16" min="12" step="1" max="32" />
  50. <input type="text" id="button-label-input" placeholder="Sign in with Google+" />
  51. <div>
  52. <input type="radio" name="demo" id="select-button" value="button" checked="checked" />
  53. <label for="select-button">button</label>
  54. </div>
  55. <div>
  56. <input type="radio" name="demo" id="select-icon" value="icon" />
  57. <label for="select-icon">icon</label>
  58. </div>
  59. <p>Font size: <span id="font-size-display">16px</span></p>
  60. <p>Button text</p>
  61. <p>Type</p>
  62. </form>
  63. </div>
  64. <h2>TRY IT YOURSELF</h2>
  65. <p>Editable button text</p>
  66. <p>Editable size</p>
  67. <p>One version for all resolutions</p>
  68. <p>100% vector icon with @font-face</p>
  69. <p>Cross-browser support</p>
  70. <p>Gracefully degrades (IE6, IE7)</p>
  71. <p>Button &amp; Icon styles</p>
  72. </section>
  73. <section id="howto" class="compact">
  74. <article>
  75. <h2>Examples</h2>
  76. <p>These buttons require no extra markup and are designed with semantics in mind. <a href="#" id="show-examples">Show examples.</a></p>
  77. <h2>Create a Facebook button</h2>
  78. <p>On the parent element, add a class of "zocial" and a class for the button you need, in this case "facebook". Be sure to wrap your button text in a span tag as shown:</p>
  79. <code>
  80. &lt;button class="zocial facebook"&gt;Sign in with Facebook&lt;/button&gt;
  81. </code>
  82. <h2>Create a LinkedIn button</h2>
  83. <p>The parent element can be any element, this time we're using &lt;a&gt; to create a LinkedIn button:</p>
  84. <code>
  85. &lt;a class="zocial linkedin"&gt;Sign in with LinkedIn&lt;/a&gt;
  86. </code>
  87. <h2>Resize the button</h2>
  88. <p>Change the size of the button by adjusting the font-size of the parent element. The default font-size is 16px.</p>
  89. <code>
  90. &lt;button class="zocial skype" style="font-size: 22px"&gt;Skype Me&lt;/button&gt;
  91. </code>
  92. <h2>Show the icon version of the button</h2>
  93. <p>Simply add a class of "icon".</p>
  94. <code>
  95. &lt;a class="zocial twitter icon"&gt;Follow me on Twitter&lt;/a&gt;
  96. </code>
  97. </article>
  98. </section>
  99. <div class="dingbat"></div>
  100. <footer>
  101. <p>Made by <a href="http://smcllns.com" target="_blank">smcllns</a></p>
  102. <p>circa 2011</p>
  103. </footer>
  104. <script src="//code.jquery.com/jquery-1.5.2.min.js" charset="utf-8"></script>
  105. <script src="site/size-change.js" charset="utf-8"></script>
  106. <script src="site/html5slider.js" charset="utf-8"></script>
  107. <script>
  108. var _gaq = _gaq || [];
  109. _gaq.push(['_setAccount', 'UA-25061452-1']);
  110. _gaq.push(['_setDomainName', 'smcllns.com']);
  111. _gaq.push(['_setAllowHash', 'false']);
  112. _gaq.push(['_trackPageview']);
  113. _gaq.push(['_trackPageLoadTime']);
  114. (function() {
  115. var ga = document.createElement('script'); ga.async = true;
  116. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  117. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  118. })();
  119. </script>
  120. </body>
  121. </html>