Curry Cafe

학습내용
GRID
FLEXBOX
Interactive
notion imagenotion image
 
코드보기
HTML
  • index.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>repl.it</title> <link href="style.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/all.min.css" /> </head> <body> <div class="container"> <section class="main"> <!--flex: auto 1; order 2--> <nav class="left"> <div> <ul> <li>L<br>O<br>C<br>A<br>T<br>I<br>O<br>N<br>S</li> <li><i class="fas fa-asterisk"></i></li> <li>M<br>E<br>N<br>U</li> <li><i class="fas fa-asterisk"></i></li> <li>S<br>H<br>O<br>P</li> </ul> </div> <div id="vtc"> <span>SPICY NEWSLETTER <i class="fab fa-centos"></i></span> </div> <div> <i class="fab fa-facebook-square"></i> <i class="fab fa-instagram"></i> </div> </nav> <div class="bg"> <div>&nbsp;</div> <div>&nbsp;</div> </div> <header> <div class="logo"> <img src="https://mail.google.com/mail/u/0?ui=2&ik=56f57c2c75&attid=0.2&permmsgid=msg-a:r296396299769006752&th=1784085b7316553e&view=fimg&sz=s0-l75-ft&attbid=ANGjdJ-JdZQptzk9Smm-HWFWs1VMmY-68n_3BsfW13ADt7pzX3k8pkRKfYMTPtbeDQoDEcSrQdBYeETIm66VXQH0cEcOxXg2TtE2MBEZzcCNDhsyjT_bKsuVnd89e0A&disp=emb&realattid=ii_kmdiu56d1"> </div> <div>CURRY<br>CAFE</div> </header> <nav class="right"> <div> <ul> <li><i class="fas fa-asterisk"></i></li> <li>O<br>R<br>D<br>E<br>R<br> <br>T<br>─<br>A</li> <li><i class="fas fa-asterisk"></i></li> </ul> </div> <div> <ul> <li><i class="fas fa-asterisk"></i></li> <li>R<br>E<br>S<br>E<br>R<br>V<br>A<br>T<br>I<br>O<br>N<br>S</li> <li><i class="fas fa-asterisk"></i></li> </ul> </div> </nav> </section> <aside class="small"><marquee> FLEMINGTON & NORTHCOTE! NUMBER ONE BEST QUALITY! VEG & NON. VEG! CURRY CAFE! </marquee></aside> <!--50px order 1--> <aside class="small"><marquee direction="right"> STAY SPICY ─ NUMBER ONE BEST QUALITY! EVERY DAY OPEN! FLEMINGTON & NORTHCOTE! </marquee></aside> <!--50px order 3--> </div> <div id="contact"> <img src="https://mail.google.com/mail/u/0?ui=2&ik=56f57c2c75&attid=0.1&permmsgid=msg-a:r296396299769006752&th=1784085b7316553e&view=fimg&sz=s0-l75-ft&attbid=ANGjdJ-QpDnsAfAJO5nUeCPfJe_uy8PuX2ZRntemIpkG2yOEB4MeBeSjhmibDIU38In3FnNq7yoqMpQShc8KLFOBNPhEOV6-zVAjcaKAG5y52HI1rXxC_PHUWCNiSdU&disp=emb&realattid=ii_kmdiu3bj0"> </div> </body> </html>
HTML
CSS(SASS)
  • variables.scss
$bg : RGB(241, 230, 86); $orange : RGB(254, 107, 56); $green : RGB(70, 171, 79);
  • style.scss
@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"); @import "_variables"; body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; width: 100%; height: 100vh; background-color: $bg; text-align: center; display: flex; box-sizing: border-box; padding: 10px; align-items: center; justify-content: center; } .container { width: 100%; height: 100%; display: flex; flex-direction: column; place-content: center center; } .main { width: 1fr; flex-grow: 1; color: white; order: 2; display: flex; justify-content: center; align-items: center; nav { width: 50px; height: 100%; font-family:'Trebuchet MS', sans-serif; font-weight: bold; font-style: italic; display: flex; flex-direction: column; justify-content: stretch; align-items: stretch; div { ul { height: 100%; display: flex; flex-direction: column; justify-content: space-around; } display: flex; place-content: center center; border-bottom: solid $orange 5px; padding: 5px; border-left: solid $orange 5px; border-right: solid $orange 5px; } &:nth-child(1) { div:nth-child(1) { flex-grow: 2; background-color: $orange; } div:nth-child(2) { flex-grow: 1; color: $orange; background-color: white; } div:nth-child(3) { flex-direction: column; flex-grow: 0; min-height: max-content; border-bottom: 0px; font-size: 2em; color: $orange; background-color: white; } } } .right { div { flex-grow: 1; ul { height: 100%; display: flex; flex-direction: column; justify-content: space-around; } display: flex; place-content: center center; border-bottom: solid $orange 5px; padding: 5px; border-left: solid $orange 5px; border-right: solid $orange 5px; background-color: $green; } } #vtc { span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); } } nav img { fill:$orange; } } .bg { height: 100%; flex-grow: 1; align-items: stretch; display: grid; grid-template-columns: 1fr 1fr; div {background-size: cover;} div:nth-child(1) { background-image: url('https://curry.cafe/wp-content/uploads/2018/11/leader-10.jpg'); } div:nth-child(2) { background-image: url('https://curry.cafe/wp-content/uploads/2018/11/leader-02.jpg'); } } header { align-items: center; position: absolute; top: 30%; font-family:'Trebuchet MS', sans-serif; font-weight: bold; font-size: 400%; display: flex; flex-direction: column; align-items: stretch; .logo { width: 100%; img { filter: invert(100%); width: 100px; } } } .small { font-style: italic; border: solid $orange 5px; flex-grow: 0; padding: 5px; background-color: white; color: $orange; &:nth-child(1) { order: 1; } &:nth-child(2) { order: 2; } } #contact { display: flex; width: 35px; height: 35px; background-color: $orange; border-radius: 5px; position: fixed; bottom: 20px; right: 20px; box-shadow: 1px 1px 3px rgb(7, 71, 7); img { filter: invert(100%); width: 20px; margin: 7.5px; } }
CSS