This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import OpenAI from "finetunedb/openai"; | |
| import { Env, Message, CompletionUsage } from "@/types"; | |
| export const MODELS = { | |
| GPT_35: "gpt-3.5-turbo-0125", | |
| GPT_4: "gpt-4-1106-preview", | |
| FINE_TUNE: "ft:gpt-3.5-turbo-0125:fitter::8yddZqX0", | |
| GPT_4o_MINI: "gpt-4o-mini", | |
| } as const; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div class="payment-element mt-3" data-cy="payment-element"> | |
| <div v-if="showAddressElement" class="payment-element__address mb-2"> | |
| <div ref="addressElement" id="address-element"></div> | |
| </div> | |
| <div class="payment-element__wrapper"> | |
| <div ref="paymentElement" id="payment-element"></div> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1: 4px | |
| 2: 8px | |
| 3: 12px | |
| 4: 16px | |
| 5: 24px | |
| 6: 32px | |
| 7: 40px | |
| 8: 48px | |
| 9: 64px | |
| 10: 80px |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .parallax-container { | |
| // ... | |
| -webkit-overflow-scrolling: touch; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .image { | |
| position: absolute; | |
| transform-origin: 0 50%; | |
| width: 420px; | |
| height: 420px; | |
| } | |
| .background__image { | |
| @extend .image; | |
| height: 840px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="parallax-container"> | |
| <div class="wrapper"> | |
| <img class="background__image" src="https://path/to/background.png"> | |
| <img class="middle__image" src="https://path/to/middle.png" /> | |
| <img class="foreground__image" src="https://path/to/foreground.png" /> | |
| </div> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $parallax-perspective: 8px; | |
| @function parallax-scale-factor($z-distance) { | |
| @return ($parallax-perspective - $z-distance) / $parallax-perspective; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .foreground { | |
| // ... | |
| transform: translateZ(3px) scale(0.625); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .parallax-container { | |
| // ... | |
| } | |
| .background { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="parallax-container"> | |
| <div class="background"> | |
| <img class="background__image" src="https://path/to/image.jpg" /> | |
| </div> | |
| <div class="foreground"> | |
| <div class="foreground__content"> | |
| <h1>Oooo, parallax</h1> | |
| </div> | |
| </div> | |
| </div> |
NewerOlder