├── sample1_website ├── scr │ ├── whale.png │ ├── jellyfish.png │ ├── octupus.png │ └── seahourse.png ├── icons │ └── fishing.svg ├── app.js ├── style.css └── index.html └── README.md /sample1_website/scr/whale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ungaaaabungaaa/Porfolio_sample1/HEAD/sample1_website/scr/whale.png -------------------------------------------------------------------------------- /sample1_website/scr/jellyfish.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ungaaaabungaaa/Porfolio_sample1/HEAD/sample1_website/scr/jellyfish.png -------------------------------------------------------------------------------- /sample1_website/scr/octupus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ungaaaabungaaa/Porfolio_sample1/HEAD/sample1_website/scr/octupus.png -------------------------------------------------------------------------------- /sample1_website/scr/seahourse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ungaaaabungaaa/Porfolio_sample1/HEAD/sample1_website/scr/seahourse.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Porfolio_sample1 2 | simple Webpage designe inspried from pintrest 3 | #illustration 4 |  5 | -------------------------------------------------------------------------------- /sample1_website/icons/fishing.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /sample1_website/app.js: -------------------------------------------------------------------------------- 1 | 2 | // Get the button 3 | let mybutton = document.getElementById("myBtn"); 4 | 5 | // When the user scrolls down 20px from the top of the document, show the button 6 | window.onscroll = function() {scrollFunction()}; 7 | 8 | function scrollFunction() { 9 | if (document.body.scrollTop > 650 || document.documentElement.scrollTop > 650) { 10 | mybutton.style.display = "block"; 11 | } else { 12 | mybutton.style.display = "none"; 13 | } 14 | } 15 | 16 | // When the user clicks on the button, scroll to the top of the document 17 | function topFunction() { 18 | document.body.scrollTop = 0; 19 | document.documentElement.scrollTop = 0; 20 | } -------------------------------------------------------------------------------- /sample1_website/style.css: -------------------------------------------------------------------------------- 1 | body 2 | { 3 | font-family: 'Roboto'; 4 | font-weight: normal; 5 | margin: 0; 6 | padding: 0; 7 | width: 100%; 8 | height: 100%; 9 | display: flex; 10 | flex-direction: column; 11 | } 12 | 13 | ::-webkit-scrollbar { 14 | width: 0px; 15 | /* Remove scrollbar space */ 16 | background: transparent; 17 | /* Optional: just make scrollbar invisible */ 18 | } 19 | 20 | .nav_bar 21 | { 22 | width: 100%; 23 | height: 60px; 24 | display: flex; 25 | flex-direction: row; 26 | align-items: center; 27 | justify-content: center; 28 | } 29 | 30 | .nav_element 31 | { 32 | font-size: large; 33 | margin-right: 2.65%; 34 | color: gray; 35 | transition: transform .5s ease; 36 | } 37 | 38 | .nav_element:hover 39 | { 40 | 41 | transform: scale(1.2); 42 | color: black; 43 | } 44 | 45 | .div 46 | { 47 | width: 100%; 48 | height: 650px; 49 | background-color: #ffffff; 50 | display: flex; 51 | flex-direction: row; 52 | align-items: center; 53 | justify-content: center; 54 | } 55 | 56 | .div2 57 | { 58 | width: 100%; 59 | height: 650px; 60 | display: flex; 61 | flex-direction: row; 62 | align-items: center; 63 | background-color: #1b1b1b; 64 | justify-content: center; 65 | } 66 | 67 | .div_text 68 | { 69 | display: flex; 70 | flex-direction: column; 71 | align-items: center; 72 | text-align-last: right; 73 | } 74 | 75 | img 76 | { 77 | background-color: transparent; 78 | max-height: 90%; 79 | } 80 | 81 | h2 82 | { 83 | font-weight: bold; 84 | font-size: xx-large; 85 | } 86 | 87 | 88 | .btn 89 | { 90 | border: 2.5px solid black; 91 | color: black; 92 | padding: 14px 28px; 93 | font-size: 16px; 94 | margin-left: 32%; 95 | background-color: transparent; 96 | } 97 | 98 | .btn:hover 99 | { 100 | color: white; 101 | background-color: black; 102 | } 103 | 104 | 105 | 106 | .btn-accent-dark { 107 | border: 2.5px solid white; 108 | color: white; 109 | padding: 14px 28px; 110 | font-size: 16px; 111 | margin-left: 32%; 112 | background-color: transparent; 113 | } 114 | 115 | .btn-accent-dark:hover 116 | { 117 | color: black; 118 | background-color: white; 119 | } 120 | 121 | .flip-image 122 | { 123 | -webkit-transform: scaleX(-1); 124 | transform: scaleX(-1); 125 | } 126 | 127 | .accent-dark 128 | { 129 | color: #ffffff; 130 | } 131 | 132 | #myBtn 133 | { 134 | display: none; 135 | position: fixed; 136 | bottom: 20px; 137 | right: 30px; 138 | z-index: 99; 139 | font-size: large; 140 | border: none; 141 | outline: none; 142 | background-color: orange; 143 | color: white; 144 | padding: 0.8%; 145 | border-radius: 50%; 146 | } 147 | 148 | #myBtn:hover { 149 | background-color: transparent; 150 | } -------------------------------------------------------------------------------- /sample1_website/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |
24 | Lorem ipsum, dolor sit amet consectetur adipisicing elit. Officiis enim consequatur
error vero, consectetur iusto nulla voluptas laborum dignissimos aspernatur?
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Officiis enim consequatur
error vero, consectetur
38 | iusto nulla voluptas laborum dignissimos aspernatur?
44 |
52 | Lorem ipsum, dolor sit amet consectetur adipisicing elit.
Officiis enim consequatur error vero, consectetur
57 | iusto nulla voluptas laborum dignissimos aspernatur?
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Officiis enim consequatur
error vero, consectetur iusto
67 | nulla voluptas laborum dignissimos aspernatur?
73 |