Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Commit

Permalink
adjuted covers for about and features
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonid Medovyy committed Dec 16, 2019
1 parent 93e9afc commit fd6bc6e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 22 deletions.
8 changes: 5 additions & 3 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/views/pages/about.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
= container
= grid
= column size: 14, class: 'centered content'
= h1 class: 'inverted', text: "It's all for LOLs"
= text text: "One mission. One vision. Make the internet fun again."
= h1 class: 'inverted', text: "One Vision"
= text text: "Make the Internet fun."

= fragment 'story'
= container 'full'
Expand Down
28 changes: 12 additions & 16 deletions frontend/js/about_cover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,10 @@
PointLight(:diffuse="point_light")
template(v-for="x in squares")
template(v-for="y in squares")
Box(v-for="z in squares" :position="[x, y, z]" :key="`${x},${y},${z}`")
Material(:diffuse="pick_color(x,y,z)" :roughness="0.50" :glossiness="1")
Animation(property="rotation.x" :duration="4" :end="Math.PI * 1.9" :loop="true")
Animation(property="rotation.y" :duration="4" :end="Math.PI * 1.9" :loop="true")
Animation(property="rotation.z" :duration="4" :end="Math.PI * 1.9" :loop="true")
Animation(property="scaling.x" :duration="50" :start="1.1" :end="Math.PI * 1.3" :loop="false")
Animation(property="scaling.y" :duration="50" :start="1.1" :end="Math.PI * 1.3" :loop="false")
Animation(property="scaling.z" :duration="50" :start="1.1" :end="Math.PI * 1.3" :loop="false")
template(v-if="x != 0 && y == 0")
Box(v-for="z in squares" :position="[x, y, z]" :key="`${x},${y},${z}`")
Material(:diffuse="pick_color(x,y,z)" :roughness="0.50" :glossiness="1")
Animation(property="scaling.z" :duration="60" :start="1.2" :end="Math.PI * 1.3" :loop="false")

</template>

Expand All @@ -27,18 +23,18 @@ export default {
point_light: '#fff'
square_color: "#000"
squares: [0, 2, -2 ]
first_color: '#9c91ff'
second_color: '#ffab1d'
third_color: '#ffe908'
fourth_color: '#00d8ff'
fifth_color: '#ff1873'
sixth_color: '#0fff7a'
first_color: '#fff'
second_color: '#fff'
third_color: '#fff'
fourth_color: '#fff'
fifth_color: '#fff'
sixth_color: '#fff'
mounted: ->
$('.overlay').css('transition', 'all 2.5s')
$('.overlay').css('opacity', 0.1)
$('.overlay').css('opacity', 0.4)
beforeDestroy: ->
$('.overlay').css('transition', 'none')
$('.overlay').css('opacity', 1)
$('.overlay').css('opacity', 0.4)
methods:
pick_color: (x, y, z) ->
Expand Down
2 changes: 1 addition & 1 deletion frontend/js/feature_cover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default {
second_color: '#0E6EB8'
third_color: '#0E6EB8'
fourth_color: '#0E6EB8'
fifth_color: '#0E6EB8
fifth_color: '#0E6EB8'
sixth_color: '#0E6EB8'
mounted: ->
$('.overlay').css('transition', 'all 2.5s')
Expand Down

0 comments on commit fd6bc6e

Please sign in to comment.