StorefrontEngine: 적응형 웹사이트 디자인 프롬프트
Wikiprompt, 무료 프롬프트 백과사전에서
StorefrontEngine: 적응형 웹사이트 디자인 프롬프트 GPT를 사용한 적응형, 개성 기반 웹사이트 디자인 생성을 위한 구조화된 프롬프트 템플릿으로, 레이아웃 매개변수와 검증 체크를 포함합니다.
프롬프트 내용저장
🌐
class StorefrontEngine:
KERNEL = K_DTC # 상수 장르; 절대 샘플링하지 않음
def __init__(self, BRAND, PRODUCT, CATEGORY):
self.theta = infer(BRAND, PRODUCT, CATEGORY) # 성격, 팔레트, 카피, 변형, 메뉴…
self.P = self.layout_params(self.theta) # A₁: 적응형 벡터
def layout_params(self, th): # g(θ): 성격에 따라 디자인 CHANGES
base = dict(zone=(0.34,0.40,0.26), hero_scale=1.0, hero_rot=0, accent_sat=0.5,
sticker_n=2, deco_density=0.3, type_case="title", motif="neutral")
return match th.personality:
case "loud": base|dict(hero_rot=8, hero_scale=1.15, accent_sat=0.9, sticker_n=3, deco_density=0.7, type_case="UPPER")
case "calm": base|dict(hero_rot=2, hero_scale=1.0, accent_sat=0.3, sticker_n=2, deco_density=0.15)
case "cute": base|dict(hero_rot=5, accent_sat=0.8, sticker_n=3, deco_density=0.5, type_case="UPPER")
case "luxe": base|dict(hero_rot=0, accent_sat=0.2, sticker_n=1, deco_density=0.1)
# … athletic / botanical / nostalgic / technical (총계 ⇒ 모든 입력이 고유한 P를 받음)
def build(self):
nav = Nav(logo=L, menu=self. theta. menu, capsule=BLACK(search|div|cart|badge))
hero = ThreeZone(L=Pitch(self.theta.headline, self.theta.pitch,
CTA(self.theta.cta_verb, icon, qty=(-,n,+))),
C=floating_hero(self.theta.hero_angle, scale=self.P.hero_scale,
rot=self.P.hero_rot, shadow=SOFT_CONTACT), # η
R=callouts(self.theta.benefits, icons=SEMANTIC))
stick = stickers(self.theta.sticker_words, n=self.P.sticker_n, over=hero.C) # A₅ 실제 속성
shelf = Shelf(hue=self.theta.shelf_hue, cards=self.theta.variants, # deep complementary
break_outside=True, price+rating+action=True)
return page(self.KERNEL, self.P, nav, hero, stick, shelf)
def verify(self, page, other_page=None):
assert P(self) != P(other_input) for distinct inputs, "A₁: 템플릿 붙여넣기 (적응 없음)"
assert deco_density_outside_focal(page) <= EPS, "A₂: 장난기가 배급되지 않음"
assert all_tokens_from(self.theta.personality), "A₃: 혼합된 성격"
assert weight(product)>=weight(headline)>=weight(callouts)>=weight(deco), "A₄ 위계"
assert 0.65 <= hero_height(page) <= 0.72, "A₄ 구성"
assert sells_category(self.theta.headline) and not vague(self.theta.headline), "A₅"
assert stickers_are_attributes(self.theta.sticker_words), "A₅ ¬일반적 칭찬"
StorefrontEngine($ BRAND,$PRODUCT,$PRODUCT_CATEGORY).build()
전체 프롬프트를 보려면 로그인하세요
Continue with:
By logging in, you agree to our Terms of Use and Privacy Policy
사용법
이 프롬프트는 creative와 함께 사용하도록 설계되었습니다. 위의 프롬프트 내용을 복사하여 원하는 AI 도구에 붙여넣으세요.
최상의 결과를 얻으려면 자리 표시자(대괄호 또는 대문자로 표시)를 특정 요구 사항으로 사용자 지정할 수 있습니다.
토론
댓글 0개