A computer includes a main housing having a front wall formed with a slot therethrough, and a luminous device. The luminous device includes an elongated insert plate and a light source. The insert plate is made of a transparent light conducting material, and has an insert portion disposed fixedly within the slot in the main housing, and a serrated reflecting portion disposed behind the insert portion and formed with a plurality of interconnected light-reflecting surfaces. Any two adjacent reflecting surfaces form an angle therebetween. The light source is attached fixedly to the insert plate, and directs light toward the reflecting portion of the insert plate. Light emitted from the light source is diffused by the reflecting surfaces so that the insert portion of the insert plate has a uniform luminescence distribution.