[Style] Reorganize Intro; desktop simple bg complete

This commit is contained in:
hyperbola 2021-01-20 16:57:06 +08:00
parent f4f6fa9ce4
commit 2d23cbfac3
5 changed files with 327 additions and 306 deletions

View File

@ -1,37 +1,102 @@
@import '../hyperpoint';
@import "../hyperpoint";
@import "../color";
#cfp {
position: relative;
}
// The Korea Fish
// z-indecies
$z-section: -1;
$z-korea-fish: -10;
$z-first-card: -8;
$z-blue-bar: -9;
$z-second-card: -8;
// for mobile
$zm-section: -1;
$zm-korea-fish: -10;
$zm-first-card: -9;
$zm-blue-bar: -8;
$zm-second-card: -7;
#cfp-bg {
width: 100vw;
z-index: -1;
z-index: $z-section;
position: absolute;
// left: -12px; // offset
.korea-fish {
top: 0;
left: 0;
width: 100%;
display: flex;
justify-content: center;
align-items: flex-start;
height: 960px;
.sitcon-apple {
position: absolute;
margin-top: 360px;
width: 250px;
z-index: -10;
}
.ellipse {
position: absolute;
margin-top: 200px;
width: 640px;
z-index: -10;
}
.radial {
width: 1920px;
position: absolute;
z-index: -10;
}
}
.cards {
.first-card {
transform: rotate(15deg);
box-shadow: 0 3px 12px 0 rgba(89, 120, 206, 0.56);
border-radius: 30px;
position: relative;
top: 72px;
right: 0px;
z-index: $z-first-card;
}
.blue-bar {
z-index: $z-blue-bar;
width: 3600px; // this is enough
height: 300px;
background: rgba(34, 107, 180, 1);
position: relative;
right: 160px;
top: 300px;
transform: rotate(15deg);
opacity: 1;
p {
padding-top: 160px;
padding-left: 240px;
color: $white;
font-size: 48pt;
font-weight: 700;
letter-spacing: 0.08em;
z-index: $z-blue-bar;
}
}
.card2-wrapper {
height: 1300px;
overflow: hidden;
position: relative;
margin-top: -300px;
z-index: $z-second-card;
.second-card {
transform: rotate(15deg);
box-shadow: 0 3px 12px 0 rgba(89, 120, 206, 0.56);
border-radius: 30px;
z-index: $z-second-card;
position: relative;
top: 240px;
right: 240px;
}
}
}
}

View File

@ -16,7 +16,7 @@ $width-svg-news: 259px;
img.svg {
height: auto;
}
z-index: 1;
// z-index: 1;
.spot-box {
padding-bottom: 260px;

View File

@ -1,13 +1,11 @@
@import '../hyperpoint';
@import '../color';
@import "../hyperpoint";
@import "../color";
$fontFamily: Noto Sans TC;
$fontColor: $mid-blue;
// General settings:
// font-size and paragraph spacing for headers and paragraph text
#cfp-intro {
margin-top: 90px;
h1,
h2,
h3 {
@ -37,22 +35,6 @@ $fontColor: $mid-blue;
font-weight: 900;
}
}
.introduction {
height: 2400px;
overflow: hidden;
padding-bottom: 0;
}
@media screen and (max-width: 1021px) {
.introduction {
height: 2230px;
}
}
@media screen and (max-width: 891px) {
.introduction {
height: 2200px;
}
}
// Utiliy
#cfp-intro {
@ -68,40 +50,21 @@ $fontColor: $mid-blue;
}
#cfp-intro {
.box-back {
// width: 880px;
margin-bottom: -40em;
font-family: $fontFamily;
padding-top: 72px;
padding-bottom: 72px;
padding-left: 135px;
color: $fontColor;
width: 700px;
padding: 20px;
.box-back {
padding-top: 180px;
padding-bottom: 180px;
width: 800px;
.first-box {
transform: rotate(15deg);
box-shadow: 0 3px 12px 0 rgba(89, 120, 206, 0.56);
border-radius: 30px;
position: relative;
bottom: 620px;
right: 50px;
z-index: 0;
}
.introd-text {
position: relative;
top: 200px;
left: 150px;
z-index: 2;
}
.about-sitcon {
margin-bottom: 0 auto 2em;
// empty
}
.past-sitcon {
margin-bottom: 2em;
width: 60vw;
height: 13em;
.cfp-img {
width: 180px; //225
height: 121px; //152
@ -111,6 +74,7 @@ $fontColor: $mid-blue;
display: flex;
flex-direction: row;
padding: 0.25em 0;
margin-bottom: 2em;
.thumb-wrapper {
.thumb-title,
@ -126,7 +90,7 @@ $fontColor: $mid-blue;
}
&:not(:last-child) {
margin-right: 1em;
margin-right: 2em;
}
}
}
@ -137,51 +101,17 @@ $fontColor: $mid-blue;
}
}
.box-bluearea {
width: 150vw;
height: 450px;
background: rgba(34, 107, 180, 1);
right: 25%;
position: relative;
z-index: -1;
transform: rotate(15deg);
opacity: 1;
}
.box-back2 {
// width: 760px;
font-family: $fontFamily;
color: $fontColor;
width: 900px;
padding: 20px 20px 168px 20px;
height: 2350px;
width: 1050px;
padding-top: 180px;
.about-topic {
margin-bottom: 2em;
position: relative;
bottom: 75px;
z-index: 2;
left: 50px;
}
.second-box {
transform: rotate(15deg);
box-shadow: 0 3px 12px 0 rgba(89, 120, 206, 0.56);
border-radius: 30px;
position: relative;
bottom: 1100px;
right: 120px;
z-index: 0;
// empty
}
.cfp-deadline {
margin-bottom: 2em;
margin-bottom: 2em;
position: relative;
z-index: 2;
left: 50px;
bottom: 75px;
margin-bottom: 2.5em;
.cfp-deadline-content {
margin-top: -1.5em;
display: flex;
@ -191,10 +121,6 @@ $fontColor: $mid-blue;
}
.give-me-money {
position: relative;
z-index: 2;
left: 50px;
bottom: 75px;
.whisper {
font-weight: 900;
font-size: 1.25em;
@ -204,7 +130,8 @@ $fontColor: $mid-blue;
}
}
@include md{ //for width 786px
@include md {
//for width 786px
#cfp-intro {
h1,
h2,
@ -229,7 +156,7 @@ $fontColor: $mid-blue;
.first-box {
transform: rotate(12deg) scale(1.2);
bottom: 590px;
bottom: 520px;
left: 100px;
}
@ -270,7 +197,6 @@ $fontColor: $mid-blue;
left: -5em;
}
}
}
#cfp-intro {
@ -287,7 +213,8 @@ $fontColor: $mid-blue;
}
}
@include sm { //for width 600px
@include sm {
//for width 600px
#cfp-intro {
h1,

View File

@ -1,8 +1,8 @@
<template>
<main class="introduction-container">
<div class="introduction">
<!--<div class="introduction">-->
<div class="box-back box">
<div class="introd-text">
<!--<div class="introd-text">-->
<div class="about-sitcon">
<h2>關於 SITCON</h2>
<p>
@ -67,14 +67,14 @@
>
</div>
</div>
</div>
<svg width="1000" height="950" class="first-box"><rect width="1500" height="1200" style="fill: rgb(255, 255, 255);"></rect></svg>
<!--</div>-->
<!--<svg width="1000" height="950" class="first-box"><rect width="1500" height="1200" style="fill: rgb(255, 255, 255);"></rect></svg>-->
</div>
<!-- ==================================================================================================== -->
<div class="box-bluearea">
</div>
<!--<div class="box-bluearea">-->
<div class="box-back2 box">
<div class="introd-text">
<!--<div class="introd-text">-->
<div class="topic-intro">
<div class="about-topic">
<h2>2021 年會主題</h2>
@ -92,7 +92,10 @@
<div class="cfp-deadline-content">
<span class="h3">01/15 02/22</span
><span class="ml-2 mr-2">詳細時程請見</span
><a class="btn btn-primary mr-2" rel="noopener" href="/2021/cfp/news"
><a
class="btn btn-primary mr-2"
rel="noopener"
href="/2021/cfp/news"
>投稿資訊</a
><a
class="btn btn-primary"
@ -104,7 +107,6 @@
</div>
</div>
</div>
</div>
<div class="give-me-money">
<p class="whisper">最後...</p>
<h2>SITCON 贊助徵求</h2>
@ -132,16 +134,16 @@
>個人贊助方案</a
>
</div>
</div>
<svg width="1100" height="1200" class="second-box"><rect width="1500" height="1500" style="fill: rgb(255, 255, 255);"></rect></svg>
<!--</div>-->
<!--<svg width="1100" height="1200" class="second-box"><rect width="1500" height="1500" style="fill: rgb(255, 255, 255);"></rect></svg>-->
</div>
</div>
<!--</div>-->
</main>
</template>
<script lang="ts">
import { Component, Prop, Vue } from 'vue-property-decorator';
import { Component, Prop, Vue } from "vue-property-decorator";
@Component
export default class IntrodContainer extends Vue {}
</script>

View File

@ -6,23 +6,50 @@
<img class="ellipse" src="~@/assets/images/CFP/ellipse.svg" />
<img class="sitcon-apple" src="~@/assets/images/CFP/sitcon-apple.svg" />
</div>
<div class="cards">
<svg width="1000" height="950" class="first-bozzx first-card">
<rect
width="1000"
height="950"
style="fill: rgb(255, 255, 255)"
></rect>
</svg>
<div class="box-bluearea blue-bar">
<p>Descendents of The Abacus</p>
</div>
<div class="card2-wrapper">
<svg
width="1500"
height="1200"
class="second-box second-card"
>
<rect
width="1500"
height="1200"
style="fill: rgb(255, 255, 255)"
></rect>
</svg>
</div>
</div>
</div>
<div class="cfp-fg">
<!-- WTF = = -->
<CfpHeader id="cfp-header" />
<Intro id="cfp-intro"></Intro>
<Intro id="cfp-intro" />
</div>
</div>
</template>
<script lang="ts">
import { Component, Prop, Vue } from 'vue-property-decorator';
import CfpHeader from '@/components/CFP/Header.vue';
import Intro from '@/components/CFP/Intro.vue';
import { Component, Prop, Vue } from "vue-property-decorator";
import CfpHeader from "@/components/CFP/Header.vue";
import Intro from "@/components/CFP/Intro.vue";
@Component({
components: {
CfpHeader,
Intro
}
Intro,
},
})
export default class CFP extends Vue {
@Prop() private msg!: string;