iamsdas / whiteboard

Collaborative whiteboard app using vuejs and socket.io
https://vue-whiteboard.netlify.app
4 stars 2 forks source link

How can i change backgorund? #1

Closed cmrktmr closed 3 years ago

cmrktmr commented 3 years ago

How can i change whiteboard backgorund?

iamsdas commented 3 years ago

You can edit the Room.vue file and change the background-color property in line ~111~ (Edit: 140) to change the color.

cmrktmr commented 3 years ago

When I try to edit room.vue, it shows as non-drawing area. I have bootsrap form, users draw on it. How can i insert this ? Thank you so much.


`<template>

  <div id="bg" >
    <canvas
      ref="canvas"
      @mousemove="draw"
      @mousedown="beginDrawing"
      @mouseup="stopDrawing"
      @mouseleave="cancelDrawing"
      :width="canvasWidth"
      :height="canvasHeight"
    />

    <div id="bar">
      <div class="bar-item">
        <router-link to="/">home</router-link>|
        <a href="#">Oktomax Business Canvas</a>|
        <button @click="clearCanvas">clear</button>
      </div>
      <div class="bar-item">status : {{ connection }}</div>
    </div>
  </div>
</template>`

`

    <!-- Lean Canvas is 2 rows, with 5 columns. The bootstrap grid only contains 12 columns, which isn't evenly divisble by 5, so we will instead use 10 columns only, offsetting 2 of the columns. -->
    <div class="row row-one section-container row-eq-height"> <!-- begin first row -->
        <section class="column col-md-2 col-md-offset-1" id="problem">
            <h2 class="section-title">Problem</h2>
            <p>Founders of startups require lots of things to start, manage, and grow their company — Investors, Accelerators, Workspace, Lawyers, Accountants, etc. — yet there is no comprehensive resource for them to search and find these things.</p>
        </section>

        <div class="column col-md-2">
            <section class="top" id="solution">
                <h2 class="section-title">Solution</h2>
                <p>A web-based platform where entrepreneurs can go to find the resources, investors, and accelerators to start, run, and grow their business.</p>
                <p>Our core product matches companies with the accelerators and investors who are most likely to invest in their company, based on their thesis and historical investment data.</p>
            </section>
            <hr class="divider"/>
            <section class="bottom" id="key-metrics">
                <h2 class="section-title">Key Metrics</h2>
                <p>Amount of web traffic.</p>
                <p>Amount of user sign-ups.</p>
                <p>Amount of active users.</p>
                <p>Amount of emails on mailing list.</p>
            </section>
        </div>

        <section class="column col-md-2" id="unique-value-proposition">
            <h2 class="section-title">Unique Value Proposition</h2>
            <p>We save entrepreneurs the many hours of time spent searching for investors, accelerators, and resources by consolidating all of them into one comprehensive, easy to use platform.</p>
            <h3 class="sub-section-title">Competition</h3>
            <p>Alternatives = places where people can search through a database:</p>
            <p>CrunchBase - Investors, Accelerators<br>
            AngelList - Angels, Investors<br>
            PitchBook - Angels, Investors<br>
            F6S - Resources, Accelerators</p>
        </section>

        <div class="column col-md-2">
            <section class="" id="unfair-advantage">
                <h2 class="section-title">Unfair Advantage</h2>
                <p>This is our secret sauce.</p>
            </section>
    <hr class="divider"/>
            <section class="bottom" id="channels">
                <h2 class="section-title">Channels</h2>
                <p>Targeted content marketing.</p>
                <p>Partner with key connectors in each city's startup scene. (Ex. for Dallas - LaunchDFW, The DEC, Tech Wildcatters.)</p>
            </section>
        </div>

        <section class="column col-md-2" id="customer-segments">
            <h2 class="section-title">Customer Segments</h2>
            <p>Entrepreneurs who are fundraising.</p>
        </section>

    </div><!-- End first row -->

    <div class="row row-two section-container row-eq-height"> <!-- Begin second row -->
        <section class="column col-md-5 col-md-offset-1" id="cost-structure">
            <h2 class="section-title">Cost Structure</h2>
            <p>Server costs. Advertising/marketing (online and physical). </p>
        </section>
        <section class="column col-md-5" id="revenue-streams">
            <h2 class="section-title">Revenue Streams</h2>
            <p>Charge accelerator programs to target our audience through featured listings and email marketing campaigns.</p>
            <p>Charge service providers like Lawyers and Accountants for featured listings and email marketing campaigns.</p>
            <p>Sell minimal, beautiful display ads.</p>
        </section>
    </div> <!-- End second row -->
</div>

`

iamsdas commented 3 years ago

For the integration part with your business website, you're on your own. But all you have to do is provide values of height and width in the handleResize function (in absolute values not dynamic) and remove the parent div if you are using it in some form.