Examples of code I've written in PHP, Javascript, SCSS, etc.
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

746 satır
11 KiB

  1. @use "vars";
  2. @font-face {
  3. font-family: "PatuaOne";
  4. src: url("../PatuaOne-Regular.ttf") format("opentype");
  5. font-style: normal;
  6. font-weight: normal;
  7. }
  8. html body {
  9. font-family: 'PatuaOne', 'Times New Roman';
  10. margin: 0;
  11. }
  12. section {
  13. position: relative;
  14. padding-top: 3em;
  15. padding-bottom: 3em;
  16. overflow: hidden;
  17. padding-right: 15px;
  18. padding-left: 15px;
  19. }
  20. button {
  21. font-family: 'PatuaOne', 'Times New Roman';
  22. }
  23. textarea {
  24. border: 1px solid grey;
  25. }
  26. h1 {
  27. color: white;
  28. }
  29. h2 {
  30. color: vars.getColor("brand-orange");
  31. text-align: center;
  32. }
  33. h3 {
  34. color: vars.getColor("faded-text");
  35. // text-transform: uppercase;
  36. }
  37. ul {
  38. color: vars.getColor("faded-text");
  39. list-style-type: none;
  40. padding: 0;
  41. }
  42. input, select {
  43. border: 2px solid black;
  44. border-radius: 20px;
  45. padding: 4px;
  46. }
  47. .icon {
  48. width: 25px;
  49. margin: 10px;
  50. }
  51. .note-grey {
  52. color: grey;
  53. font-size: 0.8em;
  54. max-width: 70%;
  55. }
  56. .services-cards li {
  57. padding-bottom: 8px;
  58. &:before {
  59. width: 30px;
  60. height: 30px;
  61. content: url("../images/green-check.svg");
  62. display: inline;
  63. margin-right: 5px;
  64. // top: 30px;
  65. }
  66. }
  67. a {
  68. text-decoration: none;
  69. }
  70. nav {
  71. position: absolute;
  72. width: 100%;
  73. top: 10px;
  74. display: flex;
  75. flex-flow: row wrap;
  76. align-items: center;
  77. justify-content: space-between;
  78. // background-color: transparent;
  79. }
  80. nav h1 {
  81. margin: 4px 0 10px 6px;
  82. display: inline-block;
  83. }
  84. nav.info-page h1 {
  85. margin: 4px 0 10px 6px;
  86. display: inline-block;
  87. color: vars.getColor('brand-orange');
  88. }
  89. .formal-font {
  90. font-family: "FreeSans";
  91. }
  92. nav #logo {
  93. margin-right: 50px;
  94. }
  95. nav form {
  96. display: flex;
  97. flex-wrap: wrap;
  98. margin-right: 20px;
  99. }
  100. nav form div {
  101. margin: 0 10px;
  102. }
  103. nav form button {
  104. min-width: 5em;
  105. }
  106. nav form p {
  107. margin-top: 0;
  108. }
  109. nav form input,label {
  110. opacity: 0.7;
  111. }
  112. nav .nav-toggle {
  113. position: absolute;
  114. right: 10px;
  115. top: 5px;
  116. display: none;
  117. height: 45px;
  118. width: 45px;
  119. margin-left: auto;
  120. background: url("../images/menu-icon.svg");
  121. background-size: 100%;
  122. background-size: cover;
  123. color: white;
  124. }
  125. nav .nav-toggle.toggled {
  126. background: url("../images/cancel-icon2.svg");
  127. width: 25px;
  128. height: 25px;
  129. background-size: 100%;
  130. background-size: cover;
  131. top: 10px;
  132. right: 15px;
  133. color: white;
  134. }
  135. div.landing-hero {
  136. top: 0;
  137. height: 50em;
  138. background-color: #ff4e00;
  139. // background-image: linear-gradient(to right bottom, #ff4e00, #fc6200, #f87200, #f58100, #f18e00, #f19507, #f09c0f, #f0a317, #f3a620, #f6a927, #f8ad2e, #fbb034);
  140. background-image: linear-gradient(315deg, #ff4e00 0%, #ec9f05 74%);
  141. z-index: 0;
  142. }
  143. div.hero-filter {
  144. width: 100%;
  145. height: 100%;
  146. }
  147. div.hero-filter h2 {
  148. color: black;
  149. opacity: 0.7;
  150. max-width: 10em;
  151. font-size: 2.4em;
  152. position: absolute;
  153. top: 3em;
  154. margin-left: 5%;
  155. }
  156. div.hero-filter p {
  157. position: absolute;
  158. top: 12em;
  159. margin-left: 5%;
  160. font-size: 20px;
  161. width: 10em;
  162. opacity: 0.7;
  163. }
  164. div.errors {
  165. background-color: #ececec;
  166. color: vars.getColor("red-alert");
  167. border: 2px solid vars.getColor("red-alert");
  168. border-radius: 4px;
  169. min-height: 50px;
  170. position: absolute;
  171. left: 50%;
  172. margin-right: -50%;
  173. top: 100px;
  174. min-width: 30em;
  175. transform: translate(-50%, -50%);
  176. }
  177. .errors ul {
  178. margin: auto;
  179. }
  180. form.login {
  181. // font-weight: bold;
  182. color: white;
  183. }
  184. .cancel-icon {
  185. width: 30px;
  186. }
  187. form.login input {
  188. margin-left: 2px;
  189. color: white;
  190. background-color: transparent;
  191. border: 2px solid white;
  192. border-radius: 2px;
  193. outline-color: orange
  194. }
  195. form.login .login-btn {
  196. @include vars.special-button("medium-blue", "dark-blue");
  197. }
  198. .hero-filter .register-btn {
  199. @include vars.transparent-button;
  200. display: block;
  201. position: relative;
  202. width: 7em;
  203. top: 60%;
  204. margin-left: auto;
  205. margin-right: auto;
  206. }
  207. div.blue-background {
  208. background-image: url("../images/black-circle.svg");
  209. background-size: 10px;
  210. background-color: #0d324d;
  211. }
  212. section.about-us {
  213. padding: 70px 0;
  214. }
  215. section.about-us p {
  216. max-width: 600px;
  217. margin-left: auto;
  218. margin-right: auto;
  219. border-top: 2px solid vars.getColor("grey");
  220. border-bottom: 2px solid vars.getColor("grey");
  221. padding: 15px;
  222. background-color: #0d324d;
  223. color: white;
  224. }
  225. section.services-cards {
  226. // margin-bottom: 0;
  227. background-color: lightgrey;
  228. padding-bottom: 4em;
  229. background: linear-gradient(to bottom right, transparent 0%, transparent 50%, #e9e9e9 50%, vars.getColor("light-grey") 100%);
  230. }
  231. section.services-cards .cards{
  232. display: flex;
  233. flex-flow: wrap;
  234. margin-top: 2em;
  235. gap: 25px;
  236. justify-content: center;
  237. max-width: 1050px;
  238. margin-left: auto;
  239. margin-right: auto;
  240. text-align: center;
  241. }
  242. section.services-cards h2 {
  243. text-align: center;
  244. padding: 10px;
  245. margin-top: 0;
  246. padding-top: 30px;
  247. color: white;
  248. }
  249. section.services-cards .card {
  250. width: 280px;
  251. height: 350px;
  252. padding: 18px 9px;
  253. border-radius: 4px;
  254. background: white;
  255. box-shadow: 7px 10px 8px rgb(156 166 175 / 22%);
  256. transition: transform 0.2s;
  257. &:hover {
  258. transform: translateY(-20px);
  259. }
  260. }
  261. section.services-cards img {
  262. width: 50px;
  263. height: 50px;
  264. }
  265. section.services-cards button {
  266. @include vars.brand-button("orange");
  267. }
  268. section.features-info {
  269. // height: fit-content;
  270. height: 70em;
  271. background: radial-gradient(ellipse at left, #fff, vars.getColor("light-grey") 80%);
  272. }
  273. .circle-prop {
  274. height: 70em;
  275. overflow: hidden;
  276. width: 100%;
  277. position: relative;
  278. // transform: translateX(-10em);
  279. }
  280. .circle-prop svg {
  281. width: 50%;
  282. }
  283. .features-info img {
  284. width: 600px;
  285. position: absolute;
  286. top: 15%;
  287. right: 4%;
  288. }
  289. div.info-cards {
  290. position: absolute;
  291. top: 10em;
  292. margin-left: 20%;
  293. width: 70%;
  294. }
  295. .info-card {
  296. margin-bottom: 6em;
  297. &:nth-of-type(2) {
  298. margin-left: 13%;
  299. }
  300. &:nth-of-type(3) {
  301. margin-left: 10%;
  302. }
  303. &:nth-of-type(4) {
  304. margin-left: 5%;
  305. }
  306. p {
  307. max-width: 20em;
  308. background: white;
  309. padding: 5px;
  310. border-radius: 4px;
  311. text-align: center;
  312. color: vars.getColor("faded-text2");
  313. // border: 2px solid vars.getColor("medium-orange");
  314. @include vars.hovering;
  315. }
  316. }
  317. section.panel-infos {
  318. min-height: 40em;
  319. margin-top: 5em;
  320. margin-bottom: 5em;
  321. display: flex;
  322. flex-flow: wrap;
  323. align-items: center;
  324. justify-content: center;
  325. gap: 20px;
  326. .panel-preview {
  327. // box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  328. @include vars.hovering;
  329. padding: 0;
  330. }
  331. }
  332. .panel-infos h2 {
  333. width: 100%;
  334. }
  335. .panel-info {
  336. max-width: 25em;
  337. margin-top: 4em;
  338. }
  339. .panel-info img {
  340. width: 50px;
  341. height: 50px;
  342. }
  343. .panel-info p {
  344. color: vars.getColor("faded-text2");
  345. }
  346. section.benefits-info div {
  347. margin: 1em auto;
  348. padding: 1em 1em;
  349. border-top: 2px solid vars.getColor("faded-text2");
  350. border-bottom: 2px solid vars.getColor("faded-text2");
  351. max-width: 40em;
  352. color: vars.getColor("faded-text");
  353. }
  354. .benefits-info h2 {
  355. margin-bottom: 2em;
  356. }
  357. section.faq-info {
  358. margin-bottom: 6em;
  359. margin-top: 3em;
  360. min-height: 30em;
  361. }
  362. .faq-info h2 {
  363. margin-bottom: 2em;
  364. }
  365. section.faq-info .collapsibles {
  366. display: flex;
  367. flex-flow: wrap;
  368. gap: 2em;
  369. justify-content: center;
  370. max-width: 65em;
  371. width: fit-content;
  372. margin-left: auto;
  373. margin-right: auto;
  374. align-text: center;
  375. }
  376. .faq-info .collapsible {
  377. text-align: center;
  378. width: 20em;
  379. &:not(.active) .content {
  380. display: none;
  381. }
  382. }
  383. .collapsible button {
  384. width: 95%;
  385. display: block;
  386. margin-right: auto;
  387. height: 2.5em;
  388. border: 2px solid vars.getColor("brand-orange");
  389. @include vars.button("light-grey");
  390. font-size: 17px;
  391. // font-weight: bold;
  392. }
  393. .collapsible button:after {
  394. content: '\02795'; /* Unicode character for "plus" sign (+) */
  395. font-size: 13px;
  396. color: white;
  397. float: right;
  398. margin-left: 5px;
  399. }
  400. .collapsible .content {
  401. // background-color: vars.getColor("faded-text2");
  402. border: 2px solid black;
  403. border-radius: 4px;
  404. padding: 4px;
  405. // transition: all 0.2s;
  406. // height: 1px;
  407. }
  408. footer {
  409. height: 6em;
  410. background-color: vars.getColor("dark-grey");
  411. padding: 20px;
  412. color: vars.getColor("faded-text2");
  413. }
  414. footer .foot-links {
  415. width: 20em;
  416. margin: 2em auto;
  417. text-align: center;
  418. }
  419. footer a {
  420. margin: 0 8px;
  421. color: vars.getColor("faded-text2");
  422. &:hover {
  423. color: vars.getColor("faded-text");
  424. }
  425. }
  426. .hidden {
  427. display: none;
  428. }
  429. .loading-icon {
  430. display: block;
  431. width: 50px;
  432. height: 50px;
  433. margin: auto;
  434. }
  435. .register-area p {
  436. text-align: center;
  437. }
  438. .register-area .loading-icon {
  439. margin-top: 100px;
  440. }
  441. div.register-area {
  442. overflow: hidden;
  443. height: 0px;
  444. width: 100%;
  445. z-index: 1;
  446. @include vars.hovering3;
  447. margin-bottom: 2em;
  448. position: fixed;
  449. border-radius: 0;
  450. padding: 0;
  451. opacity: 0;
  452. transition: all 0.2s;
  453. background: white;
  454. h3 {
  455. text-align: center;
  456. }
  457. label,input {
  458. color: black;
  459. display: block;
  460. border-color: black;
  461. width: 95%;
  462. }
  463. div {
  464. margin-top: 20px;
  465. margin-bottom: 20px;
  466. width: 100%;
  467. }
  468. form {
  469. width: 160px;
  470. margin: 20px auto;
  471. }
  472. .submit-btn {
  473. width: 100%;
  474. background-color: #3bb78f;
  475. @include vars.special-button("light-green", "dark-green");
  476. }
  477. .cancel-button {
  478. width: 20px;
  479. height: 20px;
  480. background: url("../images/close-icon-black.svg");
  481. background-size: cover;
  482. position: absolute;
  483. top: 20px;
  484. right: 20px;
  485. }
  486. }
  487. section.features-info {
  488. // min-height: 90em;
  489. }
  490. div.register-area.active {
  491. height: fit-content;
  492. min-height: 20em;
  493. opacity: 1;
  494. }
  495. .medium-icon {
  496. width: 50px;
  497. height: 50px;
  498. margin-left: auto;
  499. margin-right: auto;
  500. display: block;
  501. top: 50px;
  502. }
  503. // Make small screens more usable
  504. @media (max-width: 720px) {
  505. nav { display: block; }
  506. nav form {
  507. // display: none;
  508. width: 190px;
  509. margin-left: auto;
  510. margin-right: auto;
  511. align-items: center;
  512. margin-top: 5em;
  513. opacity: 0;
  514. transition: transform 0.3s;
  515. transform: translateY(-50px);
  516. }
  517. nav form.active {
  518. display: block;
  519. transform: translateX(0%);
  520. opacity: 1;
  521. // background: white;
  522. // color: black;
  523. }
  524. nav form div {
  525. margin: 10px auto;
  526. }
  527. nav div label,input {
  528. display: block;
  529. }
  530. nav .nav-toggle {
  531. display: block;
  532. }
  533. div.register-area.active {
  534. display: initial;
  535. }
  536. div.register-area h1 {
  537. font-size: 1.5rem;
  538. display: inline-block;
  539. color: vars.getColor("brand-orange");
  540. }
  541. div.register-area h3 {
  542. text-align: center;
  543. }
  544. div.register-area .login {
  545. color: vars.getColor("brand-orange");
  546. display: block;
  547. margin-left: auto;
  548. margin-right: auto;
  549. // margin-top: 1em;
  550. width: 10em;
  551. // top: 40px;
  552. // position: absolute;
  553. }
  554. div.register-area .login input {
  555. border: 2px solid black;
  556. border-color: black;
  557. color: black;
  558. }
  559. div.register-area button {
  560. margin-top: 1em;
  561. width: 6em;
  562. }
  563. div.register-area div {
  564. margin-top: 10px;
  565. margin-bottom: 5px;
  566. margin-left: auto;
  567. margin-right: auto;
  568. }
  569. .landing-hero div.hero-filter h2 {
  570. top: 4em;
  571. }
  572. .landing-hero div.hero-filter p {
  573. top: 15em;
  574. }
  575. .landing-hero div.hero-filter .register-btn {
  576. top: 75%;
  577. }
  578. }
  579. .info-heading {
  580. text-align: center;
  581. margin-top: 3em;
  582. margin-left: auto;
  583. margin-right: auto;
  584. max-width: 35em;
  585. padding: 3em;
  586. height: 30em;
  587. button {
  588. display: block;
  589. margin: 3em auto;
  590. width: 6em;
  591. @include vars.special-button("light-green", "dark-green");
  592. }
  593. }
  594. main.panel {
  595. // min-height: 750px;
  596. height: 100vh;
  597. // max-height: 100vh;
  598. background-image: linear-gradient(315deg, #ff4e00 0%, #ec9f05 74%);
  599. }
  600. #panel {
  601. top: 50px;
  602. padding: 0 5%;
  603. margin: auto;
  604. position: relative;
  605. max-width: 800px;
  606. height: 90%;
  607. display: flex;
  608. gap: 10px;
  609. }
  610. #sidebar {
  611. position: relative;
  612. width: 6%;
  613. max-width: 55px;
  614. height: 50%;
  615. color: white;
  616. background: transparent;
  617. display: block;
  618. flex-shrink: 0;
  619. a {
  620. display: block;
  621. margin: 20px 0;
  622. }
  623. svg {
  624. width: 100%;
  625. height: 35px;
  626. color: white;
  627. }
  628. a.selected svg {
  629. color: vars.getColor("brand-orange");
  630. }
  631. }