GithubHelp home page GithubHelp logo

dsc-iem / blog Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 6.0 5.58 MB

Blogs from DSC-IEM

Home Page: https://blog.dsciem.tech/

Batchfile 0.10% Python 36.24% HTML 30.44% JavaScript 8.20% CSS 25.03%
blog django html javascript python

blog's People

Contributors

antsthebul avatar asrient avatar o3661606 avatar riken-shah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

blog's Issues

Add blogs grid to the blog page

Skills required

  • HTML
  • Django (templates)

References

  • index.html page

What to do

blogsGrid.html component renders a grid with given blog items in a parent page.
Add blogsGrid.html, which lives in dscblog/pages/blocks/ dir, to blog.html, the blog
template at the end.
This should act as More blogs suggestions at shows up at the end of an article.
Take a look at the index page rendering, this should act the same way, you can use the same
function Blog.top25() to get the blogs or something similar (maybe a variant with 10 no of blogs instead).

Files to work with

  • pages/blocks/blogsGrid.html
  • pages/blog.html
  • models.py
  • paths.py

Improve markdown code highlighting styles in CSS

Skills required

(You don't need to know Django or Javascript for this)

  • HTML
  • CSS

What to do

When writing a blog, a code block is declared in markdown as

```javascript
function fancyAlert(arg) {
  if(arg) {
    $.facebox({div:'#foo'})
  }
}
 ` ``

when rendered, it takes form as:

<pre>
<code>
<span class="kd">function</span> 
<span class="nx">fancyAlert</span>
<span class="p">(</span>
...
</code>
</pre>

Your main work is to update dscblog/static/styles/emacs.css file,
change the colors and other attributes to make it look better.
It's up to you what colors to pick, just don't make it look too clumsy or too dull.
You will find codes like,

[data-theme="dark"] code .hll { color: #ffffc4 }

These codes are the optimized versions for Dark mode,
You need to make sure, it looks good in both modes.

Add a Done button to blog editor

Skills required

  • Javascript
  • HTML, CSS

What to do

The current blog editor only contains the editor,
but we need a header on top of the actual editor showing its title and a Done button.
The done button will resave the file and when done go to the blog page.
The design of the header is up to you, just make sure it matches with the rest of the site.
postion should be fixed.

Files to work with

  • pages/blogEditor.html
  • static/styles/blogEditor.css

Build the followers page

Skills required

  • html, css
  • Django

What to do

You need to build a page which will show all the current user's followers.
This should be like any others pages in the site, like index', blog, only visible to logged in users. Use the function get_followers()of the user object. The URL should be/followersBuild a generic user list view inpages/blocks` directory.

Files to work with

  • paths.py
  • urls.py
  • pages/followers.py (new)
  • pages//blocks/usersList.html (new)

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.