Code Monkey home page Code Monkey logo

Comments (2)

longpdo avatar longpdo commented on August 20, 2024

Hi drewnutt,

fyi the brands.svg comes from Fontawesome - Previews of included svgs can be seen here: https://fontawesome.com/v5.15/icons?d=gallery&p=2&s=brands

Since Fontawesome does not include a Google Scholar icon - a workaround would be:

  • you provide the icon yourself and save the .svg file inside /assets/img/ e.g. /assets/img/google_scholar.svg
  • in landing-page.html - copy one of the html snippets for one icon and change it accordingly to point to the Google Scholar icon

e.g. i copied the Twitter code and changed some of the values.

  • one thing, which still needs some work is in the first line the href value - change https://scholar.google.de/youruserid with the url of your actual profile page you want to link to
<a class="social-link twitter" aria-label="My Google Scholar" target="_blank" rel="noreferrer" href="https://scholar.google.de/youruserid">
  <svg viewBox="0 0 200 200" class="circle">
    <circle cx="100" cy="100" r="80" />
  </svg>
  <div class="social">
    <svg class="social-svg" viewBox="0 0 48 48">
      <use x="12" y="12" width="24" height="24" viewBox="0 0 48 48" xlink:href="{{ "/assets/img/google_scholar.svg" | prepend: site.baseurl }}"></use>
    </svg>
  </div>
  <span class="label">Google Scholar</span>
</a>

from neumorphism.

drewnutt avatar drewnutt commented on August 20, 2024

I finally figured out my issue. The svg needs to have a path within a symbol group in its xml and needs to have a viewBox for itself.

from neumorphism.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.